Package: dropbear-initramfs
Version: 2022.83-2
Severity: normal
Tags: patch

Dear Maintainer,

I am building reproducible initramfs using SOURCE_DATE_EPOCH.

This works great, but unfortunately, dropbear-initramfs breaks reproducibility,
because it creates a randomly named /root-XXXXXXX directory to store the
authorized_keys file. This is done in debian/hooks/dropbear.

It would be great if this could be fixed.
One solution would be to simply always use /root-dropbear-initramfs.
I have attached such a patch.


-- System Information:
Debian Release: 12.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-13-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dropbear-initramfs depends on:
ii  busybox          1:1.35.0-4+b3
ii  dropbear-bin     2022.83-2
ii  initramfs-tools  0.142
ii  udev             252.17-1~deb12u1

Versions of packages dropbear-initramfs recommends:
ii  cryptsetup-initramfs  2:2.6.1-4~deb12u1

dropbear-initramfs suggests no packages.

-- no debconf information
--- a/debian/hooks/dropbear
+++ b/debian/hooks/dropbear
@@ -24,7 +24,8 @@ for so in $(ldconfig -p | sed -nr 
's/^\s*libnss_files\.so\.[0-9]+\s.*=>\s*//p');
     copy_exec "$so"
 done

-home="$(mktemp --directory -- "$DESTDIR/root-XXXXXXXXXX")" # avoid collisions 
with $rootmnt
+home="$DESTDIR/root-dropbear-initramfs"
+mkdir "$home"

Reply via email to