X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=unconfigured.sh;h=674605f66259b62f7e9e0e7292bef065558b6930;hb=292dd9847f9341d82f53aef2ec9a2f555e164a03;hp=ac8fa4542f2f071da6f64c124063c203522bc84a;hpb=cd1964db0e10a48ac1a4ca71b2223540b50aacbc;p=pve-installer.git diff --git a/unconfigured.sh b/unconfigured.sh index ac8fa45..674605f 100755 --- a/unconfigured.sh +++ b/unconfigured.sh @@ -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 @@ -57,8 +58,12 @@ echo "Starting Proxmox installation" PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin +# ensure udev isn't snippy and ignores our request +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 @@ -75,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