time for the first testbuild with nanodesk-installer-gxm

This commit is contained in:
Marcus 2023-10-22 21:25:03 +02:00
parent dc935dafc1
commit 8a68da5414

View file

@ -182,6 +182,23 @@ When the base system is installed, you can choose if you want to keep
the default user 'debian' with its password 'debian' (press [K]) the default user 'debian' with its password 'debian' (press [K])
or you also can remove this default user and create your own new one or you also can remove this default user and create your own new one
(press [U]). (press [U]).
# when something goes wrong
If the installation proccess exits with an error, you can clean up
everything by hand:
sudo su -
umount /mnt/
rm -Rf /tmp/nanodesk-installer.*
mkfs.ext4 [TARGET]
# you can re-run the GUI again
nanodesk-installer-gxm
# or the cli nanodesk-installer directly
nanodesk-installer [TARGET]
EOF EOF
} }
@ -277,7 +294,13 @@ done
exec-nanodesk-installer $TARGET exec-nanodesk-installer $TARGET
if [ -f "$SUCCESSFILE" ]
if [ -f "$ERRORFILE" ]
then
gxm-error
exit 1
elif [ -f "$SUCCESSFILE" ]
then then
gxm-success gxm-success
RETURN=$? RETURN=$?
@ -286,10 +309,6 @@ then
2) systemctl reboot ;; 2) systemctl reboot ;;
*) exit 0 ;; *) exit 0 ;;
esac esac
elif [ -f "$ERRORFILE" ]
then
gxm-error
exit 1
else else
echo "Unexpected Error! Exit here." | $GXMINFO -buttons Close -default Close echo "Unexpected Error! Exit here." | $GXMINFO -buttons Close -default Close
exit 1 exit 1