Package: dropbear-initramfs
Version: 2022.82-3
Severity: minor

While experimenting with the kernel 'ip=' parameter (see Bug#1015287),
I have been seeing strange errors on screen during bootup. Note that
these are cases in which the kernel networking initialisation fails but,
as I don't actually need initramfs dropbear access for the boot itself,
the system continues to boot anyway.

As an example of the strange error: part way through the main system boot
(at least a minute AFTER initramfs is over and the main startup is
running) I get this message:

/scripts/init-premount/dropbear: line 384: can't open '/run/net-*.conf': No 
such file or directory

Other messages and errors occur - in some circumstances I have seen many,
many screenfuls of errors complaining that many basic system utilities are
missing (although startup works despite the messages)! I assume the
initramfs busybox files have disappeared from the filesystem but has left
some script running.

I am guessing main issue is the one documented in "wait_for_dropbear" in
/usr/share/initramfs-tools/scripts/init-bottom/dropbear. wait_for_dropbear
seems to be waiting for a long time (longer than the initramfs takes to run
and well into the main system startup), before giving up and returning.
By the time it returns, the initramfs context has disappeared and the rest of
init-bottom/dropbear (and also /scripts/init-premount/dropbear ??) are
running in an environment where the initramfs is no longer available.

I assume that this will occur on any system which does not require user
interaction during initramfs but has dropbear-initramfs and an invalid 'ip='
specification.

I am setting the priority to minor because it seems the only impact is that
the console loses a load of startup messages because of the spurious messages
from the initramfs scripts still running after main boot is underway.

Graham

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.18.0-2-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_IE.utf8, LC_CTYPE=en_IE.utf8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_IE.utf8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dropbear-initramfs depends on:
ii  busybox          1:1.35.0-1
ii  dropbear-bin     2022.82-3
ii  initramfs-tools  0.142
ii  udev             251.2-7

Versions of packages dropbear-initramfs recommends:
ii  cryptsetup-initramfs  2:2.4.3-1

dropbear-initramfs suggests no packages.

-- debconf-show failed

Reply via email to