Browse Source

Added alternative bootstrapping option via docker

Toastie 6 months ago
parent
commit
590c70bc85
1 changed files with 4 additions and 1 deletions
  1. 4 1
      bootstrap-bookworm.sh

+ 4 - 1
bootstrap-bookworm.sh

@@ -129,7 +129,10 @@ mount $disk1 $mnt
 #----------
 # Bootstrap -- pkg: debootstrap
 # Remark: Debootstrap does not install recommands!! 
-debootstrap --variant=minbase --arch=amd64 bookworm $mnt http://ftp2.de.debian.org/debian/
+# debootstrap --variant=minbase --arch=amd64 bookworm $mnt http://ftp2.de.debian.org/debian/
+# Alternatively bootstrap from a docker container, e.g. if no recent debootstrap is available
+docker run -it --rm --cap-add=SYS_CHROOT --name debootstrap -v $mnt:$mnt -e mnt=$mnt debian /bin/sh -c "apt-get update && apt-get install --yes debootstrap && debootstrap --variant=minbase 
+--arch=amd64 bookworm $mnt http://ftp2.de.debian.org/debian/"
 
 # Configure disk mounts
 # Or get UUID from blkid...