Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grub-btrfs: update to 4.9. #30195

Merged
merged 1 commit into from
Apr 14, 2021
Merged

grub-btrfs: update to 4.9. #30195

merged 1 commit into from
Apr 14, 2021

Conversation

teldra
Copy link
Contributor

@teldra teldra commented Apr 13, 2021

General

Have the results of the proposed changes been tested?

  • I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me

Does it build and run successfully?

(Please choose at least one native build and, if supported, at least one cross build. More are better.)

  • I built this PR locally for my native architecture, (x86_64-GLIBC)
  • I built this PR locally for these architectures (if supported. mark crossbuilds):
    • aarch64-musl
    • armv7l
    • armv6l-musl

@teldra teldra changed the title grub-btrfs: patch for modular configs grub-btrfs: update to 4.9; patch for modular configs Apr 13, 2021
Copy link
Member

@ericonr ericonr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how I feel about the patch... I would also consider making the patch smaller by moving the files around in post_install.

@folliehiyuki and @anjandev , thoughts?

@folliehiyuki
Copy link
Contributor

folliehiyuki commented Apr 13, 2021

I agree with moving the file using post_install(). I would rather patch the source to reflect the new config path:

diff --git a/41_snapshots-btrfs b/41_snapshots-btrfs
index 2a1f215..ca71206 100755
--- a/41_snapshots-btrfs
+++ b/41_snapshots-btrfs
@@ -41,7 +41,7 @@ prefix="/usr"
 exec_prefix="/usr"
 datarootdir="/usr/share"
 sysconfdir="/etc"
-grub_btrfs_config="${sysconfdir}/default/grub-btrfs/config"
+grub_btrfs_config="${sysconfdir}/conf.d/grub-btrfs"
 
 [[ -f "$grub_btrfs_config" ]] && . "$grub_btrfs_config"
 . "$datarootdir/grub/grub-mkconfig_lib"
diff --git a/Makefile b/Makefile
index 6ffe8c1..12c760d 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,6 @@ install:
                exit 1; \
        fi
        @install -Dm755 -t "$(DESTDIR)/etc/grub.d/" 41_snapshots-btrfs
-       @install -Dm644 -t "$(DESTDIR)/etc/default/grub-btrfs/" config
        @install -Dm644 -t "$(LIB_DIR)/systemd/system/" grub-btrfs.service
        @install -Dm644 -t "$(LIB_DIR)/systemd/system/" grub-btrfs.path
        @install -Dm644 -t "$(SHARE_DIR)/licenses/$(PKGNAME)/" LICENSE
@@ -33,7 +32,6 @@ uninstall:
        fi
        @grub_dirname="$$(grep -oP '^[[:space:]]*GRUB_BTRFS_GRUB_DIRNAME=\K.*' "$(DESTDIR)/etc/default/grub-btrfs/config" | sed "s|\s*#.*||;s|(\s*\(.\+\)\s*)|\1|;s|['\"]||g")"; \
         rm -f "$${grub_dirname:-/boot/grub}/grub-btrfs.cfg"
-       @rm -f "$(DESTDIR)/etc/default/grub-btrfs/config"
        @rm -f "$(DESTDIR)/etc/grub.d/41_snapshots-btrfs"
        @rm -f "$(LIB_DIR)/systemd/system/grub-btrfs.service"
        @rm -f "$(LIB_DIR)/systemd/system/grub-btrfs.path"

and use /etc/conf.d/grub-btrfs (instead of grub-btrfs.cfg) so that it aligns with our naming scheme (as for snapper)
And maybe rename grub-btrfs-runit to runit-grub-btrfs for naming consistency (we have runit-iptables and runit-kdump for example)

@ericonr
Copy link
Member

ericonr commented Apr 13, 2021

All that said, I'd suggest talking this out with upstream; maybe they are open to officially supporting this setup. I don't like the thought of carrying patches forever :p

@teldra teldra changed the title grub-btrfs: update to 4.9; patch for modular configs grub-btrfs: update to 4.9. Apr 13, 2021
@teldra
Copy link
Contributor Author

teldra commented Apr 13, 2021

I have proposed changes upstream: Antynea/grub-btrfs#150 so I just update this for now.

@ericonr ericonr merged commit 12e3713 into void-linux:master Apr 14, 2021
@sgn
Copy link
Member

sgn commented Apr 14, 2021

Is this package built and tested? f01490c

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants