diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2024-03-14 10:03:27 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2024-03-14 10:03:27 -0700 |
commit | 38adee2975d8c66a1374ba965dea3cf017a8c103 (patch) | |
tree | be1976c5f533eaff77697aa9c140f48a61b04d18 | |
parent | feat(install_gentoo): more disk control (diff) | |
download | ansible-master.tar.gz ansible-master.tar.bz2 ansible-master.zip |
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r-- | roles/install_gentoo/tasks/disks.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/install_gentoo/tasks/disks.yml b/roles/install_gentoo/tasks/disks.yml index c712109..3db4da9 100644 --- a/roles/install_gentoo/tasks/disks.yml +++ b/roles/install_gentoo/tasks/disks.yml @@ -110,3 +110,11 @@ tags: - lvm - vgcreate + + # Dracut has a subtle bug: given rd.lvm=1 rd.lvm.vg=VGNAME as boot paramters, + # and an *empty* VG (no LVs), the boot will hang. Make a LV as workaround. + - name: lvcreate stub + ansible.builtin.command: "lvcreate -L 4m -n test {{ hostname }}" + tags: + - lvm + - lvcreate |