dalto
December 27, 2022, 4:47pm
1
If you use grub-btrfs
it seems like the recent update to btrfs-progs
breaks snapshots adding to the menu.
More information here:
opened 02:48AM - 27 Dec 22 UTC
After a recent update on EndeavourOS, grub-btrfs has not been able to find snaps… hots in the directory. It is able to detect whenever snapshots are created or deleted, and it gives this output whenever that happens:
```
sudo grub-btrfsd /.snapshots --verbose
grub-btrfsd starting up...
Watching /.snapshots for new snapshots...
Detected snapshot creation/ deletion, recreating Grub menu
Detecting snapshots ...
No snapshots found.
If you think an error has occurred, please file a bug report at "https://github.com/Antynea/grub-btrfs"
Unmount /tmp/grub-btrfs.PvfTtjMUFv .. Success
Grub submenu recreated
```
I do have snapshots in the /.snapshots directory though. I am using a layout similar to the one on the [Archwiki snapper page](https://wiki.archlinux.org/title/Snapper#Suggested_filesystem_layout) where they are stored on a separate @snapshots subvolume and mounted to /.snapshots.
```
sudo ls -al /.snapshots
drwxr-x--- 1 root root 338 Dec 26 20:33 .
drwxr-xr-x 1 root root 150 Oct 19 19:09 ..
drwxr-xr-x 1 root root 32 Aug 29 14:21 1
drwxr-xr-x 1 root root 32 Nov 7 11:28 1040
drwxr-xr-x 1 root root 32 Nov 7 12:38 1056
drwxr-xr-x 1 root root 32 Dec 14 14:00 1633
drwxr-xr-x 1 root root 32 Dec 18 12:12 1643
drwxr-xr-x 1 root root 32 Dec 26 01:10 1645
drwxr-xr-x 1 root root 72 Dec 18 13:12 1646
drwxr-xr-x 1 root root 32 Dec 26 01:10 1656
drwxr-xr-x 1 root root 72 Dec 18 23:35 1657
drwxr-xr-x 1 root root 32 Dec 19 00:00 1658
drwxr-xr-x 1 root root 32 Dec 20 00:00 1661
drwxr-xr-x 1 root root 32 Dec 20 22:00 1664
drwxr-xr-x 1 root root 32 Dec 21 20:00 1665
drwxr-xr-x 1 root root 32 Dec 26 01:10 1666
drwxr-xr-x 1 root root 72 Dec 21 20:34 1667
drwxr-xr-x 1 root root 32 Dec 21 20:38 1670
drwxr-xr-x 1 root root 72 Dec 21 20:39 1671
drwxr-xr-x 1 root root 32 Dec 26 01:10 1672
drwxr-xr-x 1 root root 72 Dec 25 16:50 1673
drwxr-xr-x 1 root root 32 Dec 26 01:10 1674
drwxr-xr-x 1 root root 72 Dec 25 16:50 1675
drwxr-xr-x 1 root root 32 Dec 25 16:51 1676
drwxr-xr-x 1 root root 72 Dec 25 16:51 1677
drwxr-xr-x 1 root root 32 Dec 25 16:51 1678
drwxr-xr-x 1 root root 72 Dec 25 16:51 1679
drwxr-xr-x 1 root root 32 Dec 25 17:00 1680
drwxr-xr-x 1 root root 32 Dec 26 13:43 1681
drwxr-xr-x 1 root root 72 Dec 25 17:11 1682
drwxr-xr-x 1 root root 32 Dec 26 01:00 1683
drwxr-xr-x 1 root root 32 Dec 26 13:43 1684
drwxr-xr-x 1 root root 72 Dec 26 13:19 1685
drwxr-xr-x 1 root root 32 Dec 26 13:21 1686
drwxr-xr-x 1 root root 72 Dec 26 13:21 1687
drwxr-xr-x 1 root root 32 Dec 26 13:26 1688
drwxr-xr-x 1 root root 72 Dec 26 13:26 1689
drwxr-xr-x 1 root root 32 Dec 26 13:26 1690
drwxr-xr-x 1 root root 72 Dec 26 13:27 1691
drwxr-xr-x 1 root root 32 Dec 26 14:00 1692
drwxr-xr-x 1 root root 32 Dec 26 14:10 1693
drwxr-xr-x 1 root root 72 Dec 26 14:10 1694
drwxr-xr-x 1 root root 32 Dec 26 14:13 1696
drwxr-xr-x 1 root root 72 Dec 26 14:13 1697
drwxr-xr-x 1 root root 32 Dec 26 20:33 1698
```
This also happens when I run grub-mkconfig manually. I have installed the inotify-tools optional dependency and disabled the old grub-btrfs.path systemd unit, since it seems to have been replaced with grub-btrfsd from what I can gather.
3 Likes
storm
December 27, 2022, 9:54pm
2
Thanks, dalto and bjroden .
For now I got back to version 6.0.2-1 from /var/cache/pacman/pkg/btrfs-progs-6.0.2-1-x86_64.pkg.tar.zst
and flagged
IgnorePkg = btrfs-progs
in /etc/pacman.conf
sudo downgrade btrfs-progs
sudo grub-mkconfig -o /boot/grub/grub.cfg
reboot
By so doing, it works again both in UEFI and legacy bios.
Hope it will be fixed soon: all the best,
Piero
2 Likes
ddnn
December 28, 2022, 3:23pm
3
Maybe pin this post and mark @storm 's reply as the temporary solution?
dalto
December 28, 2022, 4:03pm
4
I don’t think this issue needs to be pinned since it impacts a relatively small number of people in a non-breaking manner.
Since I would never recommend running your system in a partially updated scenario, I don’t think marking that as the solution is a good idea.
storm
December 29, 2022, 2:19pm
6
Maybe this one by TheLinuxNinja , too:
opened 02:48AM - 27 Dec 22 UTC
closed 05:29PM - 26 Mar 23 UTC
After a recent update on EndeavourOS, grub-btrfs has not been able to find snaps… hots in the directory. It is able to detect whenever snapshots are created or deleted, and it gives this output whenever that happens:
```
sudo grub-btrfsd /.snapshots --verbose
grub-btrfsd starting up...
Watching /.snapshots for new snapshots...
Detected snapshot creation/ deletion, recreating Grub menu
Detecting snapshots ...
No snapshots found.
If you think an error has occurred, please file a bug report at "https://github.com/Antynea/grub-btrfs"
Unmount /tmp/grub-btrfs.PvfTtjMUFv .. Success
Grub submenu recreated
```
I do have snapshots in the /.snapshots directory though. I am using a layout similar to the one on the [Archwiki snapper page](https://wiki.archlinux.org/title/Snapper#Suggested_filesystem_layout) where they are stored on a separate @snapshots subvolume and mounted to /.snapshots.
```
sudo ls -al /.snapshots
drwxr-x--- 1 root root 338 Dec 26 20:33 .
drwxr-xr-x 1 root root 150 Oct 19 19:09 ..
drwxr-xr-x 1 root root 32 Aug 29 14:21 1
drwxr-xr-x 1 root root 32 Nov 7 11:28 1040
drwxr-xr-x 1 root root 32 Nov 7 12:38 1056
drwxr-xr-x 1 root root 32 Dec 14 14:00 1633
drwxr-xr-x 1 root root 32 Dec 18 12:12 1643
drwxr-xr-x 1 root root 32 Dec 26 01:10 1645
drwxr-xr-x 1 root root 72 Dec 18 13:12 1646
drwxr-xr-x 1 root root 32 Dec 26 01:10 1656
drwxr-xr-x 1 root root 72 Dec 18 23:35 1657
drwxr-xr-x 1 root root 32 Dec 19 00:00 1658
drwxr-xr-x 1 root root 32 Dec 20 00:00 1661
drwxr-xr-x 1 root root 32 Dec 20 22:00 1664
drwxr-xr-x 1 root root 32 Dec 21 20:00 1665
drwxr-xr-x 1 root root 32 Dec 26 01:10 1666
drwxr-xr-x 1 root root 72 Dec 21 20:34 1667
drwxr-xr-x 1 root root 32 Dec 21 20:38 1670
drwxr-xr-x 1 root root 72 Dec 21 20:39 1671
drwxr-xr-x 1 root root 32 Dec 26 01:10 1672
drwxr-xr-x 1 root root 72 Dec 25 16:50 1673
drwxr-xr-x 1 root root 32 Dec 26 01:10 1674
drwxr-xr-x 1 root root 72 Dec 25 16:50 1675
drwxr-xr-x 1 root root 32 Dec 25 16:51 1676
drwxr-xr-x 1 root root 72 Dec 25 16:51 1677
drwxr-xr-x 1 root root 32 Dec 25 16:51 1678
drwxr-xr-x 1 root root 72 Dec 25 16:51 1679
drwxr-xr-x 1 root root 32 Dec 25 17:00 1680
drwxr-xr-x 1 root root 32 Dec 26 13:43 1681
drwxr-xr-x 1 root root 72 Dec 25 17:11 1682
drwxr-xr-x 1 root root 32 Dec 26 01:00 1683
drwxr-xr-x 1 root root 32 Dec 26 13:43 1684
drwxr-xr-x 1 root root 72 Dec 26 13:19 1685
drwxr-xr-x 1 root root 32 Dec 26 13:21 1686
drwxr-xr-x 1 root root 72 Dec 26 13:21 1687
drwxr-xr-x 1 root root 32 Dec 26 13:26 1688
drwxr-xr-x 1 root root 72 Dec 26 13:26 1689
drwxr-xr-x 1 root root 32 Dec 26 13:26 1690
drwxr-xr-x 1 root root 72 Dec 26 13:27 1691
drwxr-xr-x 1 root root 32 Dec 26 14:00 1692
drwxr-xr-x 1 root root 32 Dec 26 14:10 1693
drwxr-xr-x 1 root root 72 Dec 26 14:10 1694
drwxr-xr-x 1 root root 32 Dec 26 14:13 1696
drwxr-xr-x 1 root root 72 Dec 26 14:13 1697
drwxr-xr-x 1 root root 32 Dec 26 20:33 1698
```
This also happens when I run grub-mkconfig manually. I have installed the inotify-tools optional dependency and disabled the old grub-btrfs.path systemd unit, since it seems to have been replaced with grub-btrfsd from what I can gather.
Until this is fixed, I changed line 295 of 41_snapshots-btrfs on my local system to reference field 12 instead of the missing field 13. This is a good workaround for me. Once btrfs-progs is fixed, I can revert my local change.
2 Likes
Also affects btrbk: No snapshots or backups for a few days now, which was a “surprise”. Be careful out there.
opened 10:19AM - 25 Dec 22 UTC
upstream bug
Hi,
my Debian system upgraded btrfs-progs from version 6.0.2 to 6.1 and btrbk s… topped working.
It says
```
# btrbk list
ERROR: Skipping subvolume "/mnt/btrfs/system/system": subvolume has no UUID
ERROR: Skipping subvolume "/mnt/btrfs/home/homex": subvolume has no UUID
ERROR: Skipping subvolume "/mnt/btrfs/lxc/lxc/DevelBuster": subvolume has no UUID
ERROR: Skipping subvolume "/mnt/btrfs/lxc/lxc/DevelStretch": subvolume has no UUID
ERROR: Skipping subvolume "/mnt/btrfs/lxc/lxc/PHP": subvolume has no UUID
ERROR: Skipping subvolume "/mnt/btrfs/docker/docker/_scripts": subvolume has no UUID
ERROR: Skipping subvolume "/mnt/btrfs/docker/docker/gitlab-fresh": subvolume has no UUID
ERROR: Skipping subvolume "/mnt/btrfs/docker/docker/kibana": subvolume has no UUID
ERROR: Skipping subvolume "/mnt/btrfs/docker/docker/phpdocker": subvolume has no UUID
SOURCE_SUBVOLUME SNAPSHOT_SUBVOLUME STATUS TARGET_SUBVOLUME
```
after downgrading back to 6.0.2 it works ok again.
My btrbk version is 0.32.5 from Debian unstable
Arch released a patched version 6.1-2.
Things seem to be working as expected again here.
1 Like
dalto
Closed
January 1, 2023, 10:01am
9
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.