systemd: ignore power button

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2018-04-21 09:55:48 +02:00
parent 6ce3be6e85
commit bf217bc814

View File

@ -197,6 +197,7 @@ post_makeinstall_target() {
# tune logind.conf
sed -e "s,^.*HandleLidSwitch=.*$,HandleLidSwitch=ignore,g" -i $INSTALL/etc/systemd/logind.conf
sed -e "s,^.*HandlePowerKey=.*$,HandlePowerKey=ignore,g" -i $INSTALL/etc/systemd/logind.conf
# replace systemd-machine-id-setup with ours
rm -rf $INSTALL/usr/lib/systemd/systemd-machine-id-commit