Simplify debootstrap options

This will work on Suse to install debian based container
Debootstrap must be installed on Suse
This commit is contained in:
Holger 2024-06-19 21:39:40 +02:00
parent 3ba1afc523
commit b7694fe99b

@ -3,6 +3,7 @@
# create container with systemd-nspawn
_container="minimal" # this will be your container name
machinectl stop "$_container" 2>/dev/null
sleep 2
#rm -rf /var/lib/machines/"$_container"
@ -17,7 +18,7 @@ echo "[Network]" >/etc/systemd/nspawn/"$_container".nspawn
echo "VirtualEthernet=no" >>/etc/systemd/nspawn/"$_container".nspawn
#debootstrap --include=systemd,dbus stable /var/lib/machines/"$_container"
debootstrap --force-check-gpg --include=systemd,dbus,\
debootstrap --arch=amd64 --include=systemd,dbus,\
apt-transport-https,\
bash-completion,\
ca-certificates,\