From ff09f4e1c20c47bd2951b9cdc1fc88775f0ea8b1 Mon Sep 17 00:00:00 2001 From: simono41 Date: Sun, 1 Apr 2018 16:52:36 +0200 Subject: [PATCH] fix --- arch-install | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/arch-install b/arch-install index e352948..4c4133f 100755 --- a/arch-install +++ b/arch-install @@ -959,20 +959,24 @@ fi # echo "A purge stops the chance of installing on the system." echo "It may take a while!" -dd if=/dev/zero of=${device} bs=64M count=10 status=progress +if [ "${name}" != "noinstall" ]; then + dd if=/dev/zero of=${device} bs=64M count=10 status=progress +fi # if [ "${Partition}" == "uefi" ] then echo "Partitions with UEFI" - if [ "${swap}" != "n" ]; then - echo "Create additional swap partition" - partionierenmitswap - else - partionierenohneswap + if [ "${name}" != "noinstall" ]; then + if [ "${swap}" != "n" ]; then + echo "Create additional swap partition" + partionierenmitswap + else + partionierenohneswap + fi fi - if [ "${name}" == "noinstall" ]; then + if [ "${name}" != "noinstall" ]; then echo "installation" installation fi @@ -995,14 +999,16 @@ then echo "Finished" elif [ "${Partition}" == "bios" ]; then echo "Partitions with MBR" - if [ "${swap}" != "n" ]; then - echo "Create additional swap partition" - partionierenmitswap - else - partionierenohneswap + if [ "${name}" != "noinstall" ]; then + if [ "${swap}" != "n" ]; then + echo "Create additional swap partition" + partionierenmitswap + else + partionierenohneswap + fi fi - if [ "${name}" == "noinstall" ]; then + if [ "${name}" != "noinstall" ]; then echo "installation" installation fi