James Barnett f256338074 Add GRUB_BTRFS_LIMIT
Allow user to limit the number of snapshots listed in GRUB. This also reverses
the order of the snapshots such that the more recent ones come first. That is,
if a user specifies GRUB_BTRFS_LIMIT=10, then only the 10 most recent snapshots
will be shown. The default limit is 100, which seems very large. The more
snapshots in the GRUB menu, the longer the system takes to boot.
2016-03-18 16:46:11 -05:00
2015-09-23 02:14:46 +02:00
2016-03-18 16:46:11 -05:00
2014-02-12 02:24:56 -08:00

GitHub release

grub-btrfs

This is a version 1.xx of grub-btrfs

Description

grub-btrfs, Include btrfs snapshots at boot options. (grub menu)

What does grub-btrfs v1.xx do :

Simple rollback using snapshots you made previously.

  • Automatically List snapshots existing on root partition (btrfs).

  • Automatically Detect if "/boot" is in separate partition.

  • Automatically Detect kernel, initramfs and intel microcode in "/boot" directory on snapshots. (For custon name, see below.)

  • Automatically Create corresponding "menuentry" in grub.cfg , which ensures a very easy rollback.

How to use it:

Add this lines to /etc/default/grub:

  • GRUB_BTRFS_SUBMENUNAME="ArchLinux Snapshots"

    (Name menu appearing in grub.)

  • GRUB_BTRFS_PREFIXENTRY="Snapshot:"

    (Add a name ahead your snapshots entries.)

  • GRUB_BTRFS_DISPLAY_PATH_SNAPSHOT="true"

    (Show full path snapshot or only name)

  • GRUB_BTRFS_TITLE_FORMAT="p/d/n"

    (Custom title, shows/hides p"prefix" d"date" n"name" in grub-menu, separator "/", custom order available)

  • GRUB_BTRFS_NKERNEL=("vmlinuz-linux")

    (Use only if you have custom kernel name or auto-detect failed.)

  • GRUB_BTRFS_NINIT=("initramfs-linux.img" "initramfs-linux-fallback.img")

    (Use only if you have custom initramfs name or auto-detect failed.)

  • GRUB_BTRFS_INTEL_UCODE=("intel-ucode.img")

    (Use only if you have custom intel-ucode or auto-detect failed.)

Generate grub.cfg (on Archlinux use grub-mkconfig -o /boot/grub/grub.cfg )

grub-btrfs automatically generates snapshots entries.

You will see it appear differents entries (e.g : Snapshot: [2014-02-12 11:24:37] my snapshot name overkill )

TO DO

  • Display name of microcode in menuentry when available

discussion

Pour les francophones : https://forums.archlinux.fr/viewtopic.php?f=18&t=17177

Description
Include btrfs snapshots at boot options. (Grub menu)
Readme GPL-3.0 1.2 MiB
Languages
Shell 60.3%
Roff 30.7%
Makefile 9%