When shutting down Finnix Rescue Disk (using power button), I got the following message:
Please remove the live-medium, close the tray (if any) and press ENTER to continue:
Well, if I don't use power button, I can just trigger poweroff -f
, where the -f option to force the rescue disk to shutdown, this will shutdown the OS without the above interactive message.
But using the power button it will not shutdown the OS with option -f. So how do you skip this message when shutting down the Finnix Rescue Disk using power button?
I found this post here which talks about
- modifying the script for /run/casper-no-prompt (but it doesn't work probably because this file is only for Ubuntu-based)
- putting
noprompt
and I even putnoeject
at the boot parameter but it has no effect
Note that I'm able to edit this ISO file and repack it back and make it bootable. So, is there a file that I can modify to skip the above interactive message when shutting down Finnix like putting a boot script that will trigger after pressing power button. I found that post here about Graceful shutdown via power button but it talks about CentOS only but I don't think this will work.
systemd
that if you have something under[/usr]/lib/systemd/...
that you need to override, you can (and should) do it by placing a file with the exact same name in the corresponding path under/etc/systemd/...
. In this case, you could runmkdir -p /etc/systemd/system-shutdown; ln -s /dev/null /etc/systemd/system-shutdown/live-tools.shutdown
to override the existing script in a "standard" way. – telcoM Apr 16 '21 at 12:55