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

Raw-efi images unbootable/require manual intervention on real hardware #244

Open
arbv opened this issue Jun 4, 2023 · 1 comment
Open

Comments

@arbv
Copy link

arbv commented Jun 4, 2023

I have tried to boot a raw-efi image and got similar situation to the one described here:

#192

I had to manually mount /boot in order to continue (it worked fine). It appears to be cause by the fact that mounting /dev/vda1 to /boot is hardcoded somewhere during image building step. That is, these images appear to be bootable only on KVM. Take a look at /etc/fstab to from the image to give you some clues:

# This is a generated file.  Do not edit!
#
# To make changes, edit the fileSystems and swapDevices NixOS options
# in your /etc/nixos/configuration.nix file.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

# Filesystems.
/dev/disk/by-label/nixos / ext4 x-nixos.autoresize,x-initrd.mount 0 1
/dev/vda1 /boot vfat defaults 0 2


# Swap devices.

It appears that for /boot the right line should be /dev/disk/by-label/ESP /boot vfat defaults 0 2.

Please take a look at that. I have produced the image for rescue purposes but it turned out the the rescue image itself needs to be rescued first :)

At any rate, I am very impressed by how easy it is to build an image using this project. Thank you!

@arbv
Copy link
Author

arbv commented Jun 4, 2023

One important (or not) addition: I have built the image for ARM64 using flakes (--system aarch64-linux) parameter.

I have used nixos-generators from nixpkgs (23.05).

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

1 participant