From 4a3217092185a284e8909703bcd51801296dc702 Mon Sep 17 00:00:00 2001 From: Eryu Guan Date: Mon, 8 Feb 2016 09:27:14 +1100 Subject: [PATCH] common: no need to parse config file in new I saw "new" failed the TEST_DEV/SCRATCH_DEV validation when TEST_DEV or SCRATCH_DEV points to directory, which is needed in overlayfs testing. "new" only generates test template and doesn't need common/config to parse and validate TEST_DEV/SCRATCH_DEV etc., so just returns after setting all needed commands. Signed-off-by: Eryu Guan Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- common/config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/config b/common/config index 7a098ae1..b5f6fd42 100644 --- a/common/config +++ b/common/config @@ -270,6 +270,11 @@ fi rm -f /tmp/crc_check.img export XFS_MKFS_HAS_NO_META_SUPPORT +# new doesn't need config file parsed, we can stop here +if [ "$iam" == "new" ]; then + return 0 +fi + _mount_opts() { case $FSTYP in -- 2.39.5