Public bug reported:
Ubuntu 26.04 with Dracut can fail to reboot because of molly-guard,
with:
[ OK ] Reached target reboot.target - System Reboot.
E: not a regular file:
dracut Warning: reboot failed!
See attachment for details.
/usr/lib/molly-guard/molly-guard generates that E:
case "$CMD" in
halt|reboot|shutdown|poweroff|coldreboot|pm-hibernate|pm-suspend|pm-suspend-hybrid)
if ! EXEC=$(command -v "$CMD.no-molly-guard"); then
if ! EXEC=$(command -v "$CMD.no-molly-guard.usr-is-merged"); then
echo "E: not a regular file: $EXEC" >&2
exit 4
fi
fi
That code is a bit weird, because it will only ever print an empty EXEC.
But then also, the code here (from
`/usr/lib/dracut/modules.d/86shutdown/shutdown.sh`):
case "$ACTION" in
reboot | poweroff | halt)
$ACTION -f -n
warn "$ACTION failed!"
;;
may want to be a bit more clever. Perhaps there is some fallback possibility.
I'm not sure why most of my ubuntu 26.04 servers with molly-guard don't have
this issue, and some do.
** Affects: dracut (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "dracut-reboot-fail-image.png"
https://bugs.launchpad.net/bugs/2173086/+attachment/6015118/+files/dracut-reboot-fail-image.png
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2173086
Title:
Dracut fails reboot because of molly-guard
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dracut/+bug/2173086/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs