From 024feded3ed818aac8a40a7386346281844e6e8f Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 3 Apr 2019 09:46:09 +0200 Subject: [PATCH] Run debootstrap --- debian/chroot.install | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/chroot.install b/debian/chroot.install index ad95127..6e87c6f 100755 --- a/debian/chroot.install +++ b/debian/chroot.install @@ -13,6 +13,11 @@ vgname="ovhsys" ## If the script should manage the partitions (delete, add,…) manage_part=0 +## Package to exclude from debootstrap install +dbs_pkg_exclude="vim" +## Package to include to debootstrap install +dbs_pkg_include="bzip2,debconf-i18n,dialog,dmsetup,htop,isc-dhcp-client,isc-dhcp-common,locales,lvm2,pciutils,tmux,vim-nox,wget,zsh" + # Partitionning {{{ if [ "${manage_part}" -eq 0 ]; then ## Remove all old partitions @@ -105,5 +110,7 @@ mountpoint -q /target/proc || mount -t proc -- proc /target/proc mkdir -p -- /target/sys mountpoint -q /target/sys || mount -o bind -- /sys /target/sys ## }}} +## Run debootstrap +debootstrap --arch amd64 --include="${dbs_pkg_include}" --exclude="${dbs_pkg_exclude}" stretch /target http://ftp.fr.debian.org/debian # }}}