arch installation mostly works with zfsbootmgr
This commit is contained in:
commit
1444f05d9c
19 changed files with 496 additions and 0 deletions
30
roles/base/tasks/archinstall/prepare_chroot.yaml
Normal file
30
roles/base/tasks/archinstall/prepare_chroot.yaml
Normal file
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
- name: Mount arch zroot
|
||||
command: zfs mount zroot/ROOT/arch
|
||||
|
||||
- name: Mount all other zroot mountpoints
|
||||
command: zfs mount -a
|
||||
|
||||
- name: Create zroot destination directories
|
||||
ansible.builtin.file:
|
||||
path: "/mnt{{ item }}"
|
||||
state: directory
|
||||
loop:
|
||||
- /etc/zfs
|
||||
- /boot/efi
|
||||
|
||||
- name: Mount EFI
|
||||
ansible.posix.mount:
|
||||
path: /mnt/boot/efi
|
||||
src: "{{ base_efi_partitions | first }}"
|
||||
fstype: vfat
|
||||
state: mounted
|
||||
|
||||
- name: zfs | set zroot bootfs to arch
|
||||
command: zpool set bootfs=zroot/ROOT/arch zroot
|
||||
|
||||
- name: zfs | set cachefile
|
||||
command: zpool set cachefile=/etc/zfs/zpool.cache zroot
|
||||
|
||||
- name: zfs | copy cache file to chroot
|
||||
command: cp /etc/zfs/zpool.cache /mnt/etc/zfs
|
Loading…
Add table
Add a link
Reference in a new issue