]> git.proxmox.com Git - pve-installer.git/blobdiff - unconfigured.sh
buildsys: switch upload dist over to buster
[pve-installer.git] / unconfigured.sh
index 450dc22e0d22da2836d3395fa7d99b7d8ebf5a73..674605f66259b62f7e9e0e7292bef065558b6930 100755 (executable)
@@ -40,6 +40,7 @@ real_reboot() {
 
     umount -l -n /target >/dev/null 2>&1
     umount -l -n /dev
+    umount -l -n /run
     umount -l -n /sys
     umount -l -n /proc
 
@@ -62,6 +63,7 @@ export SYSTEMD_IGNORE_CHROOT=1
 
 mount -n -t proc proc /proc
 mount -n -t sysfs sysfs /sys
+mount -n -t tmpfs tmpfs /run
 
 parse_cmdline
 
@@ -78,6 +80,15 @@ export RUNLEVEL=S
 export PREVLEVEL=N
 /etc/init.d/udev start
 
+mkdir -p /dev/shm
+mount -t tmpfs tmpfs /dev/shm
+
+if [ $proxdebug -ne 0 ]; then
+    echo "Dropping in debug shell inside chroot before starting installation"
+    echo "type exit or CTRL-D to start installation wizard"
+    debugsh
+fi
+
 # set the hostname 
 hostname proxmox