overlay: use OVL_BASE_SCRATCH_MNT instead of SCRATCH_DEV

Use the new var OVL_BASE_SCRATCH_MNT to refer to overlay
base dir instead of the legacy SCRATCH_DEV var.

In overlay/011, when using MOUNT_PROG directly, provide
OVL_BASE_SCRATCH_MNT as device argument instead of 'none'.
This fix is required to support mount of base fs.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Amir Goldstein
2017-02-28 14:18:37 +02:00
committed by Eryu Guan
parent 2ab614524d
commit 33e4199895
26 changed files with 64 additions and 65 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ _require_chattr
_scratch_mkfs
# Preparing immutable file
upperdir=$SCRATCH_DEV/$OVL_UPPER
upperdir=$OVL_BASE_SCRATCH_MNT/$OVL_UPPER
mkdir -p $upperdir
touch $upperdir/foo
$CHATTR_PROG +i $upperdir/foo