On Thu, Dec 24, 2020 at 11:53:36AM +0800, Cao Xueliang wrote:
We may don't need do this, because we just need vmlinuz for now.
Ok. I got it.
Thanks, Chenglong
Thanks, Xueliang
On Thu, Dec 24, 2020 at 10:18:53AM +0800, Wang Chenglong wrote:
[error] [WARNNING] Restoring the owner of qcow2 file Finding vmlinuz under /tmp/a/boot ...
/c/compass-ci/container/qcow2rootfs/bin/common: line 135: ROOTFS_VMLINUZ_FILE: unbound variable
[why] some kernels are called vmlinux instead of vmlinuz.
container/qcow2rootfs/bin/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/container/qcow2rootfs/bin/common b/container/qcow2rootfs/bin/common index da39f52..baf936c 100755 --- a/container/qcow2rootfs/bin/common +++ b/container/qcow2rootfs/bin/common @@ -127,7 +127,7 @@ get_rootfs_kernel() { exit 5 } local vmlinuz_file vmlinuz kernel
- vmlinuz_file=$(find ./boot -name "vmlinuz-*" |grep -v rescue) && export ROOTFS_VMLINUZ_FILE=$vmlinuz_file
- vmlinuz_file=$(find ./boot -name "vmlinu[z|x]-*" | grep -v rescue) && export ROOTFS_VMLINUZ_FILE=$vmlinuz_file vmlinuz=$(basename "$vmlinuz_file") && export ROOTFS_VMLINUZ=$vmlinuz kernel=${vmlinuz:8} && export ROOTFS_KERNEL=$kernel
-- 2.23.0