]>
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
44 [ -d /sys
/firmware
/efi
/efivars
] && umount
-l -n /sys
/firmware
/efi
/efivars
53 echo "\nInstallation aborted - unable to continue (type exit or CTRL-D to reboot)"
58 echo "Starting Proxmox installation"
60 PATH
=/sbin
:/bin
:/usr
/sbin
:/usr
/bin
:/usr
/X11R
6/bin
62 # ensure udev isn't snippy and ignores our request
63 export SYSTEMD_IGNORE_CHROOT
=1
65 mount
-n -t proc proc
/proc
66 mount
-n -t sysfs sysfs
/sys
67 if [ -d /sys
/firmware
/efi
]; then
68 echo "EFI boot mode detected, mounting efivars filesystem"
69 mount
-n -t efivarfs efivarfs
/sys
/firmware
/efi
/efivars
71 mount
-n -t tmpfs tmpfs
/run
75 # always load most common input drivers
76 modprobe
-q psmouse ||
/bin
/true
77 modprobe
-q sermouse ||
/bin
/true
78 modprobe
-q usbhid ||
/bin
/true
80 # load device mapper - used by lilo
81 modprobe
-q dm_mod ||
/bin
/true
83 echo "Installing additional hardware drivers"
86 /etc
/init.d
/udev start
89 mount
-t tmpfs tmpfs
/dev
/shm
91 if [ $proxdebug -ne 0 ]; then
92 echo "Dropping in debug shell inside chroot before starting installation"
93 echo "type exit or CTRL-D to start installation wizard"
100 # try to get ip config with dhcp
101 echo -n "Attempting to get DHCP leases... "
105 xinit
-- -dpi 96 >/dev
/tty2
2>&1
107 # just to be sure everything is on disk
110 if [ $proxdebug -ne 0 ]; then
111 echo "Debugging mode (type exit or CTRL-D to reboot)"
115 echo "Installation done, rebooting... "
116 #mdadm -S /dev/md0 >/dev/tty2 2>&1
117 kill $
(pidof dhclient
) 2>&1 > /dev
/null