From 1cb9c9da22f5bd28749478b7410f81b0db3d37d6 Mon Sep 17 00:00:00 2001
From: Holger Paradies <retabell@gmx.de>
Date: Mon, 27 Nov 2023 17:54:23 +0100
Subject: Remove powermanagementprofilesrc

Delete during live boot created .config/powermanagementprofilesrc
which disable suspend and hibernate in live-mode.
File will automatically recreated at session-startup.
---
 backend/modules/install_configure | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/backend/modules/install_configure b/backend/modules/install_configure
index 977a6db..36f85f9 100644
--- a/backend/modules/install_configure
+++ b/backend/modules/install_configure
@@ -196,6 +196,9 @@ function configure_target_purge_live_only_stuff()
 	# remove kdm live shutdown hack
 	rm -f "$TARGET/home/$cfg_username/.kde/shutdown/kdm-force-shutdown-hack"
 
+	# remove with live-boot created powermanagementprofilesrc ,will be automatically recreated at plasma5 session-startup
+	rm -f "$TARGET/home/$cfg_username/.config/powermanagementprofilesrc"
+
         # remove live-only hooks
         rm -rf $TARGET/lib/live
         rm -f $TARGET/etc/profile.d/zz-live.sh
-- 
cgit v1.0