Btrfs Assistant 1.0 is coming, testers needed

If you want to plan how to restore root-snapshot without using Live USB in the future:

  1. Edit /etc/mkinitcpio.conf to add grub-btrfs-overlayfs in HOOKS.
  2. Run sudo mkinitcpio -P
  3. Create a new root snapshot with the ability grub-btrfs-overlayfs, but all old snapshots do not have this ability.
  4. You can boot into some read-only snapshot with the ability Overlayfs from Grub menu.
  5. Then restore any snapshot in Btrfs Assistant, then reboot.

If you need the Desktop notification to detect if you are using Overlayfs after booting into read-only snapshot:

  1. Create a new script /usr/local/bin/btrfs-assisant-detects-snapshot :
#!/bin/bash
if stat -f -c '%T' / | grep -q 'btrfs'; then
  exit 0
fi
notify-send -u critical -i btrfs-assistant 'Detected!' 'Booted into snapshot, please restore the snapshot.'
  1. sudo chmod +x /usr/local/bin/btrfs-assisant-detects-snapshot

  2. Create a new script /etc/xdg/autostart/btrfs-assistant-detects-snapshot.desktop for startup

[Desktop Entry]
Name=Snapshot Detect
Icon=btrfs-assistant
Exec=/usr/local/bin/btrfs-assisant-detects-snapshot
Terminal=false
Type=Application

See the example:
image

4 Likes