aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2024-03-14 10:03:27 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2024-03-14 10:03:27 -0700
commit38adee2975d8c66a1374ba965dea3cf017a8c103 (patch)
treebe1976c5f533eaff77697aa9c140f48a61b04d18
parentfeat(install_gentoo): more disk control (diff)
downloadansible-master.tar.gz
ansible-master.tar.bz2
ansible-master.zip
fix(install_gentoo): hacky workaround for dracut lvm behaviorHEADmaster
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-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