]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
chore(base): remove support for /dev/.initramfs
authorJo Zzsi <jozzsicsataban@gmail.com>
Sun, 8 Feb 2026 15:35:58 +0000 (10:35 -0500)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sun, 8 Feb 2026 20:12:02 +0000 (15:12 -0500)
/dev/.initramfs was a fallback when /run is not available.

This commit removes this legacy fallback support, which was only
available in a non-systemd enviroment.

Follow-up to dbad9f466 .

modules.d/80base/init.sh

index 36e7dbaf7c4e4dcab42825bf2bba1d6bf80b2b14..366481493322c9fd31418286dd69585148b0d5d0 100755 (executable)
@@ -361,11 +361,7 @@ else
 fi
 debug_on
 
-if ! [ -d "$NEWROOT"/run ]; then
-    NEWRUN=/dev/.initramfs
-    mkdir -m 0755 -p "$NEWRUN"
-    mount --rbind /run/initramfs "$NEWRUN"
-else
+if [ -d "$NEWROOT"/run ]; then
     mount --move /run "$NEWROOT"/run
 fi