aboutsummaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorchenshuai <chenshuai@huawei.com>2016-10-26 04:06:48 -0400
committerchenshuai@huawei.com <chenshuai@huawei.com>2016-10-26 04:07:52 -0400
commit2d5b70b606c0a7caeb75ead6d8a9d6efce00c389 (patch)
treecc670948a0f767bf27b319318523f283dbd16aaa /deploy
parentdde596264dadaa3e530adc4e30f9205edfaff3ba (diff)
workaround: xenial lvm boot error
JIRA: COMPASS-499 Change-Id: I4f7909023e2818584b47998571b57c84a06f5309 Signed-off-by: chenshuai <chenshuai@huawei.com>
Diffstat (limited to 'deploy')
-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; \