[Bug 1928200] Re: Prompt error message "Failed to unmount /oldroot" when shutdown or reboot
Daniel
1928200 at bugs.launchpad.net
Thu Dec 23 18:41:00 UTC 2021
I still have this problem, but I have solved it.
I create files
file: /etc/systemd/system/kill-plymouthd.service
[Unit]
Description=kill plymouthd
After=umount.target
DefaultDependencies=false
[Service] Type=oneshot
ExecStart=/usr/bin/pkill plymouthd
[Install] WantedBy=final.target
file: /etc/systemd/system/rm-nvidia.service
[Unit]
Description=rm nvidia modules
After=umount.target
DefaultDependencies=false
[Service] Type=oneshot
ExecStart=/usr/sbin/rmmod nvidia_uvm
ExecStart=/usr/sbin/rmmod nvidia_drm
ExecStart=/usr/sbin/rmmod nvidia_modeset
ExecStart=/usr/sbin/rmmod nvidia
ExecStart=/usr/sbin/rmmod i2c_nvidia_gpu
[Install]
WantedBy=final.target
execute:
sudo systemctl daemon-reload
sudo systemctl enable rm-nvidia.service
sudo systemctl enable kill-plymouthd.service
for debug this problem i installed finalrd ane created executable
/etc/finalrd/sleep.finalrd
#!/bin/sh
set -x
if [ "$1" = "setup" ] then
. /usr/share/initramfs-tools/hook-functions
copy_exec /usr/bin/sleep
copy_exec /usr/bin/mount
exit 0
fi
#your debug script
mount
sleep 30
i have second system with ubuntu and in this second system i do not have
nvidia drivers and i only created kill-plymouthd.service and this also
work.
and i did know why plymouthd is not killed befor umount root fs..
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1928200
Title:
Prompt error message "Failed to unmount /oldroot" when shutdown or
reboot
Status in OEM Priority Project:
Fix Released
Status in systemd package in Ubuntu:
Fix Released
Status in systemd source package in Focal:
Fix Released
Bug description:
[impact]
root fs is not cleanly unmounted on shutdown
[test case]
create a file in /etc/binfmt.d/TestFormat.conf with the following
content:
:TestFormat:M::XX::/bin/true:F
reboot the system, and then shutdown or reboot again, and watch the
serial console for the error message:
sd-umount[1334]: Failed to unmount /oldroot: Device or resource busy
[regression potential]
any regression would likely cause problems on shutdown and/or reboot,
or may cause problems with unmounted root fs on shutdown/reboot
[scope]
this is needed only for f
this is fixed upstream with PR 15566 which is included in v246, so
this is fixed already in g and later
this isn't reproducable on b
[original description]
On ubuntu 20.04, with latest kernel and systemd, it will show error on
ThinkPad X1.
sd-umount[1334]: Failed to unmount /oldroot: Device or resource busy
systemd 245.4-4ubuntu3.6
kernel: 5.8.0-53
To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1928200/+subscriptions
More information about the foundations-bugs
mailing list