You are not logged in.

#1 2023-06-26 18:16:36

qherring
Member
Registered: 2023-05-05
Posts: 87

Only 50 most recent snapper shapshots are showing in grub [SOLVED]

I recently installed a new arch os using btrfs.  I have gotten snapper running and the snapshots are working as usual. 
When I run

sudo snapper ls

I get 68 snapshot entries.  Now when I run

sudo grub-mkconfig -o /boot/grub/grub.cfg

I get only the most recent 50 entries.

In my /etc/snapper/configs/root file I have set it as such:

# limit for number cleanup
NUMBER_MIN_AGE="1800"
NUMBER_LIMIT="100"
NUMBER_LIMIT_IMPORTANT="10"


# create hourly snapshots
TIMELINE_CREATE="yes"

# cleanup hourly snapshots after some time
TIMELINE_CLEANUP="yes"

# limits for timeline cleanup
TIMELINE_MIN_AGE="1800"
TIMELINE_LIMIT_HOURLY="10"
TIMELINE_LIMIT_DAILY="10"
TIMELINE_LIMIT_WEEKLY="0"
TIMELINE_LIMIT_MONTHLY="10"
TIMELINE_LIMIT_YEARLY="24"

Now I cannot figure out why when I make the grub config it is only pulling the recent 50 entries.

Last edited by qherring (2023-06-28 05:20:20)

Offline

#2 2023-06-26 22:35:21

qherring
Member
Registered: 2023-05-05
Posts: 87

Re: Only 50 most recent snapper shapshots are showing in grub [SOLVED]

I was also to solve this by uncommenting the GRUB_BTRFS_LIMIT="100" and changing the number.

The problem I have now I that when I boot into my snapshot and try to run

sudo mount /dev/nvme1n1p2 -o subvolid=5 /mnt

It refuses due to "unknown filesystem type 'crypto_LUKS'"

Is there a special process to follow for mounting encrypted volumes?

Offline

#3 2023-06-27 00:37:32

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,245

Re: Only 50 most recent snapper shapshots are showing in grub [SOLVED]

What is /boot in your case? If you're mounting your ESP there then the problem will be that you are booting into a snapshot whose modules (/usr/lib/modules) have an older kernel than the one you are booting with, so the booting kernel can't load any modules anymore. Either boot the fallback image or configure your snapshots to not snapshot/rollback /usr/lib/modules.

Since that is offtopic in regards to your original issue, please mark this one as [SOLVED] and continue in a new thread for the other issue if need be.

Online

Board footer

Powered by FluxBB