How do I restore Cachy's Grub's customization?

Out of the blue, I had a non booting grub issue this morning.

I had to chroot into the system, reinstalling the gub package, reinstalling the booloader’s efi binary and regenerating the /boot/grub/grub.cfg.

Normally, I would make a backup copy of /etc/default/grub to preserve my changes in this file. This time I forgot and all my changes got lost.

I would like to get back the /etc/default/grub file that was shipped by CachyOS at the installation.

Also, it would be nice to get back Cachy’s Grub theming. Now I have the regular Archlinux’ grub boot screen.

I would appreciate your help.

are you on btrfs and using snapper?

maybe you can cd as root into an older snapshot and copy the old /etc/default/grub.
The snapshots are located in /.snapshots

Thanks @BlackBird for the reply!

Yes, I do use btrfs but unfortunately not snapper so I don’t have any snapshots.

However, I have another CachyOS on another machine from which I can copy over /etc/default/grub.

Also about the theming, I have really never bothered with that but now when I was met by the all black screen of Vanilla Arch after having been used to that of Cachy’s for some time, I guess I was a bit “intimidated”. Anyhow, it’s not the end of the world and I can live with that.

snapshots are set up by default in CachyOS, unless you explicitly disabled it.

As for the theming have you looked in the repos? I see they have this package:

cachyos/cachyos-grub-theme 1.0.0-1
    Grub2 Theme for CachyOS

maybe that is what you want..

And no matter what theme you use it is going to need to be applied like in /etc/default/grub;

[...]
GRUB_THEME="/usr/share/grub/themes/mace/theme.txt"
[...]

Thanks @BlackBird and @cscs! With the help of you two I got it back to where I wanted it.

Yes, that’s what I did. I’ve got a rather minimal setup and have never felt the need of snapshotting/backing up the system. Normally things don’t break on me that badly that I have to restore the system using a backup. I do, however, back up my personal data. That yes.