Update InstallNET.sh

This commit is contained in:
Molly Lau 2023-05-22 16:58:03 +09:00 committed by GitHub
parent d0e7234a12
commit 68aa69482e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2196,9 +2196,9 @@ if [[ "$linux_relese" == 'debian' ]] || [[ "$linux_relese" == 'ubuntu' ]] || [[
fi
# If server has only one disk, lv/vg/pv volumes removement by force should be disallowed, it may causes partitioner continuous execution but not finished.
if [[ "$disksNum" -le "1" || "$setDisk" != "all" ]]; then
sed -i '/lvremove --select all -ff -y/d' /tmp/boot/preseed.cfg
sed -i '/vgremove --select all -ff -y/d' /tmp/boot/preseed.cfg
sed -i '/pvremove /dev/* -ff -y/d' /tmp/boot/preseed.cfg
sed -i 's/lvremove --select all -ff -y;//g' /tmp/boot/preseed.cfg
sed -i 's/vgremove --select all -ff -y;//g' /tmp/boot/preseed.cfg
sed -i 's/pvremove \/dev\/\* -ff -y;//g' /tmp/boot/preseed.cfg
fi
if [[ "$linux_relese" == 'debian' ]] || [[ "$linux_relese" == 'kali' ]]; then
sed -i '/user-setup\/allow-password-weak/d' /tmp/boot/preseed.cfg