Cannot boot into snapshots after the update

Those might be from old restorations. Sometimes they fall off Snapper’s radar, I’m not sure why (see here for example: Old snapshots/backups found on every boot).

See if you can find them with:

sudo snapper-tools find-old

To delete them:

sudo snapper-tools delete-old

doesn’t find / delete anything…those two commands just execute without any feedback

try btrfs-assistant. You can delete snapshots there, maybe this works.

Thats where i went at first, neither that nor snapper itself shows these...

Ah found them under "Subvolumes" in btrfs-assistant. Not under snapshots.

So they are gone, now - let's see if it works now

EDIT: Nope...still no luck. Atleast those old ones are gone for good now.

I finally found the cause of this, at least in my case. I previously used Garuda Boot Options to set "Regular grub (no silent)", no issues so I think this may be fine. So my image (see below) only had that change done to it (and a kernel parameter) via Garuda Boot Options. However, as soon as I set it to boot to the LTS kernel by default, which is in that submenu, then it breaks the bootability of all working snapshots and future snapshhots (/sbin/init does not exist). Reverting the option back to the default doesn't fix the issue. The issue happens with my 2 month old image and the non-git version of Garuda Boot Options and also with a fully up to date system and the -git version of Garuda Boot Options installed.

I have an almost two month old image for these old laptops I've been trying to finalize the project on and the snapshots are still bootable on it so I have something I can reproduce this on and then erase back to a working state easy for testing purposes and am happy to provide any info or do any test.

System:
  Kernel: 6.2.1-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=e0430201-0931-4d49-a5a8-f8a1445e4ab0 rw rootflags=subvol=@
    rd.udev.log_priority=3 vt.global_cursor_default=0
    resume=UUID=ae0cdb3c-2994-4db6-8822-7960e6e25fe8 loglevel=3
    mem_sleep_default=s2idle ibt=off
  Desktop: KDE Plasma v: 5.27.2 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: Apple product: MacBookAir7,2 v: 1.0
    serial: <superuser required> Chassis: type: 9 v: Mac-937CB26E2E02BB01
    serial: <superuser required>
  Mobo: Apple model: Mac-937CB26E2E02BB01 v: MacBookAir7,2
    serial: <superuser required> UEFI: Apple v: 430.120.6.0.0 date: 03/16/2022
Battery:
  ID-1: BAT0 charge: 46.5 Wh (97.9%) condition: 47.5/54.3 Wh (87.4%)
    volts: 8.5 min: 7.6 model: SMP bq20z451 type: Li-ion serial: N/A
    status: full cycles: 239
