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:
parent
29bd71264d
commit
cb707e83c8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue