]> 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>
Tue, 22 Feb 2022 03:29:53 +0000 (11:29 +0800)
commit991631492f4fafc1852113a34a60b025342518b6
treebb64f53fd8f4426966fbf421bd4ce800c8066b4a
parent10ae047aba143efb7b736029d14da46ea0905f6f
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>
meta/recipes-core/initrdscripts/initramfs-framework/finish