|
@@ -200,12 +200,15 @@ exit
|
|
|
bootloader(){
|
|
|
# Install GRUB in /dev/vba
|
|
|
chroot $mnt /bin/bash -c "grub-install $disk && update-grub"
|
|
|
+}
|
|
|
|
|
|
+unmount(){
|
|
|
# Unmount
|
|
|
umount $mnt/proc
|
|
|
umount $mnt/sys
|
|
|
umount $mnt/dev/pts
|
|
|
umount $mnt/dev
|
|
|
+umount $mnt/root
|
|
|
}
|
|
|
|
|
|
|
|
@@ -221,22 +224,33 @@ timedatectl set-timezone Europe/Berlin
|
|
|
|
|
|
# Switch to functions...
|
|
|
case $1 in
|
|
|
- grmlnetwork)
|
|
|
+ grmlnetwork)
|
|
|
+ echo Setup network in grml
|
|
|
grmlnetwork
|
|
|
;;
|
|
|
install)
|
|
|
+ echo "Stage 1: Start installation"
|
|
|
install
|
|
|
;;
|
|
|
install2)
|
|
|
+ echo "Stage 2: Start installation in chroot"
|
|
|
install2
|
|
|
;;
|
|
|
bootloader)
|
|
|
+ echo "Stage 3: Install bootloader and unmount chroot"
|
|
|
bootloader
|
|
|
+ unmount
|
|
|
+ echo "We're done and can reboot now"
|
|
|
;;
|
|
|
postinstall)
|
|
|
+ echo "Stage 4: Start post-installation in live system"
|
|
|
postinstall
|
|
|
;;
|
|
|
+ unmount)
|
|
|
+ echo "Unmount chroot"
|
|
|
+ unmount
|
|
|
+ ;;
|
|
|
*)
|
|
|
- echo "Valid functions are: grmlnetwork, install, postinstall" >&2
|
|
|
+ echo "Valid functions are: grmlnetwork, install, postinstall and umount" >&2
|
|
|
;;
|
|
|
esac
|