Grub Hook to grub-install and grub-mkconfig?

No, the are installed by some packages you have in your system.

Check with pacman -Qo FILE, to see where FILE comes from.

Example:

pacman -Qo eos-grub-fix-initrd-generation.hook

I do not know really. This Grub issue and how to handle it appers very complicated for me.

The only thing I think I know is that sometimes/maybe/should/must/not necessary/recommended/required… to run those two commands after a Grub update and that running them won’t hurt anyway.

Sorry I am not techie in anyway.

[limo@asus ~]$ pacman -Qo eos-grub-fix-initrd-generation.hook
error: No package owns eos-grub-fix-initrd-generation.hook
[limo@asus ~]$ 

:thinking:

This looks also to come from the package grub-tools from EnOS.

Perhaps you have un-installed the package?

From Artemis Nova announcement:

We recommend that you remove grub-tools but ultimately the decision is left to the individual.

From my understanding, new ISOs no longer include grub-tools, but those with older installations may still have the package if they didn’t explicitly remove it.

Edit: I’m trying to understand what eos-grub-fix-initrd-generation does before I remove it tho. Just in case anything in there is needed.

2 Likes

Though I do not remember but for sure -as a matter of principle for me- I would never play with something serious related to booting or to the kerenel.

So, definitely I did not do it intentionally unless it was done somehow as a byproduct of another operation.

What I am sure of is that I recently had a fresh online install, followed defaults, made the script I mentioned (and the desktop button to update the system through the script not through yay -Syu from prompt)

Anyway it is OK with me… I have got more than enough from Grub :angry:

1 Like

I see. Good explanation. :+1:

Accordingly I did perhaps!
Sorry, I can’t remember everything I do on my system. You know I am naughty and play a lot!

Experimentation is fine and can be a great learning experience. As long as you have backups, it’s all good.

1 Like

Sure. I have been “experimenting” like crazy for almost a year - distrohopping.
After I settled on this wonderful EndeavourOS and its community I made like 6 or 7 fresh installs of EndeavourOS.

Backup for sure the most important thing.
I am using some cloud storage and backing up to an external USB drive.

I am naughty I know. I have to admit it.

1 Like

If you are using EOS, this should already be done.

You may want to consider removing the package grub-tools but it is up to you.

@limotux, what does you hook look like now?

1 Like
[Trigger]
Operation = Install
Operation = Upgrade

Type = Package
Target = grub

[Action]
Description = Re-generate Grub if Updated
When = PostTransaction
Depends = grub
Exec = /bin/sh -c "/usr/bin/grub-install && /usr/bin/grub-mkconfig -o /boot/grub/grub.cfg"


I would again recommend that you add --no-nvram

Also, have you tested it?

I could only reboot, yay -Syu but I cannot say “tested” as there were no Grub updates since I did the hook couple hours ago.

I believe it should work. Right?

I honestly do not understand this --no-nvram
I just did the “standard” recommendation for the 2 commands as they were recommended.
Should I add it? to which command exactly.

What “standard recommendation”? If you mean the message from the package, it is telling you to run the command grub-install. It isn’t recommend you run it without options.

That option stops it from updating the nvram of your BIOS/Firmware every time. It makes the operation safer as it lowers the risk that occurs when you mess with nvram.

You can test it by reinstalling grub:

sudo pacman -S grub
1 Like

So, first I should change the line above in the .hook file to be

Exec = /bin/sh -c "/usr/bin/grub-install --no-nvram && /usr/bin/grub-mkconfig -o /boot/grub/grub.cfg"

Then I test it by running just

No problems could happen to Grub?

Yes.

Something could go wrong but wouldn’t you want it to go wrong now while you are watching and testing then later when you do an update and happen to get a grub update?

Keep an eye on the output from pacman, you should see the hook running.

Done.
The file now reads

[Trigger]
Operation = Install
Operation = Upgrade

Type = Package
Target = grub

[Action]
Description = Re-generate Grub if Updated
When = PostTransaction
Depends = grub
Exec = /bin/sh -c "/usr/bin/grub-install --no-nvram && /usr/bin/grub-mkconfig -o /boot/grub/grub.cfg"

Will run

sudo pacman -S grub

now.

UPDATE:
Here is what happened (sorry it is a lot):

[limo@asus ~]$ sudo pacman -S grub
[sudo] password for limo: 
warning: grub-2:2.06.r334.g340377470-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (1)  Old Version               New Version               Net Change

core/grub    2:2.06.r334.g340377470-1  2:2.06.r334.g340377470-1    0.00 MiB

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

:: Proceed with installation? [Y/n] 
(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%
:: Running pre-transaction hooks...
(1/1) Performing snapper pre snapshots for the following configurations...
==> root: 227
:: Processing package changes...
(1/1) reinstalling grub                                            [------------------------------------] 100%
:: To use the new features provided in this GRUB update, it is recommended
   to install it to the MBR or UEFI. Due to potential configuration
   incompatibilities, it is advised to run both, installation and generation
   of configuration:
     $ grub-install ...
     $ grub-mkconfig -o /boot/grub/grub.cfg
:: Running post-transaction hooks...
(1/7) Arming ConditionNeedsUpdate...
(2/7) Fix 'grub' and 'os-prober' after upgrading either of them.
===> INFO: grub-tools / grub-fix-initrd-generation:
===> INFO: /etc/grub.d/30_os-prober changed. See file /var/log/grub-fix-initrd-generation.log.
===> INFO: /etc/grub.d/10_linux changed. See file /var/log/grub-fix-initrd-generation.log.
Generating grub configuration file ...
Found theme: /boot/grub/themes/EndeavourOS/theme.txt
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-lts.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-lts-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
Detecting snapshots ...
Found snapshot: 2022-10-08 15:37:13 | @/.snapshots/227/snapshot | pre    | pacman -S grub                                                           |
Found snapshot: 2022-10-08 15:00:37 | @/.snapshots/226/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 14:00:30 | @/.snapshots/225/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 13:12:37 | @/.snapshots/224/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-08 12:00:01 | @/.snapshots/223/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 11:47:57 | @/.snapshots/222/snapshot | post   | qt6-declarative                                                          |
Found snapshot: 2022-10-08 11:47:53 | @/.snapshots/221/snapshot | pre    | pacman -S -y -u --config /etc/pacman.conf --                             |
Found snapshot: 2022-10-08 11:46:58 | @/.snapshots/220/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-08 11:00:00 | @/.snapshots/219/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 10:22:17 | @/.snapshots/218/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-08 10:00:20 | @/.snapshots/217/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 09:00:20 | @/.snapshots/216/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 08:00:20 | @/.snapshots/215/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 07:57:51 | @/.snapshots/214/snapshot | post   | alsa-card-profiles firefox glibc gst-plugin-pipewire librsvg pipewire pi |
Found snapshot: 2022-10-08 07:57:42 | @/.snapshots/213/snapshot | pre    | pacman -S -y -u --config /etc/pacman.conf --                             |
Found snapshot: 2022-10-08 07:56:18 | @/.snapshots/212/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-07 19:56:59 | @/.snapshots/211/snapshot | post   | fwupd                                                                    |
Found snapshot: 2022-10-07 19:56:54 | @/.snapshots/210/snapshot | pre    | pacman -S -u -y --config /etc/pacman.conf --                             |
Found snapshot: 2022-10-07 19:00:12 | @/.snapshots/209/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 18:00:12 | @/.snapshots/208/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 17:00:12 | @/.snapshots/207/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 16:00:12 | @/.snapshots/206/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 15:00:12 | @/.snapshots/205/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 14:39:58 | @/.snapshots/204/snapshot | post   | libcdio                                                                  |
Found snapshot: 2022-10-07 14:39:54 | @/.snapshots/203/snapshot | pre    | pacman -S -y -u --config /etc/pacman.conf --                             |
Found snapshot: 2022-10-07 14:38:47 | @/.snapshots/202/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-07 13:02:53 | @/.snapshots/201/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-07 13:01:48 | @/.snapshots/200/snapshot | post   | libimagequant                                                            |
Found snapshot: 2022-10-07 13:00:13 | @/.snapshots/199/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 12:58:44 | @/.snapshots/198/snapshot | pre    | pacman -S -y -u --config /etc/pacman.conf --                             |
Found snapshot: 2022-10-07 12:00:00 | @/.snapshots/197/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 11:16:17 | @/.snapshots/196/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-07 09:00:00 | @/.snapshots/195/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 08:34:30 | @/.snapshots/194/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-07 07:38:03 | @/.snapshots/193/snapshot | post   | dhclient                                                                 |
Found snapshot: 2022-10-07 07:37:57 | @/.snapshots/192/snapshot | pre    | pacman -S -y -u --config /etc/pacman.conf --                             |
Found snapshot: 2022-10-07 07:00:10 | @/.snapshots/191/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 06:00:09 | @/.snapshots/190/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 05:00:11 | @/.snapshots/189/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 04:00:11 | @/.snapshots/188/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 03:00:11 | @/.snapshots/187/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 02:00:11 | @/.snapshots/186/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 01:00:11 | @/.snapshots/185/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 00:00:11 | @/.snapshots/184/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-06 23:00:11 | @/.snapshots/183/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-06 22:00:11 | @/.snapshots/182/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-06 21:09:11 | @/.snapshots/181/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-06 20:00:15 | @/.snapshots/180/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-06 19:00:15 | @/.snapshots/179/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-06 18:00:09 | @/.snapshots/178/snapshot | single | timeline                                                                 |
Found 50 snapshot(s)
Unmount /tmp/grub-btrfs.bdOaAYXEEt .. Success
done
(3/7) Re-generate Grub if Updated
Installing for x86_64-efi platform.
Installation finished. No error reported.
Generating grub configuration file ...
Found theme: /boot/grub/themes/EndeavourOS/theme.txt
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-lts.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-lts-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
Detecting snapshots ...
Found snapshot: 2022-10-08 15:37:13 | @/.snapshots/227/snapshot | pre    | pacman -S grub                                                           |
Found snapshot: 2022-10-08 15:00:37 | @/.snapshots/226/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 14:00:30 | @/.snapshots/225/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 13:12:37 | @/.snapshots/224/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-08 12:00:01 | @/.snapshots/223/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 11:47:57 | @/.snapshots/222/snapshot | post   | qt6-declarative                                                          |
Found snapshot: 2022-10-08 11:47:53 | @/.snapshots/221/snapshot | pre    | pacman -S -y -u --config /etc/pacman.conf --                             |
Found snapshot: 2022-10-08 11:46:58 | @/.snapshots/220/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-08 11:00:00 | @/.snapshots/219/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 10:22:17 | @/.snapshots/218/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-08 10:00:20 | @/.snapshots/217/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 09:00:20 | @/.snapshots/216/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 08:00:20 | @/.snapshots/215/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 07:57:51 | @/.snapshots/214/snapshot | post   | alsa-card-profiles firefox glibc gst-plugin-pipewire librsvg pipewire pi |
Found snapshot: 2022-10-08 07:57:42 | @/.snapshots/213/snapshot | pre    | pacman -S -y -u --config /etc/pacman.conf --                             |
Found snapshot: 2022-10-08 07:56:18 | @/.snapshots/212/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-07 19:56:59 | @/.snapshots/211/snapshot | post   | fwupd                                                                    |
Found snapshot: 2022-10-07 19:56:54 | @/.snapshots/210/snapshot | pre    | pacman -S -u -y --config /etc/pacman.conf --                             |
Found snapshot: 2022-10-07 19:00:12 | @/.snapshots/209/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 18:00:12 | @/.snapshots/208/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 17:00:12 | @/.snapshots/207/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 16:00:12 | @/.snapshots/206/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 15:00:12 | @/.snapshots/205/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 14:39:58 | @/.snapshots/204/snapshot | post   | libcdio                                                                  |
Found snapshot: 2022-10-07 14:39:54 | @/.snapshots/203/snapshot | pre    | pacman -S -y -u --config /etc/pacman.conf --                             |
Found snapshot: 2022-10-07 14:38:47 | @/.snapshots/202/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-07 13:02:53 | @/.snapshots/201/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-07 13:01:48 | @/.snapshots/200/snapshot | post   | libimagequant                                                            |
Found snapshot: 2022-10-07 13:00:13 | @/.snapshots/199/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 12:58:44 | @/.snapshots/198/snapshot | pre    | pacman -S -y -u --config /etc/pacman.conf --                             |
Found snapshot: 2022-10-07 12:00:00 | @/.snapshots/197/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 11:16:17 | @/.snapshots/196/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-07 09:00:00 | @/.snapshots/195/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 08:34:30 | @/.snapshots/194/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-07 07:38:03 | @/.snapshots/193/snapshot | post   | dhclient                                                                 |
Found snapshot: 2022-10-07 07:37:57 | @/.snapshots/192/snapshot | pre    | pacman -S -y -u --config /etc/pacman.conf --                             |
Found snapshot: 2022-10-07 07:00:10 | @/.snapshots/191/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 06:00:09 | @/.snapshots/190/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 05:00:11 | @/.snapshots/189/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 04:00:11 | @/.snapshots/188/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 03:00:11 | @/.snapshots/187/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 02:00:11 | @/.snapshots/186/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 01:00:11 | @/.snapshots/185/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 00:00:11 | @/.snapshots/184/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-06 23:00:11 | @/.snapshots/183/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-06 22:00:11 | @/.snapshots/182/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-06 21:09:11 | @/.snapshots/181/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-06 20:00:15 | @/.snapshots/180/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-06 19:00:15 | @/.snapshots/179/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-06 18:00:09 | @/.snapshots/178/snapshot | single | timeline                                                                 |
Found 50 snapshot(s)
Unmount /tmp/grub-btrfs.VNzn0VwLdS .. Success
done
(4/7) Checking which packages need to be rebuilt
(5/7) Updating the info directory file...
(6/7) Generating GRUB config to let grub-btrfs detect new snapshots...
Generating grub configuration file ...
Found theme: /boot/grub/themes/EndeavourOS/theme.txt
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-lts.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-lts-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
Detecting snapshots ...
Found snapshot: 2022-10-08 15:37:13 | @/.snapshots/227/snapshot | pre    | pacman -S grub                                                           |
Found snapshot: 2022-10-08 15:00:37 | @/.snapshots/226/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 14:00:30 | @/.snapshots/225/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 13:12:37 | @/.snapshots/224/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-08 12:00:01 | @/.snapshots/223/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 11:47:57 | @/.snapshots/222/snapshot | post   | qt6-declarative                                                          |
Found snapshot: 2022-10-08 11:47:53 | @/.snapshots/221/snapshot | pre    | pacman -S -y -u --config /etc/pacman.conf --                             |
Found snapshot: 2022-10-08 11:46:58 | @/.snapshots/220/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-08 11:00:00 | @/.snapshots/219/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 10:22:17 | @/.snapshots/218/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-08 10:00:20 | @/.snapshots/217/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 09:00:20 | @/.snapshots/216/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 08:00:20 | @/.snapshots/215/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-08 07:57:51 | @/.snapshots/214/snapshot | post   | alsa-card-profiles firefox glibc gst-plugin-pipewire librsvg pipewire pi |
Found snapshot: 2022-10-08 07:57:42 | @/.snapshots/213/snapshot | pre    | pacman -S -y -u --config /etc/pacman.conf --                             |
Found snapshot: 2022-10-08 07:56:18 | @/.snapshots/212/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-07 19:56:59 | @/.snapshots/211/snapshot | post   | fwupd                                                                    |
Found snapshot: 2022-10-07 19:56:54 | @/.snapshots/210/snapshot | pre    | pacman -S -u -y --config /etc/pacman.conf --                             |
Found snapshot: 2022-10-07 19:00:12 | @/.snapshots/209/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 18:00:12 | @/.snapshots/208/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 17:00:12 | @/.snapshots/207/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 16:00:12 | @/.snapshots/206/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 15:00:12 | @/.snapshots/205/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 14:39:58 | @/.snapshots/204/snapshot | post   | libcdio                                                                  |
Found snapshot: 2022-10-07 14:39:54 | @/.snapshots/203/snapshot | pre    | pacman -S -y -u --config /etc/pacman.conf --                             |
Found snapshot: 2022-10-07 14:38:47 | @/.snapshots/202/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-07 13:02:53 | @/.snapshots/201/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-07 13:01:48 | @/.snapshots/200/snapshot | post   | libimagequant                                                            |
Found snapshot: 2022-10-07 13:00:13 | @/.snapshots/199/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 12:58:44 | @/.snapshots/198/snapshot | pre    | pacman -S -y -u --config /etc/pacman.conf --                             |
Found snapshot: 2022-10-07 12:00:00 | @/.snapshots/197/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 11:16:17 | @/.snapshots/196/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-07 09:00:00 | @/.snapshots/195/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 08:34:30 | @/.snapshots/194/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-07 07:38:03 | @/.snapshots/193/snapshot | post   | dhclient                                                                 |
Found snapshot: 2022-10-07 07:37:57 | @/.snapshots/192/snapshot | pre    | pacman -S -y -u --config /etc/pacman.conf --                             |
Found snapshot: 2022-10-07 07:00:10 | @/.snapshots/191/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 06:00:09 | @/.snapshots/190/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 05:00:11 | @/.snapshots/189/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 04:00:11 | @/.snapshots/188/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 03:00:11 | @/.snapshots/187/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 02:00:11 | @/.snapshots/186/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 01:00:11 | @/.snapshots/185/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-07 00:00:11 | @/.snapshots/184/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-06 23:00:11 | @/.snapshots/183/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-06 22:00:11 | @/.snapshots/182/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-06 21:09:11 | @/.snapshots/181/snapshot | single | boot                                                                     |
Found snapshot: 2022-10-06 20:00:15 | @/.snapshots/180/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-06 19:00:15 | @/.snapshots/179/snapshot | single | timeline                                                                 |
Found snapshot: 2022-10-06 18:00:09 | @/.snapshots/178/snapshot | single | timeline                                                                 |
Found 50 snapshot(s)
Unmount /tmp/grub-btrfs.2TG5xLXnt2 .. Success
done
(7/7) Performing snapper post snapshots for the following configurations...
==> root: 228
[limo@asus ~]$ 


Reviewing the output text, I believe everything went fine as planned.

  • Grub was reinstalled
  • Grub entries were updated
  • The two commands ran properly as planned
  • System snapshots were taken before and after every change.
    Anything else?

Should I be courageous and reboot now? I will be back and alive after reboot? Or I am missing something?

Sorry to hijack this thread @dalto , but I have a question that is somewhat on topic.

I’ve been going through the eos-grub-fix-initrd-generation hook and script in grub-tools to try and figure out if I still needed it.

I understand the functions that fix the entry name in grub menu (the “linux, with linux linux” part) and
add the environment variable to enable/disable os-prober, but I’m kinda clueless when it comes to the functions related to initrd.

Are those just supposed to fix detection of other arch based distros when using os-prober or am I missing something?

Looks like it worked to me. You should be able to reboot.

That being said, you seem to have more than one set of hooks running grub-mkconfig. This is probably because you have grub-tools installed. If you are planning to keep grub-tools installed then you should probably alter your hook to accommodate that.

1 Like