Package: molly-guard
Version: 0.7.2

Hi.

When using molly-guard together with dracut machine fails to
poweroff/halt/reboot with a issue like:


[   67.897697] dracut Warning: Killing all remaining processes
dracut Warning: Killing all remaining processes
[   67.975525] dracut Warning: Unmounted /oldroot.
[   68.002391] dracut: Disassembling device-mapper devices
E: not a regular file: /lib/molly-guard/poweroff[   68.036575] dracut Warning: 
poweroff failed!

dracut Warning: poweroff failed!


[   68.039669] dracut Warning: 
dracut Warning: 


Generating "/run/initramfs/rdsosreport.txt"
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot
after mounting them and attach it to a bug report.

To get more debug information in the report,
reboot with "rd.debug" added to the kernel command line.

Dropping to debug shell.

shutdown:/# 


This is because the /lib/molly-guard/poweroff symlink isn't available in
the dracut initramfs.


This can be worked around by adding this:
install_items+=" /lib/molly-guard/poweroff /lib/molly-guard/reboot 
/lib/molly-guard/halt /lib/molly-guard/shutdown "

to

/etc/dracut.conf.d/20-molly-guard.conf


And rebuilding the initramfs.


//Anton

Reply via email to