From 34faea4b5099a8435723e34ff1a9d86d2b06187c Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 21 Apr 2022 14:43:00 -0700 Subject: [PATCH] Disable automount on KDE live images (#2073708) It's mounting non-removable devices and causing problems for anaconda. Note, KDE will still show a notification with a button for mounting the device, and it shows in the file manager where clicking on it mounts it; the behaviour is about the same as Fedora 35 (slightly better, as the notification shows on subsequent plugs of the same stick, which it did not in F35). Signed-off-by: Adam Williamson --- fedora-live-kde-base.ks | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/fedora-live-kde-base.ks b/fedora-live-kde-base.ks index 2ba360b..a9ec74b 100644 --- a/fedora-live-kde-base.ks +++ b/fedora-live-kde-base.ks @@ -85,6 +85,15 @@ cat > /home/liveuser/.config/kwalletrc << KWALLET_EOL alreadyMigrated=true KWALLET_EOL +# Disable automount of 'known' devices +# https://bugzilla.redhat.com/show_bug.cgi?id=2073708 +cat > /home/liveuser/.config/kded_device_automounterrc << AUTOMOUNTER_EOF +[General] +AutomountEnabled=false +AutomountOnLogin=false +AutomountOnPlugin=false +AUTOMOUNTER_EOF + # make sure to set the right permissions and selinux contexts chown -R liveuser:liveuser /home/liveuser/ restorecon -R /home/liveuser/