Since vmlinuz path changed from $rootfs_dir/vmlinuz to rootfs_dir/boot/vmlinuz, here keep consistent.
Signed-off-by: Xu Xijian hdxuxijian@163.com --- container/update-os-docker/lib/common.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/container/update-os-docker/lib/common.rb b/container/update-os-docker/lib/common.rb index 23c4fdc..5b1353d 100755 --- a/container/update-os-docker/lib/common.rb +++ b/container/update-os-docker/lib/common.rb @@ -27,7 +27,7 @@ end def check_argv(argv) usage(argv) rootfs_dir = Pathname.new(OS_PATH + argv[0]).realpath.to_s - raise 'Wrong vmlinuz path' unless File.exist?(rootfs_dir + '/vmlinuz') + raise 'Wrong vmlinuz path' unless File.exist?(rootfs_dir + '/boot/vmlinuz')
return rootfs_dir end
On Wed, Dec 02, 2020 at 02:13:03PM +0800, Xu Xijian wrote:
Since vmlinuz path changed from $rootfs_dir/vmlinuz to rootfs_dir/boot/vmlinuz,
^----------------------^-------- keep same meaning.
rootfs_dir => $rootfs_dir Thanks, Liushaofei
here keep consistent.
Signed-off-by: Xu Xijian hdxuxijian@163.com
container/update-os-docker/lib/common.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/container/update-os-docker/lib/common.rb b/container/update-os-docker/lib/common.rb index 23c4fdc..5b1353d 100755 --- a/container/update-os-docker/lib/common.rb +++ b/container/update-os-docker/lib/common.rb @@ -27,7 +27,7 @@ end def check_argv(argv) usage(argv) rootfs_dir = Pathname.new(OS_PATH + argv[0]).realpath.to_s
- raise 'Wrong vmlinuz path' unless File.exist?(rootfs_dir + '/vmlinuz')
raise 'Wrong vmlinuz path' unless File.exist?(rootfs_dir + '/boot/vmlinuz')
return rootfs_dir
end
2.23.0
On Wed, Dec 02, 2020 at 02:42:17PM +0800, Liu Shaofei wrote:
On Wed, Dec 02, 2020 at 02:13:03PM +0800, Xu Xijian wrote:
Since vmlinuz path changed from $rootfs_dir/vmlinuz to rootfs_dir/boot/vmlinuz,
^----------------------^-------- keep same meaning. rootfs_dir => $rootfs_dir Thanks, Liushaofei
good.
Thanks, Xijian