]> git.proxmox.com Git - pve-installer.git/blobdiff - unconfigured.sh
tell udev to ignore being in a chroot
[pve-installer.git] / unconfigured.sh
index 1066027c7f3f917bb277af484820598beb045df6..450dc22e0d22da2836d3395fa7d99b7d8ebf5a73 100755 (executable)
@@ -57,6 +57,9 @@ 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
 
@@ -79,8 +82,8 @@ export PREVLEVEL=N
 hostname proxmox
 
 # try to get ip config with dhcp
-echo -n "Detecting network settings... "
-/etc/init.d/networking start >/dev/tty2 2>&1
+echo -n "Attempting to get DHCP leases... "
+dhclient -v
 echo "done"
 
 xinit -- -dpi 96 >/dev/tty2 2>&1
@@ -95,6 +98,7 @@ fi
 
 echo "Installation done, rebooting... "
 #mdadm -S /dev/md0 >/dev/tty2 2>&1
+kill $(pidof dhclient) 2>&1 > /dev/null
 real_reboot
 
 # never reached