From 517f9d7f4e245769fcdaac995168daee8f0b3cd6 Mon Sep 17 00:00:00 2001 From: "Milton D. Miller II" Date: Sun, 28 Feb 2016 15:54:53 -0600 Subject: update: Do not check if the whitelist is empty Let the copy loop execute zero times instead of checking if the whitelist is empty. Suppressing the mount and copying the files can be achieved via command line options. This removes a condition and prepares for splitting the whitelist into component files with support for commented out lines. Signed-off-by: Milton Miller --- .../common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh index dff23d50d..f40a54692 100755 --- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh +++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh @@ -90,7 +90,7 @@ do esac done -if test "x$dosave" = xy -a -n "$rwfs" -a -s whitelist +if test "x$dosave" = xy -a -n "$rwfs" then mkdir -p $rwdir mount $rwdev $rwdir -t $(probe_fs_type $rwdev) -o $rorwopts -- cgit v1.2.1