|
@@ -111,7 +111,6 @@ then
|
|
|
# Prepare mount points and mount
|
|
|
mkdir -p $mnt"/boot/efi"
|
|
|
mount $disk0 $mnt"/boot/efi"
|
|
|
- echo "$disk0 /boot/efi/ vfat rw 0 0" >> $mnt/etc/fstab
|
|
|
fi
|
|
|
|
|
|
# Create swapfile
|
|
@@ -126,17 +125,19 @@ mkfs.ext4 -v -F $disk1 && fsck $disk1
|
|
|
# Prepare mount points and mount
|
|
|
mkdir -p $mnt
|
|
|
mount $disk1 $mnt
|
|
|
-# Configure disk mounts
|
|
|
-# Or get UUID from blkid...
|
|
|
-echo "/swapfile none swap defaults 0 0" >> $mnt/etc/fstab
|
|
|
-echo "$disk1 / ext4 rw 0 0" >> $mnt/etc/fstab
|
|
|
-# mount for /boot/efi/ set above if neccessary
|
|
|
|
|
|
#----------
|
|
|
# Bootstrap -- pkg: debootstrap
|
|
|
# Remark: Debootstrap does not install recommands!!
|
|
|
debootstrap --variant=minbase --arch=amd64 bookworm $mnt http://ftp2.de.debian.org/debian/
|
|
|
|
|
|
+# Configure disk mounts
|
|
|
+# Or get UUID from blkid...
|
|
|
+[ "$partition" = "efi-crypt" ] && \
|
|
|
+echo "$disk0 /boot/efi/ vfat rw 0 0" >> $mnt/etc/fstab
|
|
|
+echo "$disk1 / ext4 rw 0 0" >> $mnt/etc/fstab
|
|
|
+echo "/swapfile none swap defaults 0 0" >> $mnt/etc/fstab
|
|
|
+
|
|
|
# Configure sources.list
|
|
|
cat >$mnt/etc/apt/sources.list <<EOL
|
|
|
deb http://deb.debian.org/debian bookworm main non-free-firmware
|