Verified Commit 8ca02377 authored by dr460nf1r3's avatar dr460nf1r3 🐉
Browse files

Formatting

parent e31a1b28
# Maintainer: librewish <librewish@gmail.com>
pkgname=snapper-support
pkgver=0.1
pkgrel=3
pkgdesc='Support package for enabling snapper with snap-pac and grub-btrfs support'
pkgdesc='Support package for enabling Snapper with snap-pac and grub-btrfs support'
arch=(any)
url='https://gitlab.com/garuda-linux/packages/stable-pkgbuilds/snapper-support'
license=(GPL3)
depends=(snapper snap-pac grub-btrfs)
makedepends=(git)
conflicts=(timeshift-support timeshift timeshift-autosnap)
install="${pkgname}.install"
source=(git+https://gitlab.com/garuda-linux/packages/stable-pkgbuilds/snapper-support.git)
source=(git+$url.git)
sha256sums=('SKIP')
install=$pkgname.install
package()
{
# install the package files
cp -a ${srcdir}/${pkgname}/src/usr ${pkgdir}
package() {
cp -a ${srcdir}/${pkgname}/usr ${pkgdir}
}
#!/bin/bash
post_install() {
#change grub snapshot submenu name
# Change grub snapshot submenu name
sed -i /etc/default/grub-btrfs/config \
-e 's,.*GRUB_BTRFS_SUBMENUNAME=.*,GRUB_BTRFS_SUBMENUNAME=\"Garuda Linux snapshots\",'
if [[ $(/usr/bin/systemctl is-enabled grub-btrfs.path) == "enabled" ]]; then /usr/bin/systemctl disable --now grub-btrfs.path; fi
if [[ $(/usr/bin/systemctl is-enabled grub-btrfs.path) == "enabled" ]]; then
/usr/bin/systemctl disable --now grub-btrfs.path;
fi
echo "Enabling automatic rebuild of grub-btrfs when snapshots are taken"
/usr/bin/systemctl daemon-reload
/usr/bin/systemctl enable --now grub-btrfs-snapper.path
echo "Creating snapper config for root"
/usr/bin/snapper create-config /
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment