]> 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)
committerAnuj Mittal <anuj.mittal@intel.com>
Fri, 25 Feb 2022 03:03:51 +0000 (11:03 +0800)
commit999883990235251127b65f2277dcb40004e7f657
treea25e718071d641334ba5577d5d15cf7c0f21cb76
parent140247e499b85ef2d5c48f9723ed2e2ec9108fb1
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>
(cherry picked from commit 4dc7af6d25597ea10ea43e76c7c3d7251462c0e5)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
(cherry picked from commit 991631492f4fafc1852113a34a60b025342518b6)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/recipes-core/initrdscripts/initramfs-framework/finish