mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
fix holoscript of mkinitcpio
This commit is contained in:
parent
3893cf59c5
commit
6b31e615d7
@ -62,7 +62,7 @@ Example output:
|
||||
* archwiki -> AMDGPU#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).
|
||||
|
||||
Quote about the opengl part (from archwiki -> AMDGPU):
|
||||
|
@ -3,5 +3,7 @@
|
||||
# stdout: modified config
|
||||
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 |'
|
||||
|
@ -2,7 +2,7 @@
|
||||
_pkgname=mkinitcpio
|
||||
_reponame=arch
|
||||
pkgname="de-p1st-$_pkgname"
|
||||
pkgver=0.0.11
|
||||
pkgver=0.0.12
|
||||
pkgrel=1
|
||||
pkgdesc="mkinitcpio configuration"
|
||||
arch=('any')
|
||||
|
@ -6,9 +6,6 @@ set -e
|
||||
# save stdin in variable
|
||||
stdin="$(cat)"
|
||||
|
||||
# assert MODULES is empty
|
||||
echo "$stdin" | grep --quiet '^MODULES=()'
|
||||
|
||||
# assert HOOKS is as expected
|
||||
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
|
||||
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 '
|
||||
s|^MODULES=(|MODULES=(crc32c-intel |;
|
||||
s|^#COMPRESSION="lz4".*$|COMPRESSION="lz4"|;
|
||||
|
Loading…
Reference in New Issue
Block a user