]>
git.proxmox.com Git - pve-installer.git/blob - unconfigured.sh
8 for par
in $
(cat /proc
/cmdline
); do
27 /etc
/init.d
/networking stop
29 # stop udev (release file handles)
32 echo -n "Deactivating swap..."
33 swap
=$
(grep /dev
/proc
/swaps
);
34 if [ -n "$swap" ]; then
40 umount
-l -n /target
>/dev
/null
2>&1
43 [ -d /sys
/firmware
/efi
/efivars
] && umount
-l -n /sys
/firmware
/efi
/efivars
51 echo "\nInstallation aborted - unable to continue (type exit or CTRL-D to reboot)"
56 echo "Starting Proxmox installation"
58 PATH
=/sbin
:/bin
:/usr
/sbin
:/usr
/bin
:/usr
/X11R
6/bin
60 # ensure udev isn't snippy and ignores our request
61 export SYSTEMD_IGNORE_CHROOT
=1
63 mount
-n -t proc proc
/proc
64 mount
-n -t sysfs sysfs
/sys
65 if [ -d /sys
/firmware
/efi
]; then
66 echo "EFI boot mode detected, mounting efivars filesystem"
67 mount
-n -t efivarfs efivarfs
/sys
/firmware
/efi
/efivars
69 mount
-n -t tmpfs tmpfs
/run
73 # always load most common input drivers
74 modprobe
-q psmouse ||
/bin
/true
75 modprobe
-q sermouse ||
/bin
/true
76 modprobe
-q usbhid ||
/bin
/true
78 # load device mapper - used by lilo
79 modprobe
-q dm_mod ||
/bin
/true
81 echo "Installing additional hardware drivers"
84 /etc
/init.d
/udev start
87 mount
-t tmpfs tmpfs
/dev
/shm
89 # allow pseudo terminals for debuggin in X
91 mount
-vt devpts devpts
/dev
/pts
-o gid
=5,mode
=620
93 if [ $proxdebug -ne 0 ]; then
94 /sbin
/agetty
-o '-p -- \\u' --noclear tty9
&
95 echo "Dropping in debug shell inside chroot before starting installation"
96 echo "type exit or CTRL-D to start installation wizard"
103 # try to get ip config with dhcp
104 echo -n "Attempting to get DHCP leases... "
108 echo -n "Starting chrony for opportunistic time-sync... "
109 chronyd ||
echo "starting chrony failed"
111 echo "Starting a root shell on tty3."
112 setsid
/sbin
/agetty
-a root
--noclear tty3
&
114 xinit
-- -dpi 96 >/dev
/tty2
2>&1
116 # just to be sure everything is on disk
119 if [ $proxdebug -ne 0 ]; then
120 echo "Debugging mode (type exit or CTRL-D to reboot)"
124 echo "Installation done, rebooting... "