OSDN Git Service

gen_initramfs.sh: remove intermediate cpio_list on errors
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 4 Jan 2020 15:02:38 +0000 (00:02 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 15 Jan 2020 15:26:22 +0000 (00:26 +0900)
commit7168965ec7b10b8a2c7dea1f82f1ebadf44d64ba
tree7155183fd7b75f3c4f540f18f0e3c95926ba1028
parent65e00e04e5aea34b256814cfa21b32e3b94a2402
gen_initramfs.sh: remove intermediate cpio_list on errors

This script sets the -e option, so it exits on any error, in which
case it exits without cleaning up the intermediate cpio_list.

Make sure to delete it on exit.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
usr/gen_initramfs.sh