diff --git a/debian/chroot.install b/debian/chroot.install index ac94c8b..e50da83 100755 --- a/debian/chroot.install +++ b/debian/chroot.install @@ -34,6 +34,10 @@ dbs_pkg_exclude="vim" ## 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" +# Prepare host system {{{ +apt update +apt install coreutils debootstrap e2fsprogs gawk ipcalc lvm2 parted util-linux wget +# }}} # Partitionning {{{ if [ "${manage_part}" -eq 0 ]; then ## Remove all old partitions @@ -285,6 +289,10 @@ fi printf '%b\n' "${REDB}Please change the root's password :${RESET}" 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}" exit 0