From 8b2a692faf16b1b29f803317701cd0bdcdb7ce12 Mon Sep 17 00:00:00 2001
From: Thomas Glanzmann <thomas@glanzmann.de>
Date: Fri, 2 Sep 2022 10:35:03 +0200
Subject: [PATCH] typos, tutorial += firmware-linux, live system += cryptsetup
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

Hallo Thomas,

vielen Dank dafür, dass Du dich um den Debian Support für Asahilinux
kümmerst.

Ich konnte dank deines Tutorials

https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/blob_plain/refs/heads/master:/files/quickstart.txt

und des Live-Systems Debian nach meinem Geschmack installieren
(separate /boot Partition und / mit luks verschlüsselt).

Mir sind nur ein paar Kleinigkeiten aufgefallen, wenn man dem "Use the
live system to install debian" Teil folgt.

- typo: den.debian.org statt deb.debian.org ;)
- /lib/firmware/ existiert noch nicht auf dem mit debootstrap
  installierten system, so dass das entpacken der firmware von der EFI
  Partition fehlschlägt, es sei denn man hat vorher in der chroot
  Umgebung firmware-linux installiert oder das Verzeichnis manuell
  angelegt.
- Man könnte vielleicht darauf eingegangen, dass man in der chroot
  Umgebung einen User anlegen sollte (am Besten mit sudo), oder
  root ein Passwort gibt. Sonst hat man sich nach dem booten selbst
  ausgesperrt.
- cryptsetup im Live-System wäre vorteilhaft für luks recovery (kann
  man natürlich nachinstallieren und auch persistent machen, aber wenn
  es direkt dabei wäre, wäre es noch besser ;)

Ich weiß, das sind alles Kleinigkeiten, und jeder, der solche Dinge
tut, sollte genug Wissen haben um nicht darüber zu stolpern.

Also nochmals vielen Dank! :)

Andreas
---
 bootstrap.sh         | 2 +-
 files/quickstart.txt | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/bootstrap.sh b/bootstrap.sh
index c79389d..aa7279a 100644
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -78,7 +78,7 @@ build_rootfs()
         handle_crosscompile
         sudo rm -rf testing
         mkdir -p cache
-        sudo eatmydata ${DEBOOTSTRAP} --cache-dir=`pwd`/cache --arch=arm64 --include initramfs-tools,pciutils,wpasupplicant,tcpdump,vim,tmux,vlan,ntpdate,parted,curl,wget,grub-efi-arm64,mtr-tiny,dbus,ca-certificates,sudo,openssh-client,mtools,gdisk testing testing http://deb.debian.org/debian
+        sudo eatmydata ${DEBOOTSTRAP} --cache-dir=`pwd`/cache --arch=arm64 --include initramfs-tools,pciutils,wpasupplicant,tcpdump,vim,tmux,vlan,ntpdate,parted,curl,wget,grub-efi-arm64,mtr-tiny,dbus,ca-certificates,sudo,openssh-client,mtools,gdisk,cryptsetup testing testing http://deb.debian.org/debian
 
         export KERNEL=`ls -1rt linux-image*.deb | grep -v dbg | tail -1`
 
diff --git a/files/quickstart.txt b/files/quickstart.txt
index 4b57a89..61fed7d 100644
--- a/files/quickstart.txt
+++ b/files/quickstart.txt
@@ -113,12 +113,12 @@ cat <<EOF > /etc/fstab
 EOF
 
 cat <<EOF > /etc/apt/sources.list
-deb http://den.debian.org/debian testing main contrib non-free
-deb-src http://den.debian.org/debian testing main contrib non-free
+deb http://deb.debian.org/debian testing main contrib non-free
+deb-src http://deb.debian.org/debian testing main contrib non-free
 EOF
 
 apt update
-apt-get -y install initramfs-tools pciutils wpasupplicant tcpdump vim tmux vlan ntpdate parted curl wget grub-efi-arm64 mtr-tiny dbus ca-certificates sudo openssh-client mtools gdisk
+apt-get -y install initramfs-tools pciutils wpasupplicant tcpdump vim tmux vlan ntpdate parted curl wget grub-efi-arm64 mtr-tiny dbus ca-certificates sudo openssh-client mtools gdisk firmware-linux cryptsetup
 
 apt-get install -y grub-efi-arm64-signed-
 echo 'grub-efi-arm64 grub2/update_nvram boolean false' | debconf-set-selections
-- 
2.39.5