echo "Starting installer!"
if [ ! -d /root/etc ]; then
echo "Error: /root doesn't appear to have a valid filesystem mounted!"
- exit 1
+ sleep 9999999999
fi
ROOT_SRC=$(grep ' /root ' /proc/mounts | cut -d' ' -f1)
if [ -z "$TARGET" ]; then
echo "Error: couldn't find drive to install to!"
- exit 1
+ sleep 9999999999
fi
# don't keep fs mounted while copying it
umount /root
# wait 15s for user realize that they've made a mistake
- echo "Copying data from $ROOT_SRC => $TARGET"
+ echo "Copying data from [$ROOT_SRC] => [$TARGET]"
echo "IF THIS IS INCORRECT, REBOOT NOW OR YOU WILL LOSE DATA! (waiting 15s)"
sleep 15