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
This commit is contained in:
Oliver Smith 2023-07-18 14:23:28 +02:00
parent 29bd71264d
commit cb707e83c8
1 changed files with 2 additions and 2 deletions

View File

@ -10,10 +10,10 @@ initrd_add_file() {
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