Public bug reported:

Molly-guard breaks all forms of shutdown and reboot on Ubuntu Resolute
(and I *suspect* all other dracut-based distros, but I have not tested
that.) I believe it is the same issue discussed in Debian here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992351, but has a
slightly different work around for Ubuntu, detailed below

Ubuntu release:
Description:    Ubuntu 26.04.1 LTS
Release:        26.04

Package version:
molly-guard                             0.8.5build1

Expected behaviour:
issuing a reboot/shutdown reboots or shuts down the computer

Actual behaviour:
Reboot runs to the end, then logs `E: not a regular file: ` and drops to a 
recovery shell. Attempting to issue `reboot` or `shutdown` from there repeats 
the error (but issuing a ctrl+alt+delete) performs a reboot

Root cause (suspected):
Dracut installs reboot/poweroff etc into the initramfs, which is the 
molly-guard symlink (as `/usr/sbin/{shutdown,reboot,poweroff,...}`), but does 
not include the 
`/usr/sbin/{shutdown.no-molly-guard,reboot.no-molly-guard,poweroff.no-molly-guard,...}`
 files it needs in order to actually reboot the system. When shutdown switches 
to the initramfs at the end, it cannot find the binary to actually perform the 
final action on the system.


Work Around:
Create `/etc/dracut.conf.d/20-molly-guard.conf`, with the following content:

```
install_items+=" /usr/lib/molly-guard/molly-guard /lib/molly-guard/molly-guard 
/usr/sbin/coldreboot.no-molly-guard /usr/sbin/halt.no-molly-guard 
/usr/sbin/poweroff.no-molly-guard /usr/sbin/reboot.no-molly-guard 
/usr/sbin/shutdown.no-molly-guard "
```
and then run `dracut --regenerate-all -f` and reboots/poweroffs etc start 
working again.

** Affects: molly-guard (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2167868

Title:
  Molly-guard breaks sutdown/reboot on Ubuntu Resolute

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/molly-guard/+bug/2167868/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to