Dracut-rebuild not working while updating

while updating , I got this message :


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

The kernel update failed to determine how to update initramfs.
You will need to update manually using mkinitcpio or dracut yourself or your system WILL NOT BE BOOTABLE.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Waiting 10 seconds.

Here is the full log :

Well, for solving this I needed to run dracute as root ,

 ╭─ankur@ankur in ~ 
 ╰─λ dracut-rebuild 
This script needs to be run as root.

 ╭─ankur@ankur in ~ took 4ms
[🔴] × sudo dracut-rebuild
[sudo] password for ankur:            
:: Building initramfs for linux-nitrous (6.9.10-nitrous+)
:: Building fallback initramfs for linux-nitrous (6.9.10-nitrous+)

 ╭─ankur@ankur in ~ as 🧙 took 21s
 ╰─λ 

and now I am going to reboot , but IDK if this is going to work or not , because I have never explored dracute , but I felt like it is needed to be told to the community in case if someone gets this error ,so maybe this will help :slightly_smiling_face:

Also some other things that I thought would help for devs :

 ╭─ankur@ankur in ~ took 8m5s
 ╰─λ sudo pacman -S garuda-dracut-support
[sudo] password for ankur:            
warning: garuda-dracut-support-1.1.0-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (1)                   Old Version  New Version  Net Change  Download Size

garuda/garuda-dracut-support  1.1.0-1      1.1.0-1        0.00 MiB       0.01 MiB

Total Download Size:   0.01 MiB
Total Installed Size:  0.00 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 garuda-dracut-support-1.1.0-1-any                                         5.1 KiB  1860   B/s 00:03 [-----------------------------------------------------------] 100%
(1/1) checking keys in keyring                                                                       [-----------------------------------------------------------] 100%
(1/1) checking package integrity                                                                     [-----------------------------------------------------------] 100%
(1/1) loading package files                                                                          [-----------------------------------------------------------] 100%
(1/1) checking for file conflicts                                                                    [-----------------------------------------------------------] 100%
(1/1) checking available disk space                                                                  [-----------------------------------------------------------] 100%
warning: could not get file information for usr/bin/dracut-rebuild
warning: could not get file information for usr/lib/dracut/modules.d/91btrfs-snapshot-overlay/module-setup.sh
warning: could not get file information for usr/lib/dracut/modules.d/91btrfs-snapshot-overlay/snapshot-overlay.sh
warning: could not get file information for usr/share/libalpm/hooks/60-dracut-remove.hook
warning: could not get file information for usr/share/libalpm/hooks/90-dracut-install.hook
warning: could not get file information for usr/share/libalpm/scripts/dracut-install
warning: could not get file information for usr/share/libalpm/scripts/dracut-remove
:: Running pre-transaction hooks...
(1/2) Rejecting pacman transaction if running in snapshot...
(2/2) Performing snapper pre snapshots for the following configurations...
==> root: 183
:: Processing package changes...
(1/1) reinstalling garuda-dracut-support                                                             [-----------------------------------------------------------] 100%
:: Running post-transaction hooks...
(1/7) Arming ConditionNeedsUpdate...
(2/7) Updating initramfs...
:: Building initramfs for linux-nitrous (6.9.10-nitrous+)
:: Building fallback initramfs for linux-nitrous (6.9.10-nitrous+)
(3/7) Foreign/AUR package notification
cbonsai 1.3.1-3
imdb-thumbnailer 0.8.9-1
tgpt-bin 2.8.0-1
(4/7) Orphaned package notification...
=> No orphans found.
(5/7) Checking for .pacnew and .pacsave files...
(6/7) Performing snapper post snapshots for the following configurations...
==> root: 184
(7/7) Syncing all file systems...
 ╭─ankur@ankur in ~ as 🧙 took 37s
 ╰─λ garuda-inxi
