Simplify debootstrap options
This will work on Suse to install debian based container Debootstrap must be installed on Suse
This commit is contained in:
parent
3ba1afc523
commit
b7694fe99b
@ -3,6 +3,7 @@
|
|||||||
# create container with systemd-nspawn
|
# create container with systemd-nspawn
|
||||||
|
|
||||||
_container="minimal" # this will be your container name
|
_container="minimal" # this will be your container name
|
||||||
|
|
||||||
machinectl stop "$_container" 2>/dev/null
|
machinectl stop "$_container" 2>/dev/null
|
||||||
sleep 2
|
sleep 2
|
||||||
#rm -rf /var/lib/machines/"$_container"
|
#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
|
echo "VirtualEthernet=no" >>/etc/systemd/nspawn/"$_container".nspawn
|
||||||
|
|
||||||
#debootstrap --include=systemd,dbus stable /var/lib/machines/"$_container"
|
#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,\
|
apt-transport-https,\
|
||||||
bash-completion,\
|
bash-completion,\
|
||||||
ca-certificates,\
|
ca-certificates,\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user