Blame SOURCES/0001-Disable-firstboot-graphical-service-at-the-end-10913.patch

acc58b
From 58abb4d88f2166e77f71fe1e6b59aaaafae8ca82 Mon Sep 17 00:00:00 2001
acc58b
From: Vratislav Podzimek <vpodzime@redhat.com>
acc58b
Date: Fri, 25 Apr 2014 12:47:47 +0200
acc58b
Subject: Disable firstboot-graphical service at the end (#1091317)
acc58b
acc58b
There's no point in running the service again and again on every single boot
acc58b
for it only to find out it shouldn't actually run.
acc58b
acc58b
Signed-off-by: Vratislav Podzimek <vpodzime@redhat.com>
acc58b
Signed-off-by: Martin Kolman <mkolman@redhat.com>
acc58b
---
acc58b
 progs/firstboot | 8 ++++++++
acc58b
 1 file changed, 8 insertions(+)
acc58b
acc58b
diff --git a/progs/firstboot b/progs/firstboot
acc58b
index 3d9c5e9..ba57ca6 100755
acc58b
--- a/progs/firstboot
acc58b
+++ b/progs/firstboot
acc58b
@@ -119,6 +119,10 @@ if __name__ == '__main__':
acc58b
                 if line.strip() == 'RUN_FIRSTBOOT=NO':
acc58b
                     os.system('systemctl stop firstboot-graphical.service > /dev/null 2>&1')
acc58b
                     os.system('systemctl stop firstboot-text.service > /dev/null 2>&1')
acc58b
+
acc58b
+                    # disable the service so that it doesn't run on every boot just to find
acc58b
+                    # out it should kill itself
acc58b
+                    os.system("systemctl disable firstboot-graphical.service")
acc58b
                     sys.exit(0)
acc58b
 
acc58b
     if not opts.module_dir:
acc58b
@@ -178,5 +182,9 @@ if __name__ == '__main__':
acc58b
             except OSError:
acc58b
                 pass
acc58b
 
acc58b
+        # disable the service so that it doesn't run on every boot just to find
acc58b
+        # out it should kill itself
acc58b
+        os.system("systemctl disable firstboot-graphical.service")
acc58b
+
acc58b
     if reboot_required:
acc58b
         os.system("/sbin/reboot")
acc58b
-- 
acc58b
1.9.3
acc58b