From 2d5b70b606c0a7caeb75ead6d8a9d6efce00c389 Mon Sep 17 00:00:00 2001 From: chenshuai Date: Wed, 26 Oct 2016 04:06:48 -0400 Subject: workaround: xenial lvm boot error JIRA: COMPASS-499 Change-Id: I4f7909023e2818584b47998571b57c84a06f5309 Signed-off-by: chenshuai --- deploy/adapters/cobbler/kickstarts/default16.seed | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'deploy/adapters') diff --git a/deploy/adapters/cobbler/kickstarts/default16.seed b/deploy/adapters/cobbler/kickstarts/default16.seed index 091b78f1..af6c9c39 100644 --- a/deploy/adapters/cobbler/kickstarts/default16.seed +++ b/deploy/adapters/cobbler/kickstarts/default16.seed @@ -140,6 +140,12 @@ d-i cdrom-detect/eject boolean false d-i preseed/late_command string \ in-target sed -i '$a UseDNS no' /etc/ssh/sshd_config; \ in-target sed -i 's/.*GSSAPIAuthentication.*/GSSAPIAuthentication no/g' /etc/ssh/sshd_config; \ +in-target sed -i '$d' /usr/share/initramfs-tools/scripts/local-top/lvm2; \ +in-target echo "lvm vgchange -ay" >> /usr/share/initramfs-tools/scripts/local-top/lvm2; \ +in-target echo "exit 0" >> /usr/share/initramfs-tools/scripts/local-top/lvm2; \ +in-target touch /etc/initramfs-tools/scripts/local-top/lvm2; \ +in-target chmod 777 /etc/initramfs-tools/scripts/local-top/lvm2; \ +in-target echo "vgchange -a y" >> /etc/initramfs-tools/scripts/local-top/lvm2; \ wget -O- \ http://$http_server/cblr/svc/op/script/$what/$name/?script=preseed_late_default | \ chroot /target /bin/sh -s; cp /target/etc/network/interfaces /etc/network/interfaces; \ -- cgit 1.2.3-korg