From 1a3c9d8ce57e6c1d5fe1414c08229f018a62853e Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 17 Sep 2004 20:13:24 +0000 Subject: rhgb enhancements (, #132665) --- rc.d/rc.sysinit | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'rc.d/rc.sysinit') diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index db6b3d10..7db1a880 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -383,7 +383,11 @@ if [ -z "$fastboot" -a "$READONLY" != "yes" -a "X$ROOTFSTYPE" != "Xnfs" -a "X$RO else rootdev=/ fi - initlog -c "fsck -T -a $rootdev $fsckoptions" + if [ "${RHGB_STARTED}" != "" -a -w /etc/rhgb/temp/rhgb-console ]; then + fsck -T -a $rootdev $fsckoptions > /etc/rhgb/temp/rhgb-console + else + initlog -c "fsck -T -a $rootdev $fsckoptions" + fi rc=$? if [ "$rc" -eq "0" ]; then @@ -639,7 +643,11 @@ _RUN_QUOTACHECK=0 if [ -z "$fastboot" ]; then STRING=$"Checking filesystems" echo $STRING - initlog -c "fsck -T -R -A -a $fsckoptions" + if [ "${RHGB_STARTED}" != "" -a -w /etc/rhgb/temp/rhgb-console ]; then + fsck -T -R -A -a $fsckoptions > /etc/rhgb/temp/rhgb-console + else + initlog -c "fsck -T -R -A -a $fsckoptions" + fi rc=$? if [ "$rc" -eq "0" ]; then success "$STRING" -- cgit