[arch-projects] [initscripts] [PATCH 01/18] Add/simplify some comments

Kurt J. Bosch kjb-temp-2009 at alpenjodel.de
Mon Jun 27 13:11:07 EDT 2011


---
 functions  |    4 +++-
 rc.sysinit |    3 +++
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/functions b/functions
index b64f78b..6666acf 100644
--- a/functions
+++ b/functions
@@ -368,6 +368,7 @@ read_crypttab() {
 
 NETFS="nonfs,nonfs4,nosmbfs,nocifs,nocodafs,noncpfs,nosysfs,noshfs,nofuse,nofuseblk,noglusterfs,nodavfs"
 
+# Check local filesystems
 fsck_all() {
 	stat_busy "Checking Filesystems"
 	FSCK_OUT=/dev/stdout
@@ -387,6 +388,7 @@ fsck_all() {
 	return $fsckret
 }
 
+# Single-user login and/or automatic reboot after fsck if needed
 fsck_reboot() {
 	# $1 = exit code returned by fsck
 	# Ignore conditions 'FS errors corrected' and 'Cancelled by the user'
@@ -496,7 +498,7 @@ if (( RC_FUNCTIONS_HOOK_FUNCS_DEFINED != 1 )); then
 	declare -r RC_FUNCTIONS_HOOK_FUNCS_DEFINED=1
 fi
 
-# Function for setting console font if required
+# Set console font
 set_consolefont() {
 	[[ $CONSOLEFONT ]] || return 0
 	stat_busy "Loading Console Font: $CONSOLEFONT"
diff --git a/rc.sysinit b/rc.sysinit
index a2c775f..50a8faf 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -90,6 +90,7 @@ udevd_modprobe sysinit
 [[ $USEBTRFS = [Yy][Ee][Ss] && -x $(type -P btrfs) ]] &&
 	status "Activating BTRFS volumes" btrfs device scan
 
+# Activate LVM2 groups if any
 activate_vgs
 
 # Set up non-root encrypted partition mappings
@@ -186,7 +187,9 @@ if [[ -f /etc/crypttab && $CS ]] && grep -q ^[^#] /etc/crypttab; then
 fi
 
 if [[ -x $(type -P fsck) ]]; then
+	# Check filesystems
 	fsck_all
+	# Single-user login and/or automatic reboot if needed
 	fsck_reboot $?
 fi
 
-- 
1.7.1



More information about the arch-projects mailing list