Run debootstrap
This commit is contained in:
		
							parent
							
								
									6695f9564c
								
							
						
					
					
						commit
						024feded3e
					
				|  | @ -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 | ||||
| 
 | ||||
| # }}} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue