]>
git.proxmox.com Git - pve-installer.git/blob - unconfigured.sh
8 for par
in $
(cat /proc
/cmdline
); do
28 /etc
/init.d
/networking stop
30 # stop udev (release file handles)
33 echo -n "Deactivating swap..."
34 swap
=$
(grep /dev
/proc
/swaps
);
35 if [ -n "$swap" ]; then
41 umount
-l -n /target
>/dev
/null
2>&1
52 echo "\nInstallation aborted - unable to continue (type exit or CTRL-D to reboot)"
57 echo "Starting Proxmox installation"
59 PATH
=/sbin
:/bin
:/usr
/sbin
:/usr
/bin
:/usr
/X11R
6/bin
61 # ensure udev isn't snippy and ignores our request
62 export SYSTEMD_IGNORE_CHROOT
=1
64 mount
-n -t proc proc
/proc
65 mount
-n -t sysfs sysfs
/sys
66 if [ -d /sys
/firmware
/efi
]; then
67 echo "EFI boot mode detected, mounting efivars filesystem"
68 mount
-nt efivarfs none
/sys
/firmware
/efi
/efivars
70 mount
-n -t tmpfs tmpfs
/run
74 # always load most common input drivers
75 modprobe
-q psmouse ||
/bin
/true
76 modprobe
-q sermouse ||
/bin
/true
77 modprobe
-q usbhid ||
/bin
/true
79 # load device mapper - used by lilo
80 modprobe
-q dm_mod ||
/bin
/true
82 echo "Installing additional hardware drivers"
85 /etc
/init.d
/udev start
88 mount
-t tmpfs tmpfs
/dev
/shm
90 if [ $proxdebug -ne 0 ]; then
91 echo "Dropping in debug shell inside chroot before starting installation"
92 echo "type exit or CTRL-D to start installation wizard"
99 # try to get ip config with dhcp
100 echo -n "Attempting to get DHCP leases... "
104 xinit
-- -dpi 96 >/dev
/tty2
2>&1
106 # just to be sure everything is on disk
109 if [ $proxdebug -ne 0 ]; then
110 echo "Debugging mode (type exit or CTRL-D to reboot)"
114 echo "Installation done, rebooting... "
115 #mdadm -S /dev/md0 >/dev/tty2 2>&1
116 kill $
(pidof dhclient
) 2>&1 > /dev
/null