mkinitcpio: update to 39, adopt
This commit is contained in:
parent
6070bee24c
commit
635e02124f
@ -32,10 +32,10 @@
|
|||||||
#!/usr/bin/ash
|
#!/usr/bin/ash
|
||||||
|
|
||||||
run_earlyhook() {
|
run_earlyhook() {
|
||||||
|
local quiet
|
||||||
- kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf
|
- kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf
|
||||||
- systemd-tmpfiles --prefix=/dev --create --boot
|
- systemd-tmpfiles --prefix=/dev --create --boot
|
||||||
# assigned by parse_cmdline
|
quiet="$(getarg quiet)"
|
||||||
# shellcheck disable=SC2154
|
|
||||||
if [ "${quiet}" = "y" ]; then
|
if [ "${quiet}" = "y" ]; then
|
||||||
- /usr/lib/systemd/systemd-udevd --daemon --resolve-names=never >/dev/null 2>&1
|
- /usr/lib/systemd/systemd-udevd --daemon --resolve-names=never >/dev/null 2>&1
|
||||||
+ udevd --daemon --resolve-names=never >/dev/null 2>&1
|
+ udevd --daemon --resolve-names=never >/dev/null 2>&1
|
||||||
|
@ -1,39 +0,0 @@
|
|||||||
Because not all Void kernels may support zstd, change the default initramfs
|
|
||||||
compression to gzip.
|
|
||||||
|
|
||||||
diff -ur a/man/mkinitcpio.conf.5.adoc b/man/mkinitcpio.conf.5.adoc
|
|
||||||
--- a/man/mkinitcpio.conf.5.adoc
|
|
||||||
+++ b/man/mkinitcpio.conf.5.adoc
|
|
||||||
@@ -55,7 +55,7 @@
|
|
||||||
Defines a program to filter the generated image through. The kernel
|
|
||||||
understands the compression formats yielded by the *zstd*(1), *gzip*(1),
|
|
||||||
*bzip2*(1), *lz4*(1), *lzop*(1), *lzma*(1), and *xz*(1) compressors. If
|
|
||||||
- unspecified, this setting defaults to _zstd_ compression. In order to create
|
|
||||||
+ unspecified, this setting defaults to _gzip_ compression. In order to create
|
|
||||||
an uncompressed image, define this variable as _cat_.
|
|
||||||
+
|
|
||||||
It is not hard to realize that a filter such as a _tac_ or _rev_ will cause
|
|
||||||
diff -ur a/mkinitcpio b/mkinitcpio
|
|
||||||
--- a/mkinitcpio
|
|
||||||
+++ b/mkinitcpio
|
|
||||||
@@ -998,7 +998,7 @@
|
|
||||||
die "Unable to write to '%s'" "$_optgenimg"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- _optcompress="${_optcompress:-"${COMPRESSION:-zstd}"}"
|
|
||||||
+ _optcompress="${_optcompress:-"${COMPRESSION:-gzip}"}"
|
|
||||||
if ! type -P "$_optcompress" >/dev/null; then
|
|
||||||
warning "Unable to locate compression method: '%s'" "$_optcompress"
|
|
||||||
_optcompress='cat'
|
|
||||||
diff -ur a/mkinitcpio.conf b/mkinitcpio.conf
|
|
||||||
--- a/mkinitcpio.conf
|
|
||||||
+++ b/mkinitcpio.conf
|
|
||||||
@@ -55,7 +55,7 @@
|
|
||||||
HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block filesystems fsck)
|
|
||||||
|
|
||||||
# COMPRESSION
|
|
||||||
-# Use this to compress the initramfs image. By default, zstd compression
|
|
||||||
+# Use this to compress the initramfs image. By default, gzip compression
|
|
||||||
# is used. Use 'cat' to create an uncompressed image.
|
|
||||||
#COMPRESSION="zstd"
|
|
||||||
#COMPRESSION="gzip"
|
|
@ -17,7 +17,7 @@ Void adds a custom runscript and udev rules to work around missing systemd.
|
|||||||
# from thin-provisioning-tools
|
# from thin-provisioning-tools
|
||||||
add_binary 'pdata_tools'
|
add_binary 'pdata_tools'
|
||||||
while IFS='' read -r -d '' symlink; do
|
while IFS='' read -r -d '' symlink; do
|
||||||
@@ -31,19 +39,15 @@
|
@@ -39,18 +47,14 @@
|
||||||
'11-dm-lvm.rules' \
|
'11-dm-lvm.rules' \
|
||||||
'13-dm-disk.rules' \
|
'13-dm-disk.rules' \
|
||||||
'95-dm-notify.rules' \
|
'95-dm-notify.rules' \
|
||||||
@ -33,9 +33,8 @@ Void adds a custom runscript and udev rules to work around missing systemd.
|
|||||||
+ '/usr/lib/initcpio/udev/69-dm-lvm-metad.rules'
|
+ '/usr/lib/initcpio/udev/69-dm-lvm-metad.rules'
|
||||||
|
|
||||||
# config file
|
# config file
|
||||||
add_file '/etc/lvm/lvm.conf'
|
sed -e 's/^[[:space:]#]*monitoring = [[:digit:]]\+\s*$/\tmonitoring = 0/' \
|
||||||
sed -i -e 's/^[[:space:]#]*monitoring = [[:digit:]]\+\s*$/\tmonitoring = 0/' \
|
-e '/^$/d' -e '/^[[:space:]]*#/d' "/etc/lvm/lvm.conf" | add_file - '/etc/lvm/lvm.conf' 644
|
||||||
-e '/^$/d' -e '/^[[:space:]]*#/d' "${BUILDROOT}/etc/lvm/lvm.conf"
|
|
||||||
+
|
+
|
||||||
+ add_runscript
|
+ add_runscript
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
# Template file for 'mkinitcpio'
|
# Template file for 'mkinitcpio'
|
||||||
pkgname=mkinitcpio
|
pkgname=mkinitcpio
|
||||||
version=38.1
|
version=39
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
hostmakedepends="asciidoc"
|
hostmakedepends="asciidoc"
|
||||||
depends="busybox-static bsdtar bash zstd"
|
depends="busybox-static bsdtar bash zstd"
|
||||||
checkdepends="busybox-static bats-assert lz4 xz zstd lzop parallel"
|
checkdepends="busybox-static bats-assert lz4 xz zstd lzop parallel"
|
||||||
short_desc="Next generation of initramfs creation"
|
short_desc="Next generation of initramfs creation"
|
||||||
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
maintainer="classabbyamp <void@placeviolette.net>"
|
||||||
license="GPL-2.0-only"
|
license="GPL-2.0-only"
|
||||||
homepage="https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio"
|
homepage="https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio"
|
||||||
changelog="https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/raw/master/CHANGELOG"
|
changelog="https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/raw/master/CHANGELOG"
|
||||||
distfiles="https://sources.archlinux.org/other/${pkgname}/${pkgname}-${version}.tar.gz"
|
distfiles="https://sources.archlinux.org/other/${pkgname}/${pkgname}-${version}.tar.xz"
|
||||||
checksum=5c63525097a3c17bfb654dacea71ed7681c3102a3684d18c319d06e57007e1cd
|
checksum=d91cfe9f04f2fd71839ce2c73ed53083573ab7e80dde9dff52ca9fd68a14d5cd
|
||||||
conf_files="/etc/mkinitcpio.conf"
|
conf_files="/etc/mkinitcpio.conf"
|
||||||
alternatives="
|
alternatives="
|
||||||
initramfs:/etc/kernel.d/post-install/20-initramfs:/usr/libexec/mkinitcpio/kernel-hook-postinst
|
initramfs:/etc/kernel.d/post-install/20-initramfs:/usr/libexec/mkinitcpio/kernel-hook-postinst
|
||||||
@ -32,6 +32,9 @@ post_install() {
|
|||||||
rm -r ${DESTDIR}/usr/lib/initcpio/install/systemd
|
rm -r ${DESTDIR}/usr/lib/initcpio/install/systemd
|
||||||
rm -r ${DESTDIR}/usr/lib/tmpfiles.d
|
rm -r ${DESTDIR}/usr/lib/tmpfiles.d
|
||||||
|
|
||||||
|
# Remove patch remnants
|
||||||
|
rm "${DESTDIR}"/usr/lib/initcpio/{hooks,install}/*.orig
|
||||||
|
|
||||||
# Remove unneeded pacman hooks
|
# Remove unneeded pacman hooks
|
||||||
rm -rf ${DESTDIR}/usr/share/libalpm
|
rm -rf ${DESTDIR}/usr/share/libalpm
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user