From 2b4402e7de348ae4e30f1bf780dd773a76b43848 Mon Sep 17 00:00:00 2001 From: teldra Date: Tue, 13 Apr 2021 03:36:18 +0200 Subject: [PATCH] grub-btrfs: patch for modular configs --- srcpkgs/grub-btrfs/patches/config.patch | 13 +++++++++++++ srcpkgs/grub-btrfs/template | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/grub-btrfs/patches/config.patch diff --git a/srcpkgs/grub-btrfs/patches/config.patch b/srcpkgs/grub-btrfs/patches/config.patch new file mode 100644 index 000000000000..61fb9906ccfc --- /dev/null +++ b/srcpkgs/grub-btrfs/patches/config.patch @@ -0,0 +1,13 @@ +--- config.orig 2021-04-13 03:37:11.581669409 +0200 ++++ config 2021-04-13 03:38:23.549598497 +0200 +@@ -120,3 +120,10 @@ + # doesn't work if GRUB_BTRFS_PROTECTION_AUTHORIZED_USERS isn't empty + # Default: "false" + #GRUB_BTRFS_DISABLE_PROTECTION_SUBMENU="true" ++ ++if [ -d /etc/default/grub-btrfs/conf.d ]; then ++ for cfg in $(find /etc/default/grub-btrfs/conf.d -type f -name "*.conf"); do ++ . "${cfg}" ++ done ++fi ++ diff --git a/srcpkgs/grub-btrfs/template b/srcpkgs/grub-btrfs/template index 8c1a2f5954c9..ae7dd5973640 100644 --- a/srcpkgs/grub-btrfs/template +++ b/srcpkgs/grub-btrfs/template @@ -1,7 +1,7 @@ # Template file for 'grub-btrfs' pkgname=grub-btrfs version=4.8.1 -revision=1 +revision=2 build_style=gnu-makefile depends="grub bash" short_desc="Include btrfs snapshots at Grub menu"