CPU:
  Info: model: Intel Core i5-5350U bits: 64 type: MT MCP arch: Broadwell
    gen: core 5 level: v3 note: check built: 2015-18 process: Intel 14nm
    family: 6 model-id: 0x3D (61) stepping: 4 microcode: 0x2F
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 2900 min/max: 500/2900 scaling: driver: intel_cpufreq
    governor: performance cores: 1: 2900 2: 2900 3: 2900 4: 2900 bogomips: 14400
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel HD Graphics 6000 vendor: Apple driver: i915 v: kernel
    arch: Gen-8 process: Intel 14nm built: 2014-15 ports: active: eDP-1
    empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:1626
    class-ID: 0300
  Display: x11 server: X.Org v: 21.1.7 with: Xwayland v: 22.1.8
    compositor: kwin_x11 driver: X: loaded: modesetting
    alternate: fbdev,intel,vesa dri: iris gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1440x900 s-dpi: 96 s-size: 381x238mm (15.00x9.37")
    s-diag: 449mm (17.69")
  Monitor-1: eDP-1 model: Apple Color LCD built: 2015 res: 1440x900 hz: 60
    dpi: 128 gamma: 1.2 size: 286x179mm (11.26x7.05") diag: 337mm (13.3")
    ratio: 16:10 modes: 1440x900
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel HD Graphics 6000 (BDW
    GT3) direct-render: Yes
Audio:
  Device-1: Intel Broadwell-U Audio vendor: Apple driver: snd_hda_intel
    v: kernel bus-ID: 00:03.0 chip-ID: 8086:160c class-ID: 0403
  Device-2: Intel Wildcat Point-LP High Definition Audio
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:9ca0
    class-ID: 0403
  Device-3: Broadcom 720p FaceTime HD Camera driver: facetimehd v: kernel
    pcie: gen: 2 speed: 5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 14e4:1570
    class-ID: 0480
  Sound API: ALSA v: k6.2.1-zen1-1-zen running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.66 running: yes
Network:
  Device-1: Broadcom BCM4360 802.11ac Wireless Network Adapter vendor: Apple
    driver: wl v: kernel modules: bcma pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    bus-ID: 03:00.0 chip-ID: 14e4:43a0 class-ID: 0280
  IF: wlp3s0 state: up mac: <filter>
Bluetooth:
  Device-1: Apple Bluetooth USB Host Controller type: USB driver: btusb v: 0.8
    bus-ID: 1-3.3:6 chip-ID: 05ac:828f class-ID: fe01
  Report: bt-adapter ID: hci0 rfk-id: 0 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
Drives:
  Local Storage: total: 233.76 GiB used: 32.49 GiB (13.9%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Apple model: SSD SM0256G
    size: 233.76 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 3A0Q scheme: GPT
Partition:
  ID-1: / raw-size: 224.66 GiB size: 224.66 GiB (100.00%)
    used: 32.49 GiB (14.5%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 608 KiB (0.2%) fs: vfat dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 224.66 GiB size: 224.66 GiB (100.00%)
    used: 32.49 GiB (14.5%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-4: /var/log raw-size: 224.66 GiB size: 224.66 GiB (100.00%)
    used: 32.49 GiB (14.5%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-5: /var/tmp raw-size: 224.66 GiB size: 224.66 GiB (100.00%)
    used: 32.49 GiB (14.5%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 7.66 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/sda3 maj-min: 8:3
Sensors:
  System Temperatures: cpu: 60.0 C pch: 66.5 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 223 Uptime: 2m wakeups: 2 Memory: 7.66 GiB used: 1.49 GiB (19.4%)
  Init: systemd v: 253 default: graphical tool: systemctl Compilers:
  gcc: 12.2.1 clang: 15.0.7 Packages: pm: pacman pkgs: 2136 libs: 588
  tools: octopi,pamac,paru Shell: fish v: 3.6.0 running-in: konsole
  inxi: 3.3.25
Garuda (2.6.15-1):
  System install date:     2022-12-02
  Last full system update: 2023-03-03
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager mkinitcpio
  Windows dual boot:       No/Undetected
  Failed units:            

1 Like

Hmm, I can’t reproduce this with only these noted steps–there must be something more to it. :thinking:

Here’s what I just tried:

  • Updated
  • Installed LTS kernel and headers
  • Changed default boot option to LTS in Garuda Boot Options GUI app
  • Reboot to Grub → restore snapshots

I picked a snapshot that’s a few weeks old and it booted fine.

Kernel: 6.1.11-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/gnome/.snapshots/49/snapshot/boot/vmlinuz-linux-zen
    root=UUID=bd2985af-4620-4a5c-9309-c1c6c7a268d5 mem_sleep_default=s2idle
    nowatchdog
    rootflags=noatime,compress=zstd,discard=async,ssd,subvol=gnome/.snapshots/49/snapshot

I have the same kernel parameter added (mem_sleep_default=s2idle), which is actually just a coincidence.

Were you able to reproduce the issue? Try to document the steps between the snapshots working and not working if you can, it might help reveal a clue.

4 Likes

I just tried it again to be sure and yes I can reproduce it every time. I agree, it's probably some "combination" issue with the previously mention config and something I did when configuring the image originally. Here is what I currently do:

  1. Load my image with clonezilla.
  2. Take a "test" 'snapshot with BTRFS Assistant.
  3. sudo update-grub.
  4. Boot from snapshhot and verify it works.
  5. Reboot back to / and open Garuda Boot Options, change it to boot to LTS kernel, hit apply.
  6. Reboot and try "test" snapshhot which previously worked, now it fails.

The first thing I suspected was the fact that I removed the 'fallback' option from all files in /etc/mkinitcpio.d/

PRESETS=('default' 'fallback')
to
PRESETS=('default')

But I reverted that change, then "sudo mkinitcpio -P", rebooted and retested and still the same issue. This also happens on 2 other machines of mine that I have NOT used this image on and the only thing I can correlate is setting a specific kernel via Garuda Boot Options.

If anyone knows which config file(s) should be compared from a working state and a broken state I think that's a good place to start but I don't know which file(s). I guess I'll go ahead and compare the grub config files that I know of for now and see if I can find anything.

/sbin/init exists on the snapshots, both symlinks it resolves work and I even tried setting the exact path to systemd via "init=" kernel parameter to no avail.

I've identified the cause of the issue, the bad config and have an easy solution.

  1. The cause: garuda-migrations has added the following comment in the kernel parameters:
# Modified by garuda-migrations: ibt=off
  1. Which caused Garuda Boot Options to mis-configure "/boot/grub/grub-btrfs.cfg" to have many of the kernel parameters commented out:
linux "/@/.snapshots/1/snapshot/boot/vmlinuz-linux-lts" root=UUID=e0430201-0931-4d49-a5a8-f8a1445e4ab0  rd.udev.log_priority=3 vt.global_cursor_default=0 resume=UUID=ae0cdb3c-2994-4db6-8822-7960e6e25fe8 loglevel=3 mem_sleep_default=s2idle ibt=off # Modified by garuda-migrations: ibt=off rootflags=defaults,noatime,compress=zstd,discard=async,ssd,subvol="@/.snapshots/1/snapshot"

It should look like:

linux "/@/.snapshots/1/snapshot/boot/vmlinuz-linux-lts" root=UUID=e0430201-0931-4d49-a5a8-f8a1445e4ab0  rd.udev.log_priority=3 vt.global_cursor_default=0 resume=UUID=ae0cdb3c-2994-4db6-8822-7960e6e25fe8 loglevel=3 mem_sleep_default=s2idle ibt=off rootflags=defaults,noatime,compress=zstd,discard=async,ssd,subvol="@/.snapshots/1/snapshot"

but the following was disabled:

rootflags=defaults,noatime,compress=zstd,discard=async,ssd,subvol="@/.snapshots/1/snapshot"
  1. Solution: Open Garuda Boot Options and remove the comment from the kernel parameters
# Modified by garuda-migrations: ibt=off

then apply.
I did see it there again once when re-opening GBO so always delete if it's there.

@RandomLegend Does this apply to and help with your issue as well?

2 Likes

Nice one!

That explains why I was not able to reproduce the issue: I have been removing both the ibt=off kernel parameter and the comment from my setups (I don’t have Nvidia hardware).

1 Like

Can you show the exact grub config line where this happened? I'll look into fixing this later today and retroactively applying that fix too.

1 Like

Line 72

menuentry '|         Date        |         Snapshot        |  Type  |Description|' { echo }
submenu '| 2023-03-05 10:29:04 | @/.snapshots/1/snapshot | single | test      |' {
    submenu '| 2023-03-05 10:29:04 | @/.snapshots/1/snapshot | single | test |' { echo }

    menuentry '  vmlinuz-linux-bore & initramfs-linux-bore-fallback.img & intel-ucode.img' --class snapshots --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-snapshots-e0430201-0931-4d49-a5a8-f8a1445e4ab0' {
        if [ x$feature_all_video_module = xy ]; then
        insmod all_video
        fi
        set gfxpayload=keep
        insmod btrfs
        if [ x$feature_platform_search_hint = xy ]; then
            search --no-floppy --fs-uuid  --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  e0430201-0931-4d49-a5a8-f8a1445e4ab0
        else
            search --no-floppy --fs-uuid  --set=root e0430201-0931-4d49-a5a8-f8a1445e4ab0
        fi
        echo 'Loading Snapshot: 2023-03-05 10:29:04 @/.snapshots/1/snapshot'
        echo 'Loading Kernel: vmlinuz-linux-bore ...'
        linux "/@/.snapshots/1/snapshot/boot/vmlinuz-linux-bore" root=UUID=e0430201-0931-4d49-a5a8-f8a1445e4ab0  rd.udev.log_priority=3 vt.global_cursor_default=0 resume=UUID=ae0cdb3c-2994-4db6-8822-7960e6e25fe8 loglevel=3 mem_sleep_default=s2idle ibt=off # Modified by garuda-migrations: ibt=off rootflags=defaults,noatime,compress=zstd,discard=async,ssd,subvol="@/.snapshots/1/snapshot"
        echo 'Loading Microcode & Initramfs: intel-ucode.img initramfs-linux-bore-fallback.img ...'
        initrd "/@/.snapshots/1/snapshot/boot/intel-ucode.img" "/@/.snapshots/1/snapshot/boot/initramfs-linux-bore-fallback.img"
    }

    menuentry '  vmlinuz-linux-bore & initramfs-linux-bore.img & intel-ucode.img' --class snapshots --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-snapshots-e0430201-0931-4d49-a5a8-f8a1445e4ab0' {
        if [ x$feature_all_video_module = xy ]; then
        insmod all_video
        fi
        set gfxpayload=keep
        insmod btrfs
        if [ x$feature_platform_search_hint = xy ]; then
            search --no-floppy --fs-uuid  --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  e0430201-0931-4d49-a5a8-f8a1445e4ab0
        else
            search --no-floppy --fs-uuid  --set=root e0430201-0931-4d49-a5a8-f8a1445e4ab0
        fi
        echo 'Loading Snapshot: 2023-03-05 10:29:04 @/.snapshots/1/snapshot'
        echo 'Loading Kernel: vmlinuz-linux-bore ...'
        linux "/@/.snapshots/1/snapshot/boot/vmlinuz-linux-bore" root=UUID=e0430201-0931-4d49-a5a8-f8a1445e4ab0  rd.udev.log_priority=3 vt.global_cursor_default=0 resume=UUID=ae0cdb3c-2994-4db6-8822-7960e6e25fe8 loglevel=3 mem_sleep_default=s2idle ibt=off # Modified by garuda-migrations: ibt=off rootflags=defaults,noatime,compress=zstd,discard=async,ssd,subvol="@/.snapshots/1/snapshot"
        echo 'Loading Microcode & Initramfs: intel-ucode.img initramfs-linux-bore.img ...'
        initrd "/@/.snapshots/1/snapshot/boot/intel-ucode.img" "/@/.snapshots/1/snapshot/boot/initramfs-linux-bore.img"
    }

    menuentry '  vmlinuz-linux-hardened & initramfs-linux-hardened.img & intel-ucode.img' --class snapshots --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-snapshots-e0430201-0931-4d49-a5a8-f8a1445e4ab0' {
        if [ x$feature_all_video_module = xy ]; then
        insmod all_video
        fi
        set gfxpayload=keep
        insmod btrfs
        if [ x$feature_platform_search_hint = xy ]; then
            search --no-floppy --fs-uuid  --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  e0430201-0931-4d49-a5a8-f8a1445e4ab0
        else
            search --no-floppy --fs-uuid  --set=root e0430201-0931-4d49-a5a8-f8a1445e4ab0
        fi
        echo 'Loading Snapshot: 2023-03-05 10:29:04 @/.snapshots/1/snapshot'
        echo 'Loading Kernel: vmlinuz-linux-hardened ...'
        linux "/@/.snapshots/1/snapshot/boot/vmlinuz-linux-hardened" root=UUID=e0430201-0931-4d49-a5a8-f8a1445e4ab0  rd.udev.log_priority=3 vt.global_cursor_default=0 resume=UUID=ae0cdb3c-2994-4db6-8822-7960e6e25fe8 loglevel=3 mem_sleep_default=s2idle ibt=off # Modified by garuda-migrations: ibt=off rootflags=defaults,noatime,compress=zstd,discard=async,ssd,subvol="@/.snapshots/1/snapshot"
        echo 'Loading Microcode & Initramfs: intel-ucode.img initramfs-linux-hardened.img ...'
        initrd "/@/.snapshots/1/snapshot/boot/intel-ucode.img" "/@/.snapshots/1/snapshot/boot/initramfs-linux-hardened.img"
    }

    menuentry '  vmlinuz-linux-lts & initramfs-linux-lts.img & intel-ucode.img' --class snapshots --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-snapshots-e0430201-0931-4d49-a5a8-f8a1445e4ab0' {
        if [ x$feature_all_video_module = xy ]; then
        insmod all_video
        fi
        set gfxpayload=keep
        insmod btrfs
        if [ x$feature_platform_search_hint = xy ]; then
            search --no-floppy --fs-uuid  --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  e0430201-0931-4d49-a5a8-f8a1445e4ab0
        else
            search --no-floppy --fs-uuid  --set=root e0430201-0931-4d49-a5a8-f8a1445e4ab0
        fi
        echo 'Loading Snapshot: 2023-03-05 10:29:04 @/.snapshots/1/snapshot'
        echo 'Loading Kernel: vmlinuz-linux-lts ...'
        linux "/@/.snapshots/1/snapshot/boot/vmlinuz-linux-lts" root=UUID=e0430201-0931-4d49-a5a8-f8a1445e4ab0  rd.udev.log_priority=3 vt.global_cursor_default=0 resume=UUID=ae0cdb3c-2994-4db6-8822-7960e6e25fe8 loglevel=3 mem_sleep_default=s2idle ibt=off # Modified by garuda-migrations: ibt=off rootflags=defaults,noatime,compress=zstd,discard=async,ssd,subvol="@/.snapshots/1/snapshot"
        echo 'Loading Microcode & Initramfs: intel-ucode.img initramfs-linux-lts.img ...'
        initrd "/@/.snapshots/1/snapshot/boot/intel-ucode.img" "/@/.snapshots/1/snapshot/boot/initramfs-linux-lts.img"
    }

    menuentry '  vmlinuz-linux-mainline & initramfs-linux-mainline.img & intel-ucode.img' --class snapshots --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-snapshots-e0430201-0931-4d49-a5a8-f8a1445e4ab0' {
        if [ x$feature_all_video_module = xy ]; then
        insmod all_video
        fi
        set gfxpayload=keep
        insmod btrfs
        if [ x$feature_platform_search_hint = xy ]; then
            search --no-floppy --fs-uuid  --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  e0430201-0931-4d49-a5a8-f8a1445e4ab0
        else
            search --no-floppy --fs-uuid  --set=root e0430201-0931-4d49-a5a8-f8a1445e4ab0
        fi
        echo 'Loading Snapshot: 2023-03-05 10:29:04 @/.snapshots/1/snapshot'
        echo 'Loading Kernel: vmlinuz-linux-mainline ...'
        linux "/@/.snapshots/1/snapshot/boot/vmlinuz-linux-mainline" root=UUID=e0430201-0931-4d49-a5a8-f8a1445e4ab0  rd.udev.log_priority=3 vt.global_cursor_default=0 resume=UUID=ae0cdb3c-2994-4db6-8822-7960e6e25fe8 loglevel=3 mem_sleep_default=s2idle ibt=off # Modified by garuda-migrations: ibt=off rootflags=defaults,noatime,compress=zstd,discard=async,ssd,subvol="@/.snapshots/1/snapshot"
        echo 'Loading Microcode & Initramfs: intel-ucode.img initramfs-linux-mainline.img ...'
        initrd "/@/.snapshots/1/snapshot/boot/intel-ucode.img" "/@/.snapshots/1/snapshot/boot/initramfs-linux-mainline.img"
    }

    menuentry '  vmlinuz-linux-tt & initramfs-linux-tt.img & intel-ucode.img' --class snapshots --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-snapshots-e0430201-0931-4d49-a5a8-f8a1445e4ab0' {
        if [ x$feature_all_video_module = xy ]; then
        insmod all_video
        fi
        set gfxpayload=keep
        insmod btrfs
        if [ x$feature_platform_search_hint = xy ]; then
            search --no-floppy --fs-uuid  --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  e0430201-0931-4d49-a5a8-f8a1445e4ab0
        else
            search --no-floppy --fs-uuid  --set=root e0430201-0931-4d49-a5a8-f8a1445e4ab0
        fi
        echo 'Loading Snapshot: 2023-03-05 10:29:04 @/.snapshots/1/snapshot'
        echo 'Loading Kernel: vmlinuz-linux-tt ...'
        linux "/@/.snapshots/1/snapshot/boot/vmlinuz-linux-tt" root=UUID=e0430201-0931-4d49-a5a8-f8a1445e4ab0  rd.udev.log_priority=3 vt.global_cursor_default=0 resume=UUID=ae0cdb3c-2994-4db6-8822-7960e6e25fe8 loglevel=3 mem_sleep_default=s2idle ibt=off # Modified by garuda-migrations: ibt=off rootflags=defaults,noatime,compress=zstd,discard=async,ssd,subvol="@/.snapshots/1/snapshot"
        echo 'Loading Microcode & Initramfs: intel-ucode.img initramfs-linux-tt.img ...'
        initrd "/@/.snapshots/1/snapshot/boot/intel-ucode.img" "/@/.snapshots/1/snapshot/boot/initramfs-linux-tt.img"
    }

    menuentry '  vmlinuz-linux-xanmod & initramfs-linux-xanmod.img & intel-ucode.img' --class snapshots --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-snapshots-e0430201-0931-4d49-a5a8-f8a1445e4ab0' {
        if [ x$feature_all_video_module = xy ]; then
        insmod all_video
        fi
        set gfxpayload=keep
        insmod btrfs
        if [ x$feature_platform_search_hint = xy ]; then
            search --no-floppy --fs-uuid  --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  e0430201-0931-4d49-a5a8-f8a1445e4ab0
        else
            search --no-floppy --fs-uuid  --set=root e0430201-0931-4d49-a5a8-f8a1445e4ab0
        fi
        echo 'Loading Snapshot: 2023-03-05 10:29:04 @/.snapshots/1/snapshot'
        echo 'Loading Kernel: vmlinuz-linux-xanmod ...'
        linux "/@/.snapshots/1/snapshot/boot/vmlinuz-linux-xanmod" root=UUID=e0430201-0931-4d49-a5a8-f8a1445e4ab0  rd.udev.log_priority=3 vt.global_cursor_default=0 resume=UUID=ae0cdb3c-2994-4db6-8822-7960e6e25fe8 loglevel=3 mem_sleep_default=s2idle ibt=off # Modified by garuda-migrations: ibt=off rootflags=defaults,noatime,compress=zstd,discard=async,ssd,subvol="@/.snapshots/1/snapshot"
        echo 'Loading Microcode & Initramfs: intel-ucode.img initramfs-linux-xanmod.img ...'
        initrd "/@/.snapshots/1/snapshot/boot/intel-ucode.img" "/@/.snapshots/1/snapshot/boot/initramfs-linux-xanmod.img"
    }

    menuentry '  vmlinuz-linux-zen & initramfs-linux-zen.img & intel-ucode.img' --class snapshots --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-snapshots-e0430201-0931-4d49-a5a8-f8a1445e4ab0' {
        if [ x$feature_all_video_module = xy ]; then
        insmod all_video
        fi
        set gfxpayload=keep
        insmod btrfs
        if [ x$feature_platform_search_hint = xy ]; then
            search --no-floppy --fs-uuid  --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  e0430201-0931-4d49-a5a8-f8a1445e4ab0
        else
            search --no-floppy --fs-uuid  --set=root e0430201-0931-4d49-a5a8-f8a1445e4ab0
        fi
        echo 'Loading Snapshot: 2023-03-05 10:29:04 @/.snapshots/1/snapshot'
        echo 'Loading Kernel: vmlinuz-linux-zen ...'
        linux "/@/.snapshots/1/snapshot/boot/vmlinuz-linux-zen" root=UUID=e0430201-0931-4d49-a5a8-f8a1445e4ab0  rd.udev.log_priority=3 vt.global_cursor_default=0 resume=UUID=ae0cdb3c-2994-4db6-8822-7960e6e25fe8 loglevel=3 mem_sleep_default=s2idle ibt=off # Modified by garuda-migrations: ibt=off rootflags=defaults,noatime,compress=zstd,discard=async,ssd,subvol="@/.snapshots/1/snapshot"
        echo 'Loading Microcode & Initramfs: intel-ucode.img initramfs-linux-zen.img ...'
        initrd "/@/.snapshots/1/snapshot/boot/intel-ucode.img" "/@/.snapshots/1/snapshot/boot/initramfs-linux-zen.img"
    }
}

