10
rc.in
10
rc.in
@@ -118,6 +118,8 @@ rc.remount_root() {
|
||||
}
|
||||
|
||||
rc.boot() {
|
||||
(( cfg_early_fsck )) && rc.fsck
|
||||
|
||||
rc.mount
|
||||
rc.tmpfiles
|
||||
rc.hostname
|
||||
@@ -181,6 +183,14 @@ rc.timezone() {
|
||||
}
|
||||
}
|
||||
|
||||
rc.fsck() {
|
||||
declare root_rw=0
|
||||
touch /rc-write-test && root_rw=1
|
||||
(( root_rw )) && mount -o remount,ro /
|
||||
fsck -A -C -p
|
||||
(( root_rw )) && mount -o remount,rw /
|
||||
}
|
||||
|
||||
rc.main() {
|
||||
source "@ETC@/rc.conf"
|
||||
|
||||
|
Reference in New Issue
Block a user