No description
Find a file
2026-11-25 00:17:25 +03:00
debian release 4.14-39.git38cd2fa-4: normalize maintainer metadata 2026-11-25 00:17:25 +03:00
.gitignore add debian packaging 2026-11-08 22:01:24 +03:00
build.sh add build script 2026-11-12 08:31:47 +03:00
README.md release -3: ShadaOS Snapshots submenu name 2026-11-24 14:03:32 +03:00

grub-btrfs-package

Packaging files for grub-btrfs.

The debian/ directory holds everything needed to turn upstream grub-btrfs into a Debian package. The build runs dpkg-buildpackage from a directory where debian/ sits next to the upstream source, so the workflow below clones the source and overlays this repo's debian/ onto it.

Requirements

sudo apt install debhelper dpkg-dev fakeroot git devscripts

Build

./build.sh

build.sh clones upstream grub-btrfs into ./grub-btrfs (skipped when it already exists), exports the checked-out commit, overlays this repo's debian/, versions the changelog after that commit, and runs dpkg-buildpackage -us -uc -b. The .deb, .buildinfo, and .changes land in ./build/.

To build a newer commit, update the clone first:

git -C grub-btrfs pull --ff-only
./build.sh

ShadaOS customization

debian/rules bakes two settings into the packaged /etc/default/grub-btrfs/config (a dpkg conffile):

  • GRUB_BTRFS_TITLE_FORMAT=("date" "description") — snapshot menu titles lead with the date and description instead of the long timeshift-btrfs/snapshots/... path.
  • GRUB_BTRFS_SUBMENUNAME="ShadaOS Snapshots" — the snapshots submenu is named "ShadaOS Snapshots" instead of deriving it from /etc/os-release NAME= (still "Debian GNU/Linux" on ShadaOS).

Because the settings ship in the package, grub-btrfs upgrades handle them through dpkg's normal conffile mechanism — do not re-apply them with live-build hooks or raw seds.