From 68aa69482e87f831c7fdfcb2856383b51d142ad3 Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Mon, 22 May 2023 16:58:03 +0900 Subject: [PATCH] Update InstallNET.sh --- Linux_reinstall/InstallNET.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Linux_reinstall/InstallNET.sh b/Linux_reinstall/InstallNET.sh index f703c65..c3d151e 100644 --- a/Linux_reinstall/InstallNET.sh +++ b/Linux_reinstall/InstallNET.sh @@ -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