parent
eddba4333c
commit
7def67b23c
5 changed files with 69 additions and 30 deletions
|
@ -1,17 +1,31 @@
|
||||||
|
The shutdown binary is actually provided by runit and expects the runit
|
||||||
|
init to be running. This is not the case in the initramfs. Forcing the
|
||||||
|
shutdown, halt or reboot is necessary to ignore this requirement.
|
||||||
|
|
||||||
|
---
|
||||||
|
modules.d/99base/dracut-lib.sh | 6 +++---
|
||||||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
|
||||||
--- a/modules.d/99base/dracut-lib.sh
|
--- a/modules.d/99base/dracut-lib.sh
|
||||||
+++ b/modules.d/99base/dracut-lib.sh
|
+++ b/modules.d/99base/dracut-lib.sh
|
||||||
@@ -1128,11 +1128,11 @@
|
@@ -1004,13 +1004,13 @@ emergency_shell() {
|
||||||
|
|
||||||
case "$_emergency_action" in
|
case "$_emergency_action" in
|
||||||
reboot)
|
reboot)
|
||||||
- reboot || exit 1;;
|
- reboot || exit 1
|
||||||
+ reboot -f || exit 1;;
|
+ reboot -f || exit 1
|
||||||
|
;;
|
||||||
poweroff)
|
poweroff)
|
||||||
- poweroff || exit 1;;
|
- poweroff || exit 1
|
||||||
+ poweroff -f || exit 1;;
|
+ poweroff -f || exit 1
|
||||||
|
;;
|
||||||
halt)
|
halt)
|
||||||
- halt || exit 1;;
|
- halt || exit 1
|
||||||
+ halt -f || exit 1;;
|
+ halt -f || exit 1
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
--
|
||||||
|
2.37.3
|
||||||
|
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
The depmod program from kmod>=30 looks for modules.builtin.modinfo and throws a
|
|
||||||
warning when it isn't found. Newer versions of dracut pull in this file as well
|
|
||||||
as modules.builtin.alias, so let's pull this in here and avoid the warning.
|
|
||||||
|
|
||||||
--- a/dracut-init.sh
|
|
||||||
+++ b/dracut-init.sh
|
|
||||||
@@ -982,7 +982,7 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
dracut_kernel_post() {
|
|
||||||
- for _f in modules.builtin.bin modules.builtin modules.order; do
|
|
||||||
+ for _f in modules.builtin.{bin,alias,modinfo} modules.builtin modules.order; do
|
|
||||||
[[ -e $srcmods/$_f ]] && inst_simple "$srcmods/$_f" "/lib/modules/$kernel/$_f"
|
|
||||||
done
|
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
For musl libc it is required to include <sys/reg.h> to
|
For musl libc it is required to include <sys/reg.h> to
|
||||||
have __WORDSIZE defined to e.g. 32 for arm*-musl.
|
have __WORDSIZE defined to e.g. 32 for arm*-musl.
|
||||||
|
|
||||||
--- a/install/util.h 2015-06-15 12:27:21.000000000 +0200
|
---
|
||||||
+++ b/install/util.h 2015-09-02 09:07:57.321104222 +0200
|
src/install/util.h | 3 +++
|
||||||
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
|
--- a/src/install/util.h
|
||||||
|
+++ b/src/install/util.h
|
||||||
@@ -33,6 +33,9 @@
|
@@ -33,6 +33,9 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
|
@ -13,3 +17,6 @@ have __WORDSIZE defined to e.g. 32 for arm*-musl.
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
|
--
|
||||||
|
2.37.3
|
||||||
|
|
||||||
|
|
34
srcpkgs/dracut/patches/musl-support.patch
Normal file
34
srcpkgs/dracut/patches/musl-support.patch
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
From ce55a85ed5d902c19d75895508856f96ec2ceb1a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Laszlo Gombos <laszlo.gombos@gmail.com>
|
||||||
|
Date: Sun, 20 Feb 2022 22:23:49 -0500
|
||||||
|
Subject: [PATCH] fix(install): restore musl support
|
||||||
|
|
||||||
|
__GLIBC_PREREQ is only defined in glibc.
|
||||||
|
---
|
||||||
|
src/install/util.c | 4 +---
|
||||||
|
1 file changed, 1 insertion(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/install/util.c b/src/install/util.c
|
||||||
|
index 5721de89e..0af387c27 100644
|
||||||
|
--- a/src/install/util.c
|
||||||
|
+++ b/src/install/util.c
|
||||||
|
@@ -24,17 +24,15 @@
|
||||||
|
#include <errno.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
+#include <sys/syscall.h>
|
||||||
|
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
|
-#if __GLIBC_PREREQ(2, 30) == 0
|
||||||
|
-#include <sys/syscall.h>
|
||||||
|
#ifndef SYS_gettid
|
||||||
|
#error "SYS_gettid unavailable on this system"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define gettid() ((pid_t) syscall(SYS_gettid))
|
||||||
|
-#endif /*__GLIBC_PREREQ */
|
||||||
|
|
||||||
|
size_t page_size(void)
|
||||||
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'dracut'
|
# Template file for 'dracut'
|
||||||
pkgname=dracut
|
pkgname=dracut
|
||||||
version=053
|
version=056
|
||||||
revision=4
|
revision=1
|
||||||
build_style=configure
|
build_style=configure
|
||||||
configure_args="--prefix=/usr --sysconfdir=/etc"
|
configure_args="--prefix=/usr --sysconfdir=/etc"
|
||||||
conf_files="/etc/dracut.conf"
|
conf_files="/etc/dracut.conf"
|
||||||
|
@ -13,14 +13,13 @@ maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="GPL-2.0-or-later, LGPL-2.0-or-later"
|
license="GPL-2.0-or-later, LGPL-2.0-or-later"
|
||||||
homepage="http://www.kernel.org/pub/linux/utils/boot/dracut/dracut.html"
|
homepage="http://www.kernel.org/pub/linux/utils/boot/dracut/dracut.html"
|
||||||
distfiles="${KERNEL_SITE}/utils/boot/dracut/dracut-${version}.tar.xz"
|
distfiles="${KERNEL_SITE}/utils/boot/dracut/dracut-${version}.tar.xz"
|
||||||
checksum=d5a1b47cdb07919d8225d5b5f538e6ae604988f3df0afbde99a8dc775277b726
|
checksum=e025bbdce9d1209640fb3f5f674f059c7e1f441537ba421703fe56055502421d
|
||||||
alternatives="
|
alternatives="
|
||||||
initramfs:/etc/kernel.d/post-install/20-initramfs:/usr/libexec/dracut/kernel-hook-postinst
|
initramfs:/etc/kernel.d/post-install/20-initramfs:/usr/libexec/dracut/kernel-hook-postinst
|
||||||
initramfs:/etc/kernel.d/post-remove/20-initramfs:/usr/libexec/dracut/kernel-hook-postrm
|
initramfs:/etc/kernel.d/post-remove/20-initramfs:/usr/libexec/dracut/kernel-hook-postrm
|
||||||
"
|
"
|
||||||
subpackages="dracut-network"
|
subpackages="dracut-network"
|
||||||
# Checks require distfiles come from a git repository
|
make_check=no # tests require root
|
||||||
make_check=no
|
|
||||||
|
|
||||||
make_dirs="
|
make_dirs="
|
||||||
/etc/dracut.conf.d 0755 root root
|
/etc/dracut.conf.d 0755 root root
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue