osmith has uploaded this change for review.

View Change

scripts/kernel-test: fixup for initrd_add_file

The previous versions happened to work too in my testing with
osmo-ggsn. Use the correct loop variable.

Fixes: 0660fc4e ("scripts/kernel-test: adjust to usr-merge")
Change-Id: I0c0ca91116a8cd156b185bb53512371bbcb76515
---
M scripts/kernel-test/initrd-build.sh
1 file changed, 15 insertions(+), 2 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/86/33786/1
diff --git a/scripts/kernel-test/initrd-build.sh b/scripts/kernel-test/initrd-build.sh
index 6c17ffa..d942719 100755
--- a/scripts/kernel-test/initrd-build.sh
+++ b/scripts/kernel-test/initrd-build.sh
@@ -10,10 +10,10 @@
for i in "$@"; do
case "$i" in
/bin/*|/sbin/*|/lib/*|/lib64/*)
- cp -a --parents "$@" /tmp/initrd/usr
+ cp -a --parents "$i" /tmp/initrd/usr
;;
*)
- cp -a --parents "$@" /tmp/initrd
+ cp -a --parents "$i" /tmp/initrd
;;
esac
done

To view, visit change 33786. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I0c0ca91116a8cd156b185bb53512371bbcb76515
Gerrit-Change-Number: 33786
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>
Gerrit-MessageType: newchange