diff options
author | Cyano Hao | 2021-05-22 21:24:30 +0800 |
---|---|---|
committer | Cyano Hao | 2021-05-22 21:24:30 +0800 |
commit | e89a71876bbed01d0c536ead5589d73eb1a7d132 (patch) | |
tree | eba6d8dc65c92b5ef0c1a2d20cd302181eb46844 | |
parent | 23eef6b655444101d67dfd6b84e0a201018c33b8 (diff) | |
download | aur-e89a71876bbed01d0c536ead5589d73eb1a7d132.tar.gz |
add mkinitcpio preset to override zstd compression
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 8 | ||||
-rw-r--r-- | linux-el.install | 2 | ||||
-rw-r--r-- | linux-elbin.preset | 17 |
4 files changed, 27 insertions, 5 deletions
@@ -1,7 +1,7 @@ pkgbase = linux-el-bin pkgdesc = The Enterprise Linux kernel, modules and headers (Rocky Linux binary) pkgver = 240.22.1 - pkgrel = 1 + pkgrel = 2 epoch = 8 url = https://www.kernel.org/ install = linux-el.install @@ -11,12 +11,15 @@ pkgbase = linux-el-bin depends = kmod depends = initramfs options = !strip + backup = etc/mkinitcpio.d/linux-elbin.preset source = https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/Packages/kernel-core-4.18.0-240.22.1.el8.x86_64.rpm source = https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/Packages/kernel-modules-4.18.0-240.22.1.el8.x86_64.rpm source = https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/Packages/kernel-devel-4.18.0-240.22.1.el8.x86_64.rpm + source = linux-elbin.preset sha256sums = bba3049faaee909ba055f495012a49cb885db357048e967a41d79aa1d5822465 sha256sums = 6360d8c98d127b00b2b7b6bc28b14f5b738642f699909a5e660161066a437f23 sha256sums = 8791ee1dc248f4ec347f2b254bf1c39e7e8a71c4a61b3996dd0c989c3acbe098 + sha256sums = dcb7f4f352395287152bb6a3469171d9199b1e000bab9f244e17db893cff70d9 pkgname = linux-el-bin @@ -5,7 +5,7 @@ pkgname=linux-el-bin _basever=4.18.0 pkgver=240.22.1 epoch=8 # indicates RHEL major version -pkgrel=1 +pkgrel=2 # pkgdesc="The Enterprise Linux kernel, modules, headers and documentation (pre-built binary)" pkgdesc="The Enterprise Linux kernel, modules and headers (Rocky Linux binary)" url="https://www.kernel.org/" @@ -13,6 +13,7 @@ arch=(x86_64) license=(GPL2) depends=(coreutils kmod initramfs) options=('!strip') +backup=("etc/mkinitcpio.d/$_pkgbase.preset") install=linux-el.install # corresponding packages (rhel -> archlinux) @@ -32,13 +33,16 @@ source=( "$_rocky_mirror/$epoch/BaseOS/x86_64/os/Packages/kernel-modules-$_rpmver.x86_64.rpm" "$_rocky_mirror/$epoch/BaseOS/x86_64/os/Packages/kernel-devel-$_rpmver.x86_64.rpm" # "$_rocky_mirror/$epoch/BaseOS/x86_64/os/Packages/kernel-doc-$_rpmver.noarch.rpm" + "$_pkgbase.preset" ) sha256sums=('bba3049faaee909ba055f495012a49cb885db357048e967a41d79aa1d5822465' '6360d8c98d127b00b2b7b6bc28b14f5b738642f699909a5e660161066a437f23' - '8791ee1dc248f4ec347f2b254bf1c39e7e8a71c4a61b3996dd0c989c3acbe098') + '8791ee1dc248f4ec347f2b254bf1c39e7e8a71c4a61b3996dd0c989c3acbe098' + 'dcb7f4f352395287152bb6a3469171d9199b1e000bab9f244e17db893cff70d9') package() { cd "$srcdir" + install -Dm644 $_pkgbase.preset "$pkgdir"/etc/mkinitcpio.d/$_pkgbase.preset # kernel image and modules install -m755 -d "$pkgdir"/usr/lib/modules/ diff --git a/linux-el.install b/linux-el.install index 73629f2d03f2..6aefe33288a1 100644 --- a/linux-el.install +++ b/linux-el.install @@ -6,6 +6,4 @@ post_install() { echo ' Check Red Hat’s documentation for details.' echo ' https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/managing_file_systems/overview-of-available-file-systems_managing-file-systems' echo - echo ' Zstandard-compressed initramfs is not supported. Use GZip or XZ instead.' - echo } diff --git a/linux-elbin.preset b/linux-elbin.preset new file mode 100644 index 000000000000..3bdf186a10b1 --- /dev/null +++ b/linux-elbin.preset @@ -0,0 +1,17 @@ +# mkinitcpio preset file for the 'linux-elbin' package + +ALL_config="/etc/mkinitcpio.conf" +ALL_kver="/boot/vmlinuz-linux-elbin" + +# Enterprise Linux does not support Zstandard-compressed +export COMPRESSION="xz" + +PRESETS=('default' 'fallback') + +#default_config="/etc/mkinitcpio.conf" +default_image="/boot/initramfs-linux-elbin.img" +#default_options="" + +#fallback_config="/etc/mkinitcpio.conf" +fallback_image="/boot/initramfs-linux-elbin-fallback.img" +fallback_options="-S autodetect" |