Thanks!

I meant /etc/default(s?)/grub

The ISOs have installed with this line by default for a while now, I think from this commit: https://gitlab.com/garuda-linux/packages/stable-pkgbuilds/garuda-migrations/-/commit/901db0d484b2f6e412f690edd5a3328149fb6cf0

The line in /etc/default/grub with the comment at the end is the GRUB_CMDLINE_LINUX_DEFAULT (for example, like this):

GRUB_CMDLINE_LINUX_DEFAULT='rd.udev.log_priority=3 vt.global_cursor_default=0 resume=UUID=ae0cdb3c-2994-4db6-8822-7960e6e25fe8 loglevel=3 mem_sleep_default=s2idle ibt=off' # Modified by garuda-migrations: ibt=off 

Line 6

# GRUB boot loader configuration

GRUB_DEFAULT="1>4"
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Garuda"
GRUB_CMDLINE_LINUX_DEFAULT="rd.udev.log_priority=3 vt.global_cursor_default=0 resume=UUID=ae0cdb3c-2994-4db6-8822-7960e6e25fe8 loglevel=3 mem_sleep_default=s2idle ibt=off # Modified by garuda-migrations: ibt=off"
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT=5

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
GRUB_THEME="/usr/share/grub/themes/garuda-dr460nized/theme.txt"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT=true

# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y

# Probing for other operating systems is disabled for security reasons. Read
# documentation on GRUB_DISABLE_OS_PROBER, if still want to enable this
# functionality install os-prober and uncomment to detect and include other
# operating systems.
GRUB_DISABLE_OS_PROBER=true

@BluishHumility
I see that the comment in mine is within the quotes and they are double quotes at that, hmmmm.

As you can see, the comment is outside the variable there, which is how it's supposed to work.
I'll figure out what went wrong in the regex later, thanks @anon30283766!

2 Likes

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