[arch-projects] [initscripts] [PATCH 04/20] rc.sysinit: add status output for mtab and dmesg.log creation
Kurt J. Bosch
kjb-temp-2009 at alpenjodel.de
Mon Jun 27 18:32:45 EDT 2011
---
rc.sysinit | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/rc.sysinit b/rc.sysinit
index 2596fc1..0d94177 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -198,11 +198,13 @@ status "Remounting Root Read/Write" \
# don't touch /etc/mtab if it is a symlink to /proc/self/mounts
if [[ ! -L /etc/mtab ]]; then
+ stat_busy "Creating mtab"
if [[ -x $(type -P findmnt) && -e /proc/self/mountinfo ]]; then
findmnt -rnu -o SOURCE,TARGET,FSTYPE,OPTIONS >| /etc/mtab
else
cat /proc/mounts >| /etc/mtab
fi
+ (( $? == 0 )) && stat_done || stat_fail
fi
# now mount all the local filesystems
@@ -271,12 +273,14 @@ fi
# Set console font if required
set_consolefont
-if [[ -e /proc/sys/kernel/dmesg_restrict ]] &&
- (( $(< /proc/sys/kernel/dmesg_restrict) == 1 )); then
- install -Tm 0600 <( dmesg ) /var/log/dmesg.log
-else
- install -Tm 0644 <( dmesg ) /var/log/dmesg.log
-fi
+stat_busy "Saving dmesg Log"
+ if [[ -e /proc/sys/kernel/dmesg_restrict ]] &&
+ (( $(< /proc/sys/kernel/dmesg_restrict) == 1 )); then
+ install -Tm 0600 <( dmesg ) /var/log/dmesg.log
+ else
+ install -Tm 0644 <( dmesg ) /var/log/dmesg.log
+ fi
+(( $? == 0 )) && stat_done || stat_fail
run_hook sysinit_end
--
1.7.1
More information about the arch-projects
mailing list