mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 19:10:10 +00:00
Clean disk to install in pre
Installers frequently fail if there's a derelict lvm on disk. Explicitly remove the on-disk content and deactive lvm to let anaconda work reliably.
This commit is contained in:
parent
99ba4e7765
commit
d899cfbf1a
@ -93,5 +93,7 @@ if [ -e /tmp/installdisk -a ! -e /tmp/partitioning ]; then
|
||||
echo clearpart --all --initlabel >> /tmp/partitioning
|
||||
echo ignoredisk --only-use $(cat /tmp/installdisk) >> /tmp/partitioning
|
||||
echo autopart --nohome $LUKSPARTY >> /tmp/partitioning
|
||||
dd if=/dev/zero of=/dev/$(cat /tmp/installdisk) bs=1M count=1
|
||||
vgchange -a n
|
||||
fi
|
||||
kill $logshowpid
|
||||
|
Loading…
Reference in New Issue
Block a user