aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--roles/install_gentoo/tasks/disks.yml8
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