- local kernel_num=$(echo "$kernel_path" | wc -l)
- [ "$kernel_num" == "1" ] || die "result rootfs have multiple vmlinuz, num: $kernel_num"
^--------- here should be "[ $kernel_num -gt 1 ] ?
good.
if [ $kernel_num == 0 ] , whether to need handle ?
no need, if kernel num is not equal to 1, it is all failed.
-------- Thanks Yu Chuan
Thanks, Liushaofei
local root_path case ${rootfs_protocol} in "nfs") -- 2.23.0