grub-btrfs: update to 4.14
In addition to the version update, this commit switches the custom runit snapshot service to use the package's shipped grub-btrfsd. The dedicated daemon provides better error handling and easier compatibility with timeshift.
This commit is contained in:
committed by
classabbyamp
parent
5be5f000ff
commit
5800e490af
@@ -3,10 +3,5 @@
|
||||
exec 2>&1
|
||||
[ -r conf ] && . ./conf
|
||||
|
||||
if [ -d "${SNAPSHOTS_PATH}" ]
|
||||
then
|
||||
exec wendy ${OPTS} -m 960 -w "${SNAPSHOTS_PATH}" sh -c \
|
||||
'if [ -s "/boot/grub/grub-btrfs.cfg" ]; then /etc/grub.d/41_snapshots-btrfs; else update-grub; fi'
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
exec grub-btrfsd ${GRUB_BTRFSD_OPTS} "${SNAPSHOTS_PATH}"
|
||||
|
||||
|
||||
@@ -1,25 +1,24 @@
|
||||
# Template file for 'grub-btrfs'
|
||||
pkgname=grub-btrfs
|
||||
version=4.13
|
||||
version=4.14
|
||||
revision=1
|
||||
build_style=gnu-makefile
|
||||
depends="grub bash"
|
||||
conf_files="/etc/sv/grub-btrfs/conf"
|
||||
depends="grub bash inotify-tools"
|
||||
short_desc="Include btrfs snapshots at Grub menu"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="GPL-3.0-or-later"
|
||||
homepage="https://github.com/Antynea/grub-btrfs"
|
||||
distfiles="https://github.com/Antynea/grub-btrfs/archive/${version}.tar.gz"
|
||||
checksum=c493d0d5a6548c01993641ce586c98d461cabe40df4dff79d974d0c59068ff1d
|
||||
distfiles="https://github.com/Antynea/grub-btrfs/archive/v${version}.tar.gz"
|
||||
checksum=4fe2f8a49b39e3e561fc51bbc5a0f81a7222c1e9ef8672e014e0ba3bedad20c6
|
||||
|
||||
post_install() {
|
||||
rm -rf -- "${DESTDIR}"/usr/lib/systemd
|
||||
vsv grub-btrfs
|
||||
}
|
||||
|
||||
grub-btrfs-runit_package() {
|
||||
depends="wendy ${sourcepkg}>=${version}_${revision}"
|
||||
short_desc+=" - runit service"
|
||||
|
||||
pkg_install() {
|
||||
vsv grub-btrfs
|
||||
}
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
short_desc+=" (transitional dummy package)"
|
||||
metapackage=yes
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user