From: Jo Zzsi Date: Sat, 7 Feb 2026 20:10:48 +0000 (-0500) Subject: fix(base): ensure that /run survives switch_root X-Git-Tag: 110~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9ecf13f7f9c66ce58bc410da5e00da0ed982cc9;p=thirdparty%2Fdracut-ng.git fix(base): ensure that /run survives switch_root Ensure /run survives switch_root not only systemd enabled initramfs, but initramfs without systemd. This change makes systemd and non-systemd initramfs behaves similarly. This change also enables the newly added test case for hooks to pass on the busybox CI container. This PR has no impact on systemd enabled initramfs. --- diff --git a/.github/workflows/daily-busybox-x64.yml b/.github/workflows/daily-busybox-x64.yml index 4b2ee2b6f..7e00d0f83 100644 --- a/.github/workflows/daily-busybox-x64.yml +++ b/.github/workflows/daily-busybox-x64.yml @@ -32,6 +32,7 @@ jobs: - '11' - '12' - '13' + - '14' - '20' - '26' - '50' diff --git a/modules.d/80base/init.sh b/modules.d/80base/init.sh index 26b554ab5..36e7dbaf7 100755 --- a/modules.d/80base/init.sh +++ b/modules.d/80base/init.sh @@ -365,6 +365,8 @@ if ! [ -d "$NEWROOT"/run ]; then NEWRUN=/dev/.initramfs mkdir -m 0755 -p "$NEWRUN" mount --rbind /run/initramfs "$NEWRUN" +else + mount --move /run "$NEWROOT"/run fi wait_for_loginit