Prompt error message "Failed to unmount /oldroot" when shutdown or reboot
Bug #1955690 reported by
Bin Li
This bug report is a duplicate of:
Bug #1940514: It will prompt "Failed to unmount /oldroot" when shutdown or reboot.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OEM Priority Project |
New
|
Undecided
|
Unassigned | ||
finalrd |
New
|
Undecided
|
Unassigned | ||
mdadm |
New
|
Undecided
|
Unassigned | ||
mdadm (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
After I installed the mdadm, it will show this error information, our OEM vendor request to fix this issue.
The root cause is that mdadm depend on finalrd, and finalrd will switch rootfs to clean disk, but it couldn't umount /oldroot, cause it's used by plymouth.
To post a comment you must log in.
In systemd/ mdadm.shutdown from mdadm, it also do "mdadm --wait-clean --scan". But in ubuntu we do not install mdadm-shutdown. service, and do ship finalrd hook.
$ cat ./debian/ mdadm.finalrd Identifier: GPL-3.0-only
#!/bin/sh
# SPDX-License-
set -e
if [ "$1" = "setup" ] initramfs- tools/hook- functions
then
. /usr/share/
copy_exec /sbin/mdadm
copy_exec /sbin/mdmon
exit 0
fi
mdmon --all --takeover
mdadm -vv --wait-clean --scan
mdadm -vv --stop --scan