Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chmod: cannot access '/boot/vmlinuz*' if no kernel is installed in container. #53

Open
chantra opened this issue Oct 20, 2022 · 1 comment

Comments

@chantra
Copy link
Collaborator

chantra commented Oct 20, 2022

If the container does not have any /boot/vmlinuz* file, preepare-rootfs will fail with:

Disk image: /tmp/root.img
vmlinux_setup - Preparing Linux image
  
  chmod: cannot access '/boot/vmlinuz*': No such file or directory
  libguestfs: error: /usr/bin/supermin exited with error status 1.
  To see full error messages you may need to enable debugging.
  Do:
    export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
  and run the command again.  For further information, read:
    http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
  You can also run 'libguestfs-test-tool' and post the *complete* output
  into a bug report or message to the libguestfs mailing list.
  Error: Process completed with exit code 2.

This is due to

sudo chmod +r /boot/vmlinuz* || true

Installing linux-image-generic in the container works.

apt install linux-image-generic

but we should re-assess if this is really needed still.

@thefallentree
Copy link
Collaborator

thefallentree commented Nov 25, 2022

i don't know why this is needed: I don't think we do: we should simply delete that chmod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants