On Mon, 20 Nov 2023 at 10:42:30 +0100, Yannik Sembritzki wrote: > Would you be open to a two step approach like this: > > 1. fix the reproducibility bug > 2. improve the root directory creation process (I can create another bug to > track this)
Just pushed https://salsa.debian.org/debian/dropbear/-/commit/1c709e951d97a132a9d4f3de4b9cc406a83e0b64 , ~root will now be reused if the root user is already set up. Ideally the latter should be done by initramfs-tools itself, but in the meantime copyping the enclosed hook into /usr/share/initramfs-tools/hooks should solve the issue (once 2022.83-3 lands in sid). -- Guilhem.
#!/bin/sh PREREQ="" prereqs() { echo "$PREREQ" } case "$1" in prereqs) prereqs exit 0 ;; esac . /usr/share/initramfs-tools/hook-functions home="/rootuser" echo "root:*:0:0::$home:/bin/sh" >"$DESTDIR/etc/passwd" mkdir -m0700 "$DESTDIR$home"
signature.asc
Description: PGP signature