From 7c6d6e1faa2db9c18dd325ebbe060cca4f9b745b Mon Sep 17 00:00:00 2001 From: simono41 Date: Sun, 4 Mar 2018 19:33:17 +0100 Subject: [PATCH] insystem-install --- arch-install | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/arch-install b/arch-install index bed89f5..5c4f6b2 100755 --- a/arch-install +++ b/arch-install @@ -230,13 +230,19 @@ function installation { #installation if [ "${offline}" != "n" ] then - if [ -f /run/archiso/bootmnt/arch/$(uname -m)/airootfs.sfs ] - then + if [ -f /run/archiso/bootmnt/arch/$(uname -m)/airootfs.sfs ]; then echo "Es ist kein copytoram System." unsquashfs -f -d ${mountpoint} /run/archiso/bootmnt/arch/$(uname -m)/airootfs.sfs - else + elif [ -f /run/archiso/copytoram/airootfs.sfs ]; then echo "Es ist ein copytoram System." unsquashfs -f -d ${mountpoint} /run/archiso/copytoram/airootfs.sfs + else + read -p "Wo ist die airootfs.sfs? Bitte den kompletten Pfad angeben oder die onlineinstallation wählen? [/airootfs.sfs/online] : " installationfehler + if [ "${installationfehler}" == "online" ]; then + minimalinstallation + else + unsquashfs -f -d ${mountpoint} ${installationfehler} + fi fi else minimalinstallation @@ -997,7 +1003,7 @@ else arch-chroot ${mountpoint} systemctl disable x11vnc.service fi -if [ "${update}" != "n" ] && [ "${offline}" == "n" ]; then +if [ "${update}" != "n" ] && [ "${offline}" == "n" ] || [ "${installationfehler}" == "online" ]; then read -p "Soll die erweiterte Installation durchgeführt werden? [Y/n] " graphical if [ "$graphical" != "n" ] then