grub-btrfs: update to 4.8.1
Added a service file to auto-update grub menu on changes in /.snapshots directory
This commit is contained in:
parent
ee33341eda
commit
f278c4eb46
|
@ -0,0 +1 @@
|
||||||
|
grub-btrfs
|
|
@ -0,0 +1 @@
|
||||||
|
SNAPSHOTS_PATH=/.snapshots
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec vlogger -t grub-btrfs
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
exec 2>&1
|
||||||
|
[ -r conf ] && . ./conf
|
||||||
|
|
||||||
|
if [ -d "${SNAPSHOTS_PATH}" ]
|
||||||
|
then
|
||||||
|
exec wendy ${OPTS} -m 960 -w "${SNAPSHOTS_PATH}" bash -c \
|
||||||
|
'if [ -s "/boot/grub/grub-btrfs.cfg" ]; then /etc/grub.d/41_snapshots-btrfs; else update-grub; fi'
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'grub-btrfs'
|
# Template file for 'grub-btrfs'
|
||||||
pkgname=grub-btrfs
|
pkgname=grub-btrfs
|
||||||
version=4.8
|
version=4.8.1
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
depends="grub bash"
|
depends="grub bash"
|
||||||
|
@ -9,8 +9,17 @@ maintainer="Anjandev Momi <anjan@momi.ca>"
|
||||||
license="GPL-3.0-or-later"
|
license="GPL-3.0-or-later"
|
||||||
homepage="https://github.com/Antynea/grub-btrfs"
|
homepage="https://github.com/Antynea/grub-btrfs"
|
||||||
distfiles="https://github.com/Antynea/grub-btrfs/archive/v${version}.tar.gz"
|
distfiles="https://github.com/Antynea/grub-btrfs/archive/v${version}.tar.gz"
|
||||||
checksum=78ba3c0e5c998317785d07409c6aaebb269fad1fe97794c95a0842f012676794
|
checksum=a0092e705adc91fbb73804327abe68002fa705ea7a4948bb21467134c7f69830
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
rm -rf -- "${DESTDIR}"/usr/lib/systemd
|
rm -rf -- "${DESTDIR}"/usr/lib/systemd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
grub-btrfs-runit_package() {
|
||||||
|
depends="wendy ${sourcepkg}>=${version}_${revision}"
|
||||||
|
short_desc+=" - runit service"
|
||||||
|
|
||||||
|
pkg_install() {
|
||||||
|
vsv grub-btrfs
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue