summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/live.cfg4
-rwxr-xr-xfiles/draklive-install.d/run.d/gdm-permissions.sh5
2 files changed, 9 insertions, 0 deletions
diff --git a/config/live.cfg b/config/live.cfg
index 6da844a..3031e40 100644
--- a/config/live.cfg
+++ b/config/live.cfg
@@ -87,9 +87,13 @@ my $_l = {
[ 'files/draklive-install.d/remove.d/disable-speedboot', '/etc/draklive-install.d/remove.d/disable-speedboot', { mode => 0644 } ],
# fix for sometimes wrong permissions
[ 'files/draklive-install.d/run.d/home-live-permissions.sh', '/etc/draklive-install.d/run.d/home-live-permissions.sh', { mode => 755 } ],
+ # fix for /var/lib/gdm sometimes ending up as root:root
+ if_($live->{settings}{desktop} eq 'GNOME',
+ [ 'files/draklive-install.d/run.d/gdm-permissions.sh', '/etc/draklive-install.d/run.d/gdm-permissions.sh', { mode => 755 } ]),
if_($live->{settings}{desktop} eq 'KDE4',
[ 'files/draklive-install.d/run.d/generate-gtk-icon-cache.sh', '/etc/draklive-install.d/run.d/generate-gtk-icon-cache.sh', { mode => 755 } ]),
+
#- sysconfig files for first boot
[ $live->{settings}{media} eq 'usb' ?
"files/finish-install.$live->{settings}{media}" :
diff --git a/files/draklive-install.d/run.d/gdm-permissions.sh b/files/draklive-install.d/run.d/gdm-permissions.sh
new file mode 100755
index 0000000..b549986
--- /dev/null
+++ b/files/draklive-install.d/run.d/gdm-permissions.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if [ -d "/var/lib/gdm" ]; then
+ chown -R gdm:gdm /var/lib/gdm
+fi