System:
  Kernel: 6.9.9-nitrous+ arch: x86_64 bits: 64 compiler: clang v: 18.1.8
    clocksource: tsc avail: acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-nitrous
    root=UUID=2e55ecf8-208a-4ff1-b938-fa81f5c29e31 rw rootflags=subvol=@
    quiet loglevel=3 ibt=off
  Desktop: Hyprland v: 0.41.2 with: waybar tools: avail: swayidle,swaylock
    vt: 1 dm: SDDM Distro: Garuda base: Arch Linux
Machine:
  Type: Laptop System: HP product: Victus by HP Gaming Laptop 15-fa0xxx v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 8A4F v: 37.54 serial: <superuser required>
    part-nu: A03H1PA#ACJ uuid: <superuser required> UEFI: AMI v: F.25
    date: 12/28/2023
Battery:
  ID-1: BAT0 charge: 70.1 Wh (100.0%) condition: 70.1/70.1 Wh (100.0%)
    volts: 17.2 min: 15.4 model: HP Primary type: Li-ion serial: <filter>
    status: full cycles: 3
CPU:
  Info: model: 12th Gen Intel Core i5-12450H bits: 64 type: MST AMCP
    arch: Alder Lake gen: core 12 level: v3 note: check built: 2021+
    process: Intel 7 (10nm ESF) family: 6 model-id: 0x9A (154) stepping: 3
    microcode: 0x433
  Topology: cpus: 1x cores: 8 mt: 4 tpc: 2 st: 4 threads: 12 smt: enabled
    cache: L1: 704 KiB desc: d-4x32 KiB, 4x48 KiB; i-4x32 KiB, 4x64 KiB
    L2: 7 MiB desc: 4x1.2 MiB, 1x2 MiB L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 425 high: 571 min/max: 400/4400:3300 scaling:
    driver: intel_pstate governor: powersave cores: 1: 400 2: 400 3: 521 4: 400
    5: 571 6: 400 7: 400 8: 400 9: 400 10: 418 11: 399 12: 401 bogomips: 59916
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel Alder Lake-P GT1 [UHD Graphics] vendor: Hewlett-Packard
    driver: i915 v: kernel alternate: xe arch: Gen-12.2 process: Intel 10nm
    built: 2021-22+ ports: active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4
    bus-ID: 00:02.0 chip-ID: 8086:46a3 class-ID: 0300
  Device-2: NVIDIA GA107M [GeForce RTX 3050 Mobile] vendor: Hewlett-Packard
    driver: nvidia v: 555.58.02 alternate: nouveau,nvidia_drm non-free: 550.xx+
    status: current (as of 2024-06; EOL~2026-12-xx) arch: Ampere code: GAxxx
    process: TSMC n7 (7nm) built: 2020-2023 pcie: gen: 4 speed: 16 GT/s
    lanes: 8 link-max: lanes: 16 ports: active: none empty: HDMI-A-1
    bus-ID: 01:00.0 chip-ID: 10de:25a2 class-ID: 0300
  Device-3: Luxvisions Innotech HP Wide Vision HD Camera driver: uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-6:3
    chip-ID: 30c9:0069 class-ID: fe01 serial: <filter>
  Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.1
    compositor: Hyprland v: 0.41.2 driver: X: loaded: modesetting,nvidia
    unloaded: nouveau alternate: fbdev,intel,nv,vesa dri: iris gpu: i915
    display-ID: 1
  Monitor-1: eDP-1 model: BOE Display 0x094d built: 2020 res: 1920x1080
    hz: 60 dpi: 142 gamma: 1.2 scale: 1 size: 344x194mm (13.54x7.64")
    diag: 395mm (15.5") ratio: 16:9 modes: 1920x1080
  API: Vulkan v: 1.3.285 layers: 9 device: 0 type: integrated-gpu name: Intel
    Graphics (ADL GT2) driver: mesa intel v: 24.1.4-arch1.3
    device-ID: 8086:46a3 surfaces: xcb,xlib,wayland device: 1
    type: discrete-gpu name: NVIDIA GeForce RTX 3050 Laptop GPU driver: nvidia
    v: 555.58.02 device-ID: 10de:25a2 surfaces: xcb,xlib,wayland device: 2
    type: cpu name: llvmpipe (LLVM 18.1.8 256 bits) driver: mesa llvmpipe
    v: 24.1.4-arch1.3 (LLVM 18.1.8) device-ID: 10005:0000
    surfaces: xcb,xlib,wayland
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio
    vendor: Hewlett-Packard driver: sof-audio-pci-intel-tgl
    alternate: snd_hda_intel, snd_soc_avs, snd_sof_pci_intel_tgl
    bus-ID: 00:1f.3 chip-ID: 8086:51c8 class-ID: 0401
  Device-2: NVIDIA vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
    pcie: gen: 4 speed: 16 GT/s lanes: 8 link-max: lanes: 16 bus-ID: 01:00.1
    chip-ID: 10de:2291 class-ID: 0403
  API: ALSA v: k6.9.9-nitrous+ status: kernel-api tools: N/A
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 1.2.1 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:51f0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: 3000 bus-ID: 04:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eno1 state: down mac: <filter>
  Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
Bluetooth:
  Device-1: Intel AX211 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-10:4 chip-ID: 8087:0033
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.3
    lmp-v: 12 status: discoverable: no pairing: no class-ID: 6c010c
Drives:
  Local Storage: total: 476.94 GiB used: 71.35 GiB (15.0%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital model: WD PC
    SN740 SDDPNQD-512G-2006 size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: HPS1 temp: 31.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 400.82 GiB size: 400.82 GiB (100.00%)
    used: 71.29 GiB (17.8%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%)
    used: 60.9 MiB (23.8%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 400.82 GiB size: 400.82 GiB (100.00%)
    used: 71.29 GiB (17.8%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-4: /var/log raw-size: 400.82 GiB size: 400.82 GiB (100.00%)
    used: 71.29 GiB (17.8%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-5: /var/tmp raw-size: 400.82 GiB size: 400.82 GiB (100.00%)
    used: 71.29 GiB (17.8%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 15.29 GiB used: 0 KiB (0.0%) priority: 100
    comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 12 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 34.0 C mobo: N/A
  Fan Speeds (rpm): cpu: 2229 fan-2: 2017
Info:
  Memory: total: 16 GiB note: est. available: 15.29 GiB used: 3.83 GiB (25.1%)
  Processes: 323 Power: uptime: 1h 5m states: freeze,mem,disk
    suspend: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 6.07 GiB Init: systemd v: 256
    default: graphical tool: systemctl
  Packages: pm: pacman pkgs: 1500 libs: 392 tools: pacseek,paru Compilers:
    clang: caa42c9aaae889db97ad75b6bb052a369b391d3a alt: 18 gcc: 14.1.1
    Shell: garuda-inxi default: fish v: 3.7.1 running-in: foot inxi: 3.3.35
Garuda (2.6.26-1):
  System install date:     2024-06-21
  Last full system update: 2024-07-22 ↻
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut nvidia-dkms
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:            

 ╭─ankur@ankur in ~ took 3s
 ╰─λ 

and now about to reboot with fingers crossed :crossed_fingers:
Thanks !!

Found the problem , it was with linux nitrous kernel itself ,

I had to just do a snapshot restore then install zen kernel and throw the nitrous kernel :sweat:

1 Like

Update , it seems like now it is more an dracut bug , now it is happening even in zen , and when I restored through snapshots and after that , I upgraded again with failed initramfs and then doing a rebuild manually ,

now I am seeing the boot option but it is still not working ,

I guess I would dig a little bit more before giving up :thinking:

Okay , nothing is working , but I found there are some binaries missing

[sudo] password for ankur:            
warning: garuda-dracut-support-1.1.0-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (1)                   Old Version  New Version  Net Change

garuda/garuda-dracut-support  1.1.0-1      1.1.0-1        0.00 MiB

Total Installed Size:  0.00 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                                       [-----------------------------------------------------------] 100%
(1/1) checking package integrity                                                                     [-----------------------------------------------------------] 100%
(1/1) loading package files                                                                          [-----------------------------------------------------------] 100%
(1/1) checking for file conflicts                                                                    [-----------------------------------------------------------] 100%
(1/1) checking available disk space                                                                  [-----------------------------------------------------------] 100%
warning: could not get file information for usr/bin/dracut-rebuild
warning: could not get file information for usr/lib/dracut/modules.d/91btrfs-snapshot-overlay/module-setup.sh
warning: could not get file information for usr/lib/dracut/modules.d/91btrfs-snapshot-overlay/snapshot-overlay.sh
warning: could not get file information for usr/share/libalpm/hooks/60-dracut-remove.hook
warning: could not get file information for usr/share/libalpm/hooks/90-dracut-install.hook
warning: could not get file information for usr/share/libalpm/scripts/dracut-install
warning: could not get file information for usr/share/libalpm/scripts/dracut-remove
:: Running pre-transaction hooks...
(1/2) Rejecting pacman transaction if running in snapshot...
(2/2) Performing snapper pre snapshots for the following configurations...
==> root: 217
:: Processing package changes...
(1/1) reinstalling garuda-dracut-support                                                             [-----------------------------------------------------------] 100%
:: Running post-transaction hooks...
(1/7) Arming ConditionNeedsUpdate...
(2/7) Updating initramfs...
:: Building initramfs for linux-zen (6.9.10-zen1-1-zen)
:: Building fallback initramfs for linux-zen (6.9.10-zen1-1-zen)
(3/7) Foreign/AUR package notification
cbonsai 1.3.1-3
imdb-thumbnailer 0.8.9-1
tgpt-bin 2.8.0-1
(4/7) Orphaned package notification...
=> No orphans found.
(5/7) Checking for .pacnew and .pacsave files...
(6/7) Performing snapper post snapshots for the following configurations...
==> root: 218
(7/7) Syncing all file systems...

 ╭─ankur@ankur in ~ as 🧙 took 54s
 ╰─λ 
warning: could not get file information for usr/bin/dracut-rebuild
warning: could not get file information for usr/lib/dracut/modules.d/91btrfs-snapshot-overlay/module-setup.sh
warning: could not get file information for usr/lib/dracut/modules.d/91btrfs-snapshot-overlay/snapshot-overlay.sh
warning: could not get file information for usr/share/libalpm/hooks/60-dracut-remove.hook
warning: could not get file information for usr/share/libalpm/hooks/90-dracut-install.hook
warning: could not get file information for usr/share/libalpm/scripts/dracut-install
warning: could not get file information for usr/share/libalpm/scripts/dracut-remove

Need help , am not able to update , because initramfs is not getting build while updating :sweat:

Hello, I registered on the forum to assist you with this because I had the exact same issue and I see that you have the exact same repos, too. I found the issue was the CachyOS repos. Removing them and reinstalling all packages solved it for me.

To do that, please try the following steps:

  1. Restore a previous, working snapshot.
  2. Edit /etc/pacman.conf and remove the CachyOS repos.
  3. Run Garuda Assistant.
  4. In Garuda Assistant, press “Clear package cache” and let it finish.
  5. In Garuda Assistant, press “Reinstall all packages” and let it finish. In my case I think I needed to run this two times because of some error in the first run.

Hopefully this works for you.

4 Likes

A long time ago I also had to realize that my PC doesn’t get along with cachy.

As one of the Dalton brothers :wink: once explained here, the speed advantages etc. are only marginal anyway.
Oh, sorry, I meant @dalto of course :slight_smile:

3 Likes

Thanks a lot :smiley: ,
Hmm… maybe GarudaChy is not going to happen that easily :thinking:

PS : but still I need to run this command :

sudo -E dracut-rebuild 

as it fails with upd -a :slightly_frowning_face:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.