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

Reinstall of linux-current failed with clr-boot-manager error: FATAL: Cannot mount boot device #3742

Open
2 tasks done
TraceyC77 opened this issue Sep 3, 2024 · 7 comments
Labels
Bug Something isn't working Priority: Normal Normal priority

Comments

@TraceyC77
Copy link
Contributor

Please confirm there isn't an existing open bug report

  • I have searched open bugs for this issue

Summary

Reinstall of linux-current failed with an error from clr-boot-manager

After doing a check for broken packages, the following were listed as broken

Reordering install order so system.base packages come first.
Following packages will be installed:
font-droid-ttf  golang  linux-current  linux-lts

The attempted reinstall of linux-current failed with an error (linux-lts worked)

Installing 4 / 4
linux-current-6.10.6-300-1-x86_64.eopkg [cached]
Installing linux-current, version 6.10.6, release 300
Extracting the files of linux-current
Installed linux-current
 [✓] Syncing filesystems                                                success
 [✗] Updating clr-boot-manager                                           failed

A copy of the command output follows:

[FATAL] cbm (../src/bootman/bootman.c:L562): FATAL: Cannot mount boot device /dev/nvme0n1p1 on /boot: No such device


 [✗] Updating clr-boot-manager                                           failed

A copy of the command output follows:

[FATAL] cbm (../src/bootman/bootman.c:L562): FATAL: Cannot mount boot device /dev/nvme0n1p1 on /boot: No such device


 [✓] Running depmod on kernel 6.10.6-300.current                        success
 [✓] Running depmod on kernel 6.6.47-252.lts                            success
 [✓] Compiling and Reloading AppArmor profiles                          success
 [✓] Rebuilding font cache                                              success
 [✓] Updating mimetype database                                         success

This was the command used to find and fix broken packages (from the Help Center)

sudo eopkg check | grep Broken | awk '{print $4}' | xargs -r sudo eopkg it --reinstall

Steps to reproduce

  1. Run sudo eopkg check | grep Broken | awk '{print $4}' | xargs -r sudo eopkg it --reinstall

I don't know if simply trying to reinstall linux-current will trigger the error

Expected result

linux-current is reinstalled if necessary

Actual result

Error

[FATAL] cbm (../src/bootman/bootman.c:L562): FATAL: Cannot mount boot device /dev/nvme0n1p1 on /boot: No such device

Environment

  • Is system up to date?

Repo

Unstable

Desktop Environment

Plasma

System details

Operating System: Solus 4.5
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.6-300.current (64-bit)
Graphics Platform: Wayland
Processors: 16 × 11th Gen Intel® Core™ i7-11800H @ 2.30GHz
Memory: 62.5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics
Manufacturer: Dell Inc.
Product Name: XPS 17 9710

Other comments

This has affected at least one other user on stable. forum post

Running this was successful:

sudo eopkg it --reinstall linux-current
@TraceyC77 TraceyC77 added Bug Something isn't working Priority: Normal Normal priority labels Sep 3, 2024
@silkeh
Copy link
Member

silkeh commented Sep 4, 2024

Can you (or anyone with the same issue) provide the output of the following command if it fails?

sudo env CBM_DEBUG=1 clr-boot-manager update

Additionally, the output of sudo journalctl -k around the time that the failure occurs would probably be helpful to determine where the issue is.

@Prichman
Copy link

Prichman commented Sep 4, 2024

got the same problem, fresh installation + sudo eopkg up

sudo env CBM_DEBUG=1 clr-boot-manager update

[DEBUG] cbm (../src/cli/cli.c:L142): No such file: //etc/kernel/update_efi_vars
[INFO] cbm (../src/bootman/bootman.c:L787): Current running kernel: 6.6.9-269.current
[DEBUG] cbm (../src/bootman/bootman.c:L141): shim-systemd caps: 0x26, wanted: 0x02
[DEBUG] cbm (../src/bootman/bootman.c:L156): UEFI boot now selected (shim-systemd)
[INFO] cbm (../src/bootman/bootman.c:L807): path ///etc/kernel/initrd.d does not exist
[INFO] cbm (../src/bootman/bootman.c:L807): path ///usr/lib64/kernel/initrd.d does not exist
[INFO] cbm (../src/bootman/bootman.c:L503): Checking for mounted boot dir
[FATAL] cbm (../src/bootman/bootman.c:L520): Cannot determine boot device

