diff --git a/fedora-live-desktop.ks b/fedora-live-desktop.ks index b582183..6bfd535 100644 --- a/fedora-live-desktop.ks +++ b/fedora-live-desktop.ks @@ -37,7 +37,6 @@ FOE # don't run gnome-initial-setup mkdir ~liveuser/.config touch ~liveuser/.config/gnome-initial-setup-done -chown -R liveuser:liveuser ~liveuser/.config # make the installer show up if [ -f /usr/share/applications/liveinst.desktop ]; then @@ -56,7 +55,6 @@ FOE mkdir -p ~liveuser/.config/autostart cp /usr/share/anaconda/gnome/fedora-welcome.desktop /usr/share/applications/ cp /usr/share/anaconda/gnome/fedora-welcome.desktop ~liveuser/.config/autostart/ - chown -R liveuser:liveuser /home/liveuser/.config/ fi fi @@ -75,6 +73,10 @@ if [ -f /etc/PackageKit/CommandNotFound.conf ]; then sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf fi +# make sure to set the right permissions and selinux contexts +chown -R liveuser:liveuser /home/liveuser/ +restorecon -R /home/liveuser/ + EOF %end