Package: initramfs-tools-core Version: 0.142 Severity: normal configure_networking tries to source /run/net-*.conf files at the end of its run. If the networking timed out, no files exist. If the shell is also dash, the '.' operator failing to find any file to source causes the entire shell to exit, regardless of 'set -e' or not.
Naturally, this causes problems since the calling init script is unceremoniously killed off in the middle of execution. I'd prefer if the init script continued running, so it has an opportunity to retry the networking or take other actions. (I've encountered a few circumstances where configure_networking times out before the network and DHCP are functional after a power outage.) Just a brief demonstration of the surprising-to-me(-and-of-course-documented) behavior: paul@haley ~ % cat repro.sh #!/bin/sh . /nonexistent echo hello paul@haley ~ % dash ./repro.sh ./repro.sh: 3: .: cannot open /nonexistent: No such file paul@haley ~ % sh ./repro.sh ./repro.sh: 3: .: cannot open /nonexistent: No such file paul@haley ~ % bash ./repro.sh ./repro.sh: line 3: /nonexistent: No such file or directory hello paul@haley ~ % -- System Information: Debian Release: bookworm/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.0.0-4-amd64 (SMP w/4 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages initramfs-tools-core depends on: ii coreutils 9.1-1 ii cpio 2.13+dfsg-7.1 ii e2fsprogs 1.46.6~rc1-1+b1 ii klibc-utils 2.0.11-1 ii kmod 30+20220905-1 ii logsave 1.46.6~rc1-1+b1 ii udev 252.2-2 Versions of packages initramfs-tools-core recommends: ii busybox 1:1.35.0-4 ii zstd 1.5.2+dfsg-1 Versions of packages initramfs-tools-core suggests: ii bash-completion 1:2.11-6 -- no debconf information