From 1bc9c1a06eb51cc8278dc4c2a24af9a00a20f017 Mon Sep 17 00:00:00 2001 From: Eryu Guan Date: Mon, 10 Nov 2014 18:06:23 +1100 Subject: [PATCH] common: use _scratch_mount helper in _require_relatime() Change the way how _require_relatime() mount $SCRATCH_DEV, use _scratch_mount helper so $SCRATCH_DEV is mounted with selinux context, to avoid "same superblock, different selinux context" failure. Signed-off-by: Eryu Guan Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- common/rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/rc b/common/rc index fc18520d..d5e3aff0 100644 --- a/common/rc +++ b/common/rc @@ -2399,7 +2399,7 @@ _require_atime() _require_relatime() { _scratch_mkfs > /dev/null 2>&1 - _mount -t $FSTYP -o relatime $SCRATCH_DEV $SCRATCH_MNT || \ + _scratch_mount -o relatime || \ _notrun "relatime not supported by the current kernel" _scratch_unmount } -- 2.39.5