[util-iso] mask some systemd services
This commit is contained in:
parent
65a84879e8
commit
d7e97d48c9
1 changed files with 6 additions and 0 deletions
|
@ -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}]"
|
||||||
|
|
Loading…
Reference in a new issue