From 5381898ebaef1fef801dc83770521bb1c28eaf78 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Almeida?= Date: Wed, 21 Aug 2024 12:57:46 -0300 Subject: [PATCH] common/config: Correctly ignore {TEST|SCRATCH}_DEV for tmpfs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit As per commit 264e5358e2c2 ("tmpfs: don't require {TEST|SCRATCH}_DEV"), tmpfs doesn't need TEST or SCRATCH devices due to being a RAM-based filesystem. Fix the check by comparing the content of the variable TEST_DEV, instead of comparing with the string TEST_DEV. Same for SCRATCH_DEV. Fixes: 264e5358e2c2 ("tmpfs: don't require {TEST|SCRATCH}_DEV") Signed-off-by: André Almeida Reviewed-by: Darrick J. Wong Signed-off-by: Zorro Lang --- common/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/config b/common/config index 22740c0a..307f93fb 100644 --- a/common/config +++ b/common/config @@ -829,10 +829,10 @@ get_next_config() { fi if [ "$FSTYP" == "tmpfs" ]; then - if [ -z "TEST_DEV" ]; then + if [ -z "$TEST_DEV" ]; then export TEST_DEV=tmpfs_test fi - if [ -z "SCRATCH_DEV" ]; then + if [ -z "$SCRATCH_DEV" ]; then export TEST_DEV=tmpfs_scratch fi fi -- 2.39.5