summaryrefslogtreecommitdiffstats
path: root/base/aaabasicfs/lfs-bootscripts-01.patch
blob: 8e8163a0fb720d6fec8d1e983aeaa2152004f150 (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
--- 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)