[PATCH 05/33] common/rc: streamline _scratch_remount

Darrick J. Wong
2025-10-29T01:21:44Z

Remounting a filesystem should be pretty straightforward invocation of
mount -o remount,XXX. Instead, we go through _try_scratch_mount, which
recomputes the filesystem type and the mount options, which is probably
not what the caller actually wanted. Streamline this by calling the
_mount wrapper directly.

This also means that /sbin/mount.$FSTYP won't be invoked for a remount,
which doesn't work if that binary is actually a fuse filesystem driver.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
common/rc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/rc b/common/rc
index 98609cb6e7a058..182a782a16783e 100644
--- a/common/rc
+++ b/common/rc
@@ -552,7 +552,7 @@ _scratch_remount()
local opts="$1"

if test -n "$opts"; then
- _try_scratch_mount "-o remount,$opts"
+ _mount $SCRATCH_MNT "-o remount,$opts"
fi
}