[util-iso] mask some systemd services

This commit is contained in:
Philip Mueller 2023-08-08 08:34:10 +02:00
parent 65a84879e8
commit d7e97d48c9

View file

@ -402,6 +402,12 @@ make_image_live() {
copy_overlay "${profile_dir}/live-overlay" "${path}" copy_overlay "${profile_dir}/live-overlay" "${path}"
configure_live_image "${path}" configure_live_image "${path}"
# mask some systemd targets on live-session
ln -sfv /dev/null "${path}"/etc/systemd/system/sleep.target
ln -sfv /dev/null "${path}"/etc/systemd/system/suspend.target
ln -sfv /dev/null "${path}"/etc/systemd/system/hibernate.target
ln -sfv /dev/null "${path}"/etc/systemd/system/hybrid-sleep.target
if [[ -e "${path}/usr/share/calamares/branding/manjaro/calamares-sidebar.qml" ]]; then if [[ -e "${path}/usr/share/calamares/branding/manjaro/calamares-sidebar.qml" ]]; then
configure_branding "${path}" configure_branding "${path}"
msg "Done [Distribution: Release ${dist_release} Codename ${dist_codename}]" msg "Done [Distribution: Release ${dist_release} Codename ${dist_codename}]"