mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 13:44:50 +08:00
Update InstallNET.sh
This commit is contained in:
parent
d0e7234a12
commit
68aa69482e
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue