summaryrefslogtreecommitdiffstats
path: root/base/aaabasicfs/lfs-bootscripts-02.patch
blob: 56ee98ec83b842f48c2e264ae7403b2d7d47a9be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
--- lfs-bootscripts-20090817/lfs/init.d/checkfs.orig	2009-10-02 21:54:45.000000000 +0000
+++ lfs-bootscripts-20090817/lfs/init.d/checkfs	2009-10-02 21:56:21.000000000 +0000
@@ -58,15 +58,15 @@
 			boot_mesg -n "/forcefsck found, forcing file" ${INFO}
 			boot_mesg " system checks as requested."
 			echo_ok
-			options="-f"
+			options="-A -C -T"
 		else
-			options=""
+			options="-a -A -C -T"
 		fi
 
 		boot_mesg "Checking file systems..."
 		# Note: -a option used to be -p; but this fails e.g.
 		# on fsck.minix
-		fsck ${options} -a -A -C -T
+		fsck ${options}
 		error_value=${?}
 
 		if [ "${error_value}" = 0 ]; then
--- lfs-bootscripts-20090817/lfs/init.d/cleanfs.orig	2009-10-04 07:55:51.000000000 +0000
+++ lfs-bootscripts-20090817/lfs/init.d/cleanfs	2009-10-04 08:03:50.000000000 +0000
@@ -74,6 +74,7 @@
 		boot_mesg -n "Cleaning file systems:" ${INFO}
 
 		boot_mesg -n " /tmp" ${NORMAL}
+		chmod 1777 /tmp
 		cd /tmp &&
 		find . -xdev -mindepth 1 ! -name lost+found \
 			-delete || failed=1
--- lfs-bootscripts-20090817/lfs/init.d/sysklogd.orig	2009-10-04 08:06:12.000000000 +0000
+++ lfs-bootscripts-20090817/lfs/init.d/sysklogd	2009-10-04 08:07:04.000000000 +0000
@@ -30,6 +30,10 @@
 
 		boot_mesg "Stopping system log daemon..."
 		killproc syslogd
+		mv /var/log/sys.log /var/log/sys.log.old
+		touch /var/log/sys.log
+		mv /var/log/wtmp /var/log/wtmp.old
+		touch /var/log/wtmp
 		;;
 
 	reload)
diff -Naur lfs-bootscripts-20100627-original/lfs/init.d/consolelog lfs-bootscripts-20100627/lfs/init.d/consolelog
--- lfs-bootscripts-20100627-original/lfs/init.d/consolelog	2007-07-18 15:26:34.000000000 +0200
+++ lfs-bootscripts-20100627/lfs/init.d/consolelog	2010-07-04 16:13:04.000000000 +0200
@@ -17,7 +17,7 @@
 . ${rc_functions}
 
 # set the default loglevel
-LOGLEVEL=7
+LOGLEVEL=1
 if [ -r /etc/sysconfig/console ]; then
 	. /etc/sysconfig/console
 fi
@@ -25,7 +25,10 @@
 case "${1}" in
 	start)
 		case "$LOGLEVEL" in
-		[1-8])
+		1)
+			dmesg -n $LOGLEVEL
+			;;
+		[2-8])
 			boot_mesg "Setting the console log level to ${LOGLEVEL}..."
 			dmesg -n $LOGLEVEL
 			evaluate_retval