diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2020-07-20 00:45:49 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2020-07-20 00:45:49 +0000 |
commit | 462a350678cbee57e9baa25152bc7de7379f4962 (patch) | |
tree | 340106b9e56368f5c7447e30d7e979268557480e /system/easy-boot/APKBUILD | |
parent | 3e0ffda88c14c8e19ba72c0135ee049c0fa375c8 (diff) | |
parent | 77a32d089abcb5f43da122e4b97575e671213457 (diff) | |
download | packages-462a350678cbee57e9baa25152bc7de7379f4962.tar.gz packages-462a350678cbee57e9baa25152bc7de7379f4962.tar.bz2 packages-462a350678cbee57e9baa25152bc7de7379f4962.tar.xz packages-462a350678cbee57e9baa25152bc7de7379f4962.zip |
Merge branch 'new/easy-boot' into 'master'
Adjust existing boot-related triggers and add one for dracut
See merge request adelie/packages!485
Diffstat (limited to 'system/easy-boot/APKBUILD')
-rw-r--r-- | system/easy-boot/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/system/easy-boot/APKBUILD b/system/easy-boot/APKBUILD new file mode 100644 index 000000000..e8189164c --- /dev/null +++ b/system/easy-boot/APKBUILD @@ -0,0 +1,45 @@ +# Maintainer: Max Rees <maxcrees@me.com> +pkgname=easy-boot +pkgver=1.0 +pkgrel=0 +pkgdesc="APK trigger to automatically update boot configuration" +url="https://www.adelielinux.org/" +arch="noarch" +options="!check" # No test suite. +license="NCSA" +depends="/bin/sh" +makedepends="" +subpackages="no-boot:none" +provides="kernel-boot" +provider_priority=10 +triggers="$pkgname.trigger=/boot" +source="update-boot" + +package() { + install -Dm755 "$srcdir"/update-boot \ + "$pkgdir"/usr/sbin/update-boot + + mkdir -p "$pkgdir"/etc/easy-boot.d + cat >"$pkgdir"/etc/easy-boot.d/README <<-EOF + This directory contains hooks that will be executed when the files + in /boot are upgraded, in particular the kernel from easy-kernel. + Each hook will be executed in collation order. The current numbering + conventions are: + + 20 - initramfs generation + 50 - bootloader configuration + + To completely disable this mechanism, install the "no-boot" package. + + The hooks can be re-run manually using the "update-boot" command. + EOF +} + +none() { + pkgdesc="Disable boot configuration from automatically updating" + depends="" + provides="kernel-boot" + provider_priority=1 + mkdir -p "$subpkgdir" +} +sha512sums="7436693956df66bebeef20937f210c889d109ba85456d4cd3c115d00e4c68f3f5b51dbaa1859a729c2599b344e21d45c484fe278c43c7c59bb04a4159e9b6577 update-boot" |