- Shell 100%
| debian | ||
| .gitignore | ||
| build.sh | ||
| README.md | ||
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 longtimeshift-btrfs/snapshots/...path.GRUB_BTRFS_SUBMENUNAME="ShadaOS Snapshots"— the snapshots submenu is named "ShadaOS Snapshots" instead of deriving it from/etc/os-releaseNAME=(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.