fix holoscript of mkinitcpio

This commit is contained in:
Daniel Langbein 2021-12-17 22:22:43 +01:00
parent 3893cf59c5
commit 6b31e615d7
4 changed files with 8 additions and 7 deletions

View File

@ -62,7 +62,7 @@ Example output:
* archwiki -> AMDGPU#AMDGPU_PRO * archwiki -> AMDGPU#AMDGPU_PRO
* archwiki -> AMDGPU_PRO * archwiki -> AMDGPU_PRO
The amdgpu-pro-installer contains proprietary components for The `amdgpu-pro-installer` contains proprietary components for
AMDGPU (it works on top of AMDGPU). AMDGPU (it works on top of AMDGPU).
Quote about the opengl part (from archwiki -> AMDGPU): Quote about the opengl part (from archwiki -> AMDGPU):

View File

@ -3,5 +3,7 @@
# stdout: modified config # stdout: modified config
set -e set -e
# add amdgpu to MODULES array # note: MODULES is also modified by de-p1st-mkinitcpio
# add to start of MODULES array
sed 's|^MODULES=(|MODULES=(amdgpu |' sed 's|^MODULES=(|MODULES=(amdgpu |'

View File

@ -2,7 +2,7 @@
_pkgname=mkinitcpio _pkgname=mkinitcpio
_reponame=arch _reponame=arch
pkgname="de-p1st-$_pkgname" pkgname="de-p1st-$_pkgname"
pkgver=0.0.11 pkgver=0.0.12
pkgrel=1 pkgrel=1
pkgdesc="mkinitcpio configuration" pkgdesc="mkinitcpio configuration"
arch=('any') arch=('any')

View File

@ -6,9 +6,6 @@ set -e
# save stdin in variable # save stdin in variable
stdin="$(cat)" stdin="$(cat)"
# assert MODULES is empty
echo "$stdin" | grep --quiet '^MODULES=()'
# assert HOOKS is as expected # assert HOOKS is as expected
echo "$stdin" | grep --quiet '^HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)' echo "$stdin" | grep --quiet '^HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)'
@ -18,7 +15,9 @@ echo "$stdin" | grep --quiet '^HOOKS=(base udev autodetect modconf block filesys
# assert lz4 COMPRESSION is uncommented # assert lz4 COMPRESSION is uncommented
echo "$stdin" | grep --quiet '^#COMPRESSION="lz4"' echo "$stdin" | grep --quiet '^#COMPRESSION="lz4"'
# 1) add to MODULES; 2 replace HOOKS; 3) uncomment lz4 COMPRESSION # note: MODULES is also modified by de-p1st-gpu-*
# 1) add to start of MODULES array; 2 replace HOOKS; 3) uncomment lz4 COMPRESSION
echo "$stdin" | sed ' echo "$stdin" | sed '
s|^MODULES=(|MODULES=(crc32c-intel |; s|^MODULES=(|MODULES=(crc32c-intel |;
s|^#COMPRESSION="lz4".*$|COMPRESSION="lz4"|; s|^#COMPRESSION="lz4".*$|COMPRESSION="lz4"|;