]> git.proxmox.com Git - pve-installer.git/commitdiff
unconfigured: don't trap "bad" debug-shell exits
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 8 May 2020 09:21:46 +0000 (11:21 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 8 May 2020 09:21:48 +0000 (11:21 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
unconfigured.sh

index 3bf5367050cb1b5784a1e1ffa1a8139c3f81773c..ed492c9faa70f1825512cd36c29a95101d58bad7 100755 (executable)
@@ -51,7 +51,7 @@ real_reboot() {
 err_reboot() {
 
     echo "\nInstallation aborted - unable to continue (type exit or CTRL-D to reboot)"
-    debugsh
+    debugsh || true
     real_reboot
 }
 
@@ -96,7 +96,7 @@ if [ $proxdebug -ne 0 ]; then
     /sbin/agetty -o '-p -- \\u' --noclear tty9 &
     echo "Dropping in debug shell inside chroot before starting installation"
     echo "type exit or CTRL-D to start installation wizard"
-    debugsh
+    debugsh || true
 fi
 
 # set the hostname 
@@ -114,7 +114,7 @@ sync
 
 if [ $proxdebug -ne 0 ]; then 
     echo "Debugging mode (type exit or CTRL-D to reboot)"
-    debugsh 
+    debugsh || true
 fi
 
 echo "Installation done, rebooting... "