]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
initramfs-framework: mount /run and move to rootfs before switch_root
authorRicardo Salveti <ricardo@foundries.io>
Tue, 19 Aug 2025 00:56:05 +0000 (21:56 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Aug 2025 20:47:33 +0000 (21:47 +0100)
commit3a4bd7ddefbf5b412a2b4031d491f5a50f1908cd
treef38d1042120d2120b59b66f786cb3b992a5ae9a6
parent72c3e493ab1899f39b89de9c41f5af2b0178f61b
initramfs-framework: mount /run and move to rootfs before switch_root

Mount /run as tmpfs during early init and include it in the set of
mounts moved to $ROOTFS_DIR prior to exec switch_root.

Having /run available early lets initramfs modules stamp state that can
later influence systemd service jobs, since systemd will reuse the mount
point instead of creating a new one during boot.

This is particularly useful with ostree, as it uses /run/ostree-booted
as way to describe that the rootfs comes from an ostree deployment.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/initramfs-framework/finish
meta/recipes-core/initrdscripts/initramfs-framework/init