summaryrefslogtreecommitdiffstats
path: root/source/a/sysvinit-scripts/scripts/rc.S
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/sysvinit-scripts/scripts/rc.S')
-rw-r--r--source/a/sysvinit-scripts/scripts/rc.S7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/a/sysvinit-scripts/scripts/rc.S b/source/a/sysvinit-scripts/scripts/rc.S
index a4cfb4691..2e44be8be 100644
--- a/source/a/sysvinit-scripts/scripts/rc.S
+++ b/source/a/sysvinit-scripts/scripts/rc.S
@@ -220,8 +220,13 @@ if [ -z "$container" ]; then
# If we're using F2FS for the root filesystem, don't check it as it doesn't
# allow checking a read-only filesystem:
if grep -q ' / f2fs ' /proc/mounts ; then
- echo "Remounting root device with read-write enabled."
+ echo "Remounting f2fs root device with read-write enabled."
/sbin/mount -w -v -o remount /
+ # If we're using bcachefs for the root filesystem(s), remount read-write
+ # and let bcachefs do its own fsck:
+ elif grep -q ' / bcachefs ' /proc/mounts ; then
+ echo "Remounting bcachefs root device(s) with read-write enabled."
+ /sbin/mount -o remount,rw,fsck /
elif [ ! $READWRITE = yes ]; then
# Check the root filesystem:
RETVAL=0