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

Unable to use efibootmgr on a NVMe system #135

Closed
remyoudompheng opened this issue Sep 10, 2019 · 1 comment
Closed

Unable to use efibootmgr on a NVMe system #135

remyoudompheng opened this issue Sep 10, 2019 · 1 comment

Comments

@remyoudompheng
Copy link

remyoudompheng commented Sep 10, 2019

I am unable to use efibootmgr on a NVMe system running Debian 10, making bootloader install ineffective (or at least very inconvenient).
Debian 10 runs Linux 4.19.67 and efibootmgr 15 and efivar 37.

# efibootmgr --create --loader /EFI/debian/grubx64.efi --label debian -v3 --disk /dev/nvme0n1p1
Could not prepare Boot variable: No such file or directory
error trace:
linux.c:390 device_get(): readlink of /sys/block/(null)/device failed: No such file or directory
creator.c:155 open_disk(): could not open disk: No such file or directory
...

(and same error with --disk /dev/nvme0n1 --part 1)

Trying to debug I observed the following pattern, which seems unexpected by function set_disk_and_part_name

# ls -l /dev/nvme0n1p1
brw-rw---- 1 root disk 259, 6 Sep 10 15:06 /dev/nvme0n1p1
# ls -ld /sys/dev/block/259:6
lrwxrwxrwx 1 root root 0 Sep 10 15:10 /sys/dev/block/259:6 -> ../../devices/virtual/nvme-subsystem/nvme-subsys0/nvme0n1/nvme0n1p1
@vathpela
Copy link
Contributor

vathpela commented Oct 2, 2019

Can you try #139 and see if this fixes it?

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

3 participants