]> code.ossystems Code Review - openembedded-core.git/commit
initramfs-framework: unmount automounts before switch_root
authorJustin Bronder <jsbronder@cold-front.org>
Thu, 10 Feb 2022 20:23:22 +0000 (15:23 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 12 Feb 2022 17:05:30 +0000 (17:05 +0000)
commit4dc7af6d25597ea10ea43e76c7c3d7251462c0e5
tree57c9afdff71f326b81d0600e9c90d9d3cd2c90ab
parent775e3e4ca357bd11ec77cd01ca072c6adca89173
initramfs-framework: unmount automounts before switch_root

If mounts are left lingering, then after we switch_root, attempts to
modify the block devices will result in an EBUSY with no way to unmount
them.  As we're about to switch_root anyways, there isn't much use to
keep anything mounted unless it has the new rootfs.

Signed-off-by: Justin Bronder <jsbronder@cold-front.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/initramfs-framework/finish