Chroot: Install some dep for debootstrap/chroot
This commit is contained in:
parent
a5cd62bf0a
commit
f90a1dee19
|
@ -34,6 +34,10 @@ dbs_pkg_exclude="vim"
|
||||||
## Package to include to debootstrap install
|
## Package to include to debootstrap install
|
||||||
dbs_pkg_include="aptitude,bzip2,debconf-i18n,dialog,dmsetup,htop,isc-dhcp-client,isc-dhcp-common,locales,lvm2,openssh-server,pciutils,tmux,vim-nox,wget,zsh"
|
dbs_pkg_include="aptitude,bzip2,debconf-i18n,dialog,dmsetup,htop,isc-dhcp-client,isc-dhcp-common,locales,lvm2,openssh-server,pciutils,tmux,vim-nox,wget,zsh"
|
||||||
|
|
||||||
|
# Prepare host system {{{
|
||||||
|
apt update
|
||||||
|
apt install coreutils debootstrap e2fsprogs gawk ipcalc lvm2 parted util-linux wget
|
||||||
|
# }}}
|
||||||
# Partitionning {{{
|
# Partitionning {{{
|
||||||
if [ "${manage_part}" -eq 0 ]; then
|
if [ "${manage_part}" -eq 0 ]; then
|
||||||
## Remove all old partitions
|
## Remove all old partitions
|
||||||
|
@ -285,6 +289,10 @@ fi
|
||||||
printf '%b\n' "${REDB}Please change the root's password :${RESET}"
|
printf '%b\n' "${REDB}Please change the root's password :${RESET}"
|
||||||
chroot /target passwd
|
chroot /target passwd
|
||||||
|
|
||||||
|
# Ensure to umount everything
|
||||||
|
#umount /target/var/lib/vz/ /target/var/ /target/usr/ /target/tmp/ /target/sys/ /target/srv/backup/ /target/srv/ /target/proc/ /target/opt/ /target/home/ /target/dev/pts/ /target/dev /target/boot/ /target/
|
||||||
|
|
||||||
|
|
||||||
printf '%b\n' "${GREEN}The system is still available on /target but you can now try to reboot the hardware.${RESET}"
|
printf '%b\n' "${GREEN}The system is still available on /target but you can now try to reboot the hardware.${RESET}"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue