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.
This commit is contained in:
Matthias Clasen 2011-03-23 11:56:47 -04:00
parent 9a222daf12
commit 47eaac1dc1
1 changed files with 6 additions and 6 deletions

View File

@ -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