Run debootstrap

This commit is contained in:
Jeremy Gardais 2019-04-03 09:46:09 +02:00
parent 6695f9564c
commit 024feded3e
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 7 additions and 0 deletions

View File

@ -13,6 +13,11 @@ vgname="ovhsys"
## If the script should manage the partitions (delete, add,…) ## If the script should manage the partitions (delete, add,…)
manage_part=0 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 {{{ # Partitionning {{{
if [ "${manage_part}" -eq 0 ]; then if [ "${manage_part}" -eq 0 ]; then
## Remove all old partitions ## Remove all old partitions
@ -105,5 +110,7 @@ mountpoint -q /target/proc || mount -t proc -- proc /target/proc
mkdir -p -- /target/sys mkdir -p -- /target/sys
mountpoint -q /target/sys || mount -o bind -- /sys /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
# }}} # }}}