@silkeh
Copy link
Member

silkeh commented Sep 4, 2024

@Prichman: that looks like a different error to me. Could you create a new issue? Include the output of the following commands:

sudo bootctl --no-pager
sudo efibootmgr
sudo blkid

@hdansin72
Copy link

Can you (or anyone with the same issue) provide the output of the following command if it fails?

sudo env CBM_DEBUG=1 clr-boot-manager update

[DEBUG] cbm (../src/cli/cli.c:L142): No such file: //etc/kernel/update_efi_vars
[INFO] cbm (../src/bootman/bootman.c:L787): Current running kernel: 6.6.49-253.lts
[INFO] cbm (../src/bootman/sysconfig.c:L179): Discovered UEFI ESP: /dev/disk/by-partuuid/e0ee4067-2145-498e-90d4-b6c9499d1607
[INFO] cbm (../src/bootman/sysconfig.c:L256): Fully resolved boot device: /dev/nvme0n1p1
[DEBUG] cbm (../src/lib/probe.c:L290): Root device exists on device-mapper configuration
[DEBUG] cbm (../src/bootman/bootman.c:L141): shim-systemd caps: 0x26, wanted: 0x26
[DEBUG] cbm (../src/bootman/bootman.c:L156): UEFI boot now selected (shim-systemd)
[INFO] cbm (../src/bootman/bootman.c:L807): path ///etc/kernel/initrd.d does not exist
[INFO] cbm (../src/bootman/bootman.c:L807): path ///usr/lib64/kernel/initrd.d does not exist
[INFO] cbm (../src/bootman/bootman.c:L503): Checking for mounted boot dir
[INFO] cbm (../src/bootman/bootman.c:L555): Mounting boot device /dev/nvme0n1p1 at /boot
[SUCCESS] cbm (../src/bootman/bootman.c:L568): /dev/nvme0n1p1 successfully mounted at /boot
[DEBUG] cbm (../src/bootman/update.c:L164): Now beginning update_native
[DEBUG] cbm (../src/bootman/update.c:L173): update_native: 1 available kernels
[DEBUG] cbm (../src/bootman/update.c:L191): update_native: Running kernel is (lts) ///usr/lib/kernel/com.solus-project.lts.6.6.49-253
[ERROR] cbm (../src/lib/bootvar.c:L372): efi_set_variable() failed: No space left on device
[ERROR] cbm (../src/bootloaders/shim-systemd.c:L365): Cannot create EFI variable (boot entry)
[ERROR] cbm (../src/bootloaders/shim-systemd.c:L366): Please manually update your bios to add a boot entry for Solus
[SUCCESS] cbm (../src/bootman/update.c:L205): update_native: Bootloader updated
[SUCCESS] cbm (../src/bootman/update.c:L220): update_native: Repaired running kernel ///usr/lib/kernel/com.solus-project.lts.6.6.49-253
[DEBUG] cbm (../src/bootman/update.c:L230): update_native: Checking kernels for type lts
[INFO] cbm (../src/bootman/update.c:L243): update_native: Default kernel for type lts is ///usr/lib/kernel/com.solus-project.lts.6.6.49-253
[SUCCESS] cbm (../src/bootman/update.c:L255): update_native: Installed tip for lts: ///usr/lib/kernel/com.solus-project.lts.6.6.49-253
[SUCCESS] cbm (../src/bootman/update.c:L269): update_native: Installed last_good kernel (lts) (///usr/lib/kernel/com.solus-project.lts.6.6.49-253)
[DEBUG] cbm (../src/bootman/update.c:L280): update_native: Analyzing for type lts: ///usr/lib/kernel/com.solus-project.lts.6.6.49-253
[DEBUG] cbm (../src/bootman/update.c:L285): update_native: Skipping running kernel
[INFO] cbm (../src/bootman/bootman.c:L503): Checking for mounted boot dir
[INFO] cbm (../src/bootman/bootman.c:L510): boot_dir is already mounted: /boot
[SUCCESS] cbm (../src/bootman/update.c:L338): update_native: Default kernel for lts is ///usr/lib/kernel/com.solus-project.lts.6.6.49-253
[DEBUG] cbm (../src/bootman/update.c:L353): No kernel removals found
[INFO] cbm (../src/bootman/bootman.c:L469): Attempting umount of /boot
[SUCCESS] cbm (../src/bootman/bootman.c:L473): Unmounted boot directory

@hdansin72
Copy link

Additionally, the output of sudo journalctl -k around the time that the failure occurs would probably be helpful to determine where the issue is.

Sep 12 20:16:40 solus kernel: Linux version 6.6.49-253.lts ([email protected]) (gcc (Solus) 14.2.0, GNU ld (GNU Binu>
Sep 12 20:16:40 solus kernel: Command line: initrd=\EFI\com.solus-project\initrd-com.solus-project.lts.6.6.49-253 root=>
Sep 12 20:16:40 solus kernel: BIOS-provided physical RAM map:
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000000a0000-0x00000000000fffff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x0000000000100000-0x0000000009cfffff] usable
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x0000000009d00000-0x0000000009ffffff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x000000000a000000-0x000000000a1fffff] usable
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x000000000a200000-0x000000000a209fff] ACPI NVS
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x000000000a20a000-0x000000000affffff] usable
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x000000000b000000-0x000000000b01ffff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x000000000b020000-0x00000000eac2bfff] usable
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000eac2c000-0x00000000ec104fff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000ec105000-0x00000000ec119fff] ACPI data
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000ec11a000-0x00000000ec5c2fff] ACPI NVS
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000ec5c3000-0x00000000ed313fff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000ed314000-0x00000000eeffffff] usable
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000ef000000-0x00000000efffffff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000fd100000-0x00000000fdffffff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000fea00000-0x00000000fea0ffff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000feb80000-0x00000000fec01fff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000fec10000-0x00000000fec10fff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000fec30000-0x00000000fec30fff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000fed00000-0x00000000fed00fff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000fed40000-0x00000000fed44fff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000fed80000-0x00000000fed8ffff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000fedc2000-0x00000000fedcffff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000fedd4000-0x00000000fedd5fff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000fee00000-0x00000000feefffff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
Sep 12 20:16:40 solus kernel: BIOS-e820: [mem 0x0000000100000000-0x000000040f33ffff] usable
Sep 12 20:16:40 solus kernel: NX (Execute Disable) protection: active
Sep 12 20:16:40 solus kernel: APIC: Static calls initialized
Sep 12 20:16:40 solus kernel: extended physical RAM map:
Sep 12 20:16:40 solus kernel: reserve setup_data: [mem 0x0000000000000000-0x000000000009ffff] usable
Sep 12 20:16:40 solus kernel: reserve setup_data: [mem 0x00000000000a0000-0x00000000000fffff] reserved
Sep 12 20:16:40 solus kernel: reserve setup_data: [mem 0x0000000000100000-0x0000000009cfffff] usable
Sep 12 20:16:40 solus kernel: reserve setup_data: [mem 0x0000000009d00000-0x0000000009ffffff] reserved
Sep 12 20:16:40 solus kernel: reserve setup_data: [mem 0x000000000a000000-0x000000000a1fffff] usable
Sep 12 20:16:40 solus kernel: reserve setup_data: [mem 0x000000000a200000-0x000000000a209fff] ACPI NVS
Sep 12 20:16:40 solus kernel: reserve setup_data: [mem 0x000000000a20a000-0x000000000affffff] usable

@silkeh
Copy link
Member

silkeh commented Sep 13, 2024

@hdansin72 your output shows a different error than the one this ticket is about:

[ERROR] cbm (../src/lib/bootvar.c:L372): efi_set_variable() failed: No space left on device
[ERROR] cbm (../src/bootloaders/shim-systemd.c:L365): Cannot create EFI variable (boot entry)
[ERROR] cbm (../src/bootloaders/shim-systemd.c:L366): Please manually update your bios to add a boot entry for Solus

Feel free to submit a different issue, but I recommend you join the Matrix support chat for interactive debugging.

@silkeh
Copy link
Member

silkeh commented Sep 13, 2024

@TraceyC77: What happens if you execute sudo modprobe vfat before reinstalling? So:

sudo modprobe vfat
sudo env CBM_DEBUG=1 eopkg it --reinstall linux-current

(Don't ask how badly I had to mess up my system to get the same error)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Priority: Normal Normal priority
Projects
Status: Ready
Development

No branches or pull requests

4 participants