From a3f76e06e725aeb03bb50a4d6cfaf4cb7fc47877 Mon Sep 17 00:00:00 2001 From: Lasath Fernando Date: Mon, 14 Oct 2024 01:30:42 +0000 Subject: [PATCH] Allow sudo for live user --- mkosi.extra/usr/bin/_kde-linux-live-setup | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mkosi.extra/usr/bin/_kde-linux-live-setup b/mkosi.extra/usr/bin/_kde-linux-live-setup index cfd4e3c..7991d13 100755 --- a/mkosi.extra/usr/bin/_kde-linux-live-setup +++ b/mkosi.extra/usr/bin/_kde-linux-live-setup @@ -52,6 +52,12 @@ cat << EOF > /home/live/.config/kwalletrc Enabled=false EOF +# Allow sudo in the live environment for troubleshooting +mkdir -p /etc/sudoers.d +cat << EOF > /etc/sudoers.d/04_live +%wheel ALL=(ALL:ALL) NOPASSWD: ALL +EOF + cp /usr/share/applications/calamares.desktop /home/live/Desktop/ chmod +x /home/live/Desktop/calamares.desktop # without this there'd be a dialog asking if it really should execute