Commit Graph

403 Commits

Author SHA1 Message Date
github-actions[bot]
474771981f chore: bump version to master-2026-05-30T19:22:48+00:00 2026-05-30 19:22:48 +00:00
Antynea
e929a4b010 Use print_info for "Detecting snapshots" message
The "Detecting snapshots ..." message was still a bare printf and bypassed the logging helpers added in #435.
Use print_info so it carries the "grub-btrfs:" prefix; 
the trailing newline is handled by the helper.
2026-05-30 21:22:41 +02:00
github-actions[bot]
eb87f5101f chore: bump version to master-2026-05-30T13:43:14+00:00 2026-05-30 13:43:14 +00:00
Antynea
aea2b0aa1c #423 remove unneeded log messages (#435)
* Refactor error handling to logging functions
2026-05-30 15:43:07 +02:00
github-actions[bot]
85589d735a chore: bump version to master-2026-05-30T12:41:03+00:00 2026-05-30 12:41:03 +00:00
Antynea
141c795a1d Update checkout action to version 4 2026-05-30 14:40:54 +02:00
github-actions[bot]
7306aad97d chore: bump version to master-2026-05-30T12:36:21+00:00 2026-05-30 12:36:21 +00:00
Antynea
3162276a22 Update GitHub Actions to use checkout@v4 2026-05-30 14:36:14 +02:00
github-actions[bot]
3979c534f4 chore: bump version to master-2026-05-30T12:33:43+00:00 2026-05-30 12:33:43 +00:00
Antynea
4e12747226 Update GitHub Actions to use checkout@v4 2026-05-30 14:33:34 +02:00
github-actions[bot]
d785137f55 chore: bump version to 2026-05-30 12:13:48 +00:00
Sneed
b5670caba5 fixed typo - added "$" to pidfile (#434)
Added "$" to {RC_SVCNAME} to ensure pid file is grub-btrfsd.pid and not "{RC_SVCNAME}.pid"
2026-05-30 14:13:41 +02:00
github-actions[bot]
4669f59d47 chore: bump version to 2026-05-30 12:07:59 +00:00
Antynea
531f3676b7 Fix typo
Fix typo
2026-05-30 14:07:52 +02:00
github-actions[bot]
efece5eeb2 chore: bump version to 2026-05-23 08:55:16 +00:00
kennethso168
fe2028b623 Add more information for booting read-only snapshots on Dracut distros (#431)
Adapted from https://github.com/Antynea/grub-btrfs/issues/399#issuecomment-4478211233
2026-05-23 10:55:09 +02:00
github-actions[bot]
aeda46c2a0 chore: bump version to 2026-05-22 11:33:41 +00:00
Antynea
8fb00c532a Modify bump-version workflow for versioning
Update version retrieval method and remove fetch-tags.
2026-05-22 13:33:34 +02:00
github-actions[bot]
97ae2976f9 chore: bump version to 2026-05-22 11:29:30 +00:00
Antynea
86345e0d38 Modify versioning in bump-version-on-merge workflow
Removed fetching tags when checking out the master branch and updated version format to exclude the latest tag.
2026-05-22 13:29:22 +02:00
github-actions[bot]
5b567255e3 chore: bump version to 2026-05-10 10:13:56 +00:00
Reynegton Pinheiro Nunes
a181e2ca41 feat: add auto-detection for Fedora distribution (#428)
Fedora uses non-standard paths and command names for GRUB (e.g., /boot/grub2 instead of /boot/grub, and grub2-mkconfig).
This change adds a conditional block to detect Fedora via /etc/fedora-release and automatically sets the appropriate variables, improving the out-of-the-box experience for Fedora users.
2026-05-10 12:13:50 +02:00
github-actions[bot]
a79c9cc42c chore: bump version to 2026-05-10 10:12:40 +00:00
Antynea
88e8b4ae97 Add condition to skip action for bot commits 2026-05-10 12:12:32 +02:00
github-actions[bot]
004fe0aae4 chore: bump version to 2026-05-10 10:10:14 +00:00
Antynea
828f593f6f Add workflow to bump version on merge to master 2026-05-10 12:10:01 +02:00
Antynea
b8e6deaafd Add workflow to bump version on tag push 2026-05-10 12:07:00 +02:00
Jalopy
7e8a45ca9c Fix boot_uuid_subvolume fallback (#415)
Fix regression affecting systems where boot directory is not a Btrfs subvolume.
2026-02-19 09:21:08 +01:00
Jalopy
14fa71c994 add support for detached LUKS header and UUID fallbacks (#378)
Two hard failures prevented 41-snapshots-btrfs from generating a
snapshot submenu when the root LUKS header is detached and cryptdevice=
uses a /dev/disk/by-id path:

* grub-probe --target=fs_uuid aborted on detached headers.
* grep-based extraction of UUID from GRUB_CMDLINE_LINUX_DEFAULT failed
  when cryptdevice= did not contain “UUID=…”.

This patch:

1. Wraps grub-probe in a try/blkid/lsblk cascade that always returns the
   filesystem UUID or prints a clear error.
2. Replaces the fixed “cryptomount -u $(grep …UUID=…)” line with logic
   that:
   • accepts both UUID=… and /dev/disk/by-id/… syntaxes,
   • resolves paths to a canonical UUID with blkid,
   • emits ‘cryptomount -u <uuid>’ when possible,
   • falls back to ‘cryptomount -a’ only if no UUID can be extracted.
3. Keeps the previous behavior unchanged for unencrypted systems or for
   installations that already worked.

Result: snapshot menu is produced and boots correctly on standard
(setup with inline header), detached-header, and by-id configurations;
no regression for existing users.
2026-01-02 10:52:31 +01:00
Wayne Galen
2fcfbe9676 Ignore Podman container images (#380)
Same basic pattern as with Docker, but Podman uses a slightly different
path for this
v4.14
2025-09-17 07:41:59 +02:00
TNE
9e171282da Get default early initrd list from GRUB_EARLY_INITRD_LINUX_STOCK (#389)
This mimics the behavior of grub more precisely

Fixes #388
2025-09-17 07:41:05 +02:00
cip91sk
b509fcaf61 add support for booting snapshots on LUKS encrypted disk (#333)
* add support for booting snapshots on LUKS encrypted disk

* documentation for booting from LUKS encrypted devices

* better detecting cryptdevice UUID
2025-01-06 08:11:45 +01:00
Pascal J
f682e17b30 Merge pull request #321 from StollD/set-subvolid
Add support for GRUB patches from SUSE
2024-04-08 17:02:40 +02:00
Pascal J
72a3dc092b Merge pull request #325 from aidan-gibson/master
Fix RAID
2024-03-27 18:16:20 +01:00
Aidan Gibson
6cb200a50b Fix RAID 2024-03-24 19:11:54 -07:00
Dorian Stoll
ece8d87151 Add support for GRUB patches from SUSE
Some GRUBs out there (Fedora, openSUSE) have an option that makes all
paths relative to the default subvolume of the filesystem. This can be
used to include /boot in your snapshots and roll them back without
having to regenerate grub.cfg.

However, enabling that option will break grub-btrfs, because loading the
kernel from a different snapshot requires the paths to be absolute.

To make this work, GRUB has to be told explicitly to access the root
subvolume when booting to a snapshot.
2024-03-10 12:56:37 +01:00
Pascal J
346a9868b8 Merge pull request #318 from expoodo/yabsnap_info_support
add support for yabsnap snapshot information
2024-03-06 14:48:24 +01:00
Pascal Jäger
b8465d14db fix spelling 2024-03-06 14:43:57 +01:00
Pascal J
0bc09317d8 Merge branch 'master' into yabsnap_info_support 2024-03-06 14:41:49 +01:00
Pascal J
94d742d1d4 Merge pull request #311 from bastien-roucaries/fix_bashism
Fix bashism
2024-03-06 14:24:44 +01:00
Pascal Jäger
363d7da3a7 fix typo uper -> upper 2024-03-06 14:23:26 +01:00
expoodo
585268dad7 Merge branch 'Antynea:master' into yabsnap_info_support 2024-02-19 15:18:18 -05:00
expoodo
34b54de71c removed redundant array slice 2024-02-19 15:16:26 -05:00
expoodo
a8713bbd0b mention yabsnap 2024-02-19 15:12:38 -05:00
Pascal Jäger
ac45f09af3 do not install compressed manpages
Fix #317

Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
2024-02-19 14:59:57 +01:00
expoodo
d41991979e add support for yabsnap snapshots info 2024-02-18 20:24:13 -05:00
Pascal J
99fc835e9c Merge pull request #305 from felixonmars/patch-1
Update Arch Linux package URL in README.md
2024-01-29 10:45:04 +01:00
Pascal J
5e608f8d96 Merge pull request #309 from yarikoptic/enh-codespell
Add codespell support (config, workflow to alert on new typos) + make it fix typos
2024-01-29 10:44:42 +01:00
Bastien Roucariès
465b56107f Add double quote if needed 2024-01-27 17:42:06 +00:00
Bastien Roucariès
7aa227b378 Fix 41_snapshots-btrs bashish [[ ]] 2024-01-27 17:38:55 +00:00