Patchwork initramfs-framework: fix test that filter backup module files

login
register
mail settings
Submitter Michaël Burtin
Date Oct. 22, 2013, 9:45 a.m.
Message ID <1382435117-5375-1-git-send-email-michael.burtin@innotis.org>
Download mbox | patch
Permalink /patch/60353/
State Accepted
Commit b2eb846ee12989add7a7ca8bbf45f293a3a7e56d
Headers show

Comments

Michaël Burtin - Oct. 22, 2013, 9:45 a.m.
Test that filter backup module files (files starting with ~)
was accidentally reversed in e6039e6e3b98d6ab91252a5012d76279b1fac6e8,
this patch restore initial behavior.

Signed-off-by: Michaël Burtin <michael.burtin@innotis.org>
---
 meta/recipes-core/initrdscripts/initramfs-framework/init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init
index 20774aa..95fa9fb 100755
--- a/meta/recipes-core/initrdscripts/initramfs-framework/init
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/init
@@ -103,7 +103,7 @@  mkdir $ROOTFS_DIR
 # Load and run modules
 for m in $MODULES_DIR/*; do
 	# Skip backup files
-	if [ "`echo $m | sed -e 's/\~$//'`" = "$m" ]; then
+	if [ "`echo $m | sed -e 's/\~$//'`" != "$m" ]; then
 		continue
 	fi