]>
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 mount
-n -t tmpfs tmpfs
/run
70 # always load most common input drivers
71 modprobe
-q psmouse ||
/bin
/true
72 modprobe
-q sermouse ||
/bin
/true
73 modprobe
-q usbhid ||
/bin
/true
75 # load device mapper - used by lilo
76 modprobe
-q dm_mod ||
/bin
/true
78 echo "Installing additional hardware drivers"
81 /etc
/init.d
/udev start
84 mount
-t tmpfs tmpfs
/dev
/shm
86 if [ $proxdebug -ne 0 ]; then
87 echo "Dropping in debug shell inside chroot before starting installation"
88 echo "type exit or CTRL-D to start installation wizard"
95 # try to get ip config with dhcp
96 echo -n "Attempting to get DHCP leases... "
100 xinit
-- -dpi 96 >/dev
/tty2
2>&1
102 # just to be sure everything is on disk
105 if [ $proxdebug -ne 0 ]; then
106 echo "Debugging mode (type exit or CTRL-D to reboot)"
110 echo "Installation done, rebooting... "
111 #mdadm -S /dev/md0 >/dev/tty2 2>&1
112 kill $
(pidof dhclient
) 2>&1 > /dev
/null