[Fedora-spins] [spin-kickstarts] base: prevent unintended failures in the livesys initscript

Matthias Clasen mclasen at fedoraproject.org
Wed Mar 23 15:59:54 UTC 2011


commit 47eaac1dc1f15de620d5409ee817de8fdf30d133
Author: Matthias Clasen <mclasen at redhat.com>
Date:   Wed Mar 23 11:56:47 2011 -0400

    base: prevent unintended failures in the livesys initscript
    
    Some of the tweaks we do there may fail if the packages containing
    the touched files are not present. Better be careful.

 fedora-live-base.ks |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/fedora-live-base.ks b/fedora-live-base.ks
index 96bd99b..f2d7766 100644
--- a/fedora-live-base.ks
+++ b/fedora-live-base.ks
@@ -188,21 +188,21 @@ chkconfig --level 345 firstboot off 2>/dev/null
 echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
 
 # don't start yum-updatesd for livecd boots
-chkconfig --level 345 yum-updatesd off 2>/dev/null
+chkconfig --level 345 yum-updatesd off 2>/dev/null || :
 
 # turn off mdmonitor by default
-chkconfig --level 345 mdmonitor off 2>/dev/null
+chkconfig --level 345 mdmonitor off 2>/dev/null || :
 
 # turn off setroubleshoot on the live image to preserve resources
-chkconfig --level 345 setroubleshoot off 2>/dev/null
+chkconfig --level 345 setroubleshoot off 2>/dev/null || :
 
 # don't enable the gnome-settings-daemon packagekit plugin
-gsettings set org.gnome.settings-daemon.plugins.updates active 'false'
+gsettings set org.gnome.settings-daemon.plugins.updates active 'false' || :
 
 # don't start cron/at as they tend to spawn things which are
 # disk intensive that are painful on a live image
-chkconfig --level 345 crond off 2>/dev/null
-chkconfig --level 345 atd off 2>/dev/null
+chkconfig --level 345 crond off 2>/dev/null || :
+chkconfig --level 345 atd off 2>/dev/null || :
 
 # Stopgap fix for RH #217966; should be fixed in HAL instead
 touch /media/.hal-mtab


More information about the spins mailing list