summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchenshuai <chenshuai@huawei.com>2016-10-26 04:06:48 -0400
committerJustin chi <chigang@huawei.com>2016-11-10 09:01:45 +0000
commit3c4ef96aaab88294154f15f9a9a74918dad0b581 (patch)
tree00725fa77d367e96798135cea50fce3659b0384c
parent936d77c845a93a276f802948f68dd2075829da7f (diff)
workaround: xenial lvm boot error
JIRA: COMPASS-499 Change-Id: I4f7909023e2818584b47998571b57c84a06f5309 Signed-off-by: chenshuai <chenshuai@huawei.com> (cherry picked from commit 2d5b70b606c0a7caeb75ead6d8a9d6efce00c389)
-rw-r--r--deploy/adapters/cobbler/kickstarts/default16.seed6
1 files changed, 6 insertions, 0 deletions
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; \