summaryrefslogtreecommitdiffstats
path: root/patches/finish-install.patch
blob: 6fc80b27de824fbec056f0d845d79635fb85dd9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- sbin/finish-install.orig	2016-11-09 00:00:58.898476630 +0000
+++ sbin/finish-install	2016-11-08 23:59:16.474905520 +0000
@@ -256,13 +256,16 @@
 }
 
 sub ask_gnome_reboot() {
+    # This is needed even if we don't reboot, to allow gdm to restart
+    # if the live user logs out
+    run_program::run('/usr/bin/chown', '-R', 'gdm:gdm', '/var/lib/gdm');
+
     my $lock_file = '/etc/draklive-install.d/gnome-reboot';
     if (!is_mgalive()) {
 	if (-f $lock_file) {
 	    run_program::run('/usr/bin/rm', '-f', $lock_file);
 	    # FIXME: convert to perl/gtk* window popup for translation support
 	    system('/usr/bin/zenity', qw(--timeout=20 --title), N("Finishing install"), qw(--no-wrap --info --text), N("This system will be rebooted\nfor the changes to take effect!"));
-	    run_program::run('/usr/bin/chown', '-R', 'gdm:gdm', '/var/lib/gdm');
 	    run_program::run('/usr/sbin/ldconfig', '-X');
 	    run_program::run('/usr/bin/systemctl', 'reboot');
 	}