https://dracut.wiki.kernel.org/index.php/Main_Page
An event driven initramfs infrastructure
---
I am a bit new in the Alpine packaging business, so let me just note a
few things here:
- Dracut is an effort to create a distribution-agnostic initramfs
generator, it comes with plenty of modules. It is getting more and
more popular for building custom initramfs, and I think Alpine would
be a very interesting platform for this
- Not sure if you even accept new packages from non-maintainers? I'm
happy to help maintain this if a maintainer would adopt this
- This is in no way meant to replace mkinitfs, it's just about providing
the option of using dracut
- Simply installing the package and running `dracut` generated an
initramfs that successfully booted my system, so it actually works :)
- If it proves worthwhile, it might help with e.g.
https://gitlab.alpinelinux.org/alpine/aports/-/issues/12676
testing/dracut/APKBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 testing/dracut/APKBUILD
diff --git a/testing/dracut/APKBUILD b/testing/dracut/APKBUILD
new file mode 100644
index 0000000000..8172cef820
--- /dev/null
+++ b/testing/dracut/APKBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Conrad Hoffmann <ch@bitfehler.net>
+pkgname=dracut
+pkgver=056
+pkgrel=0
+pkgdesc="An event driven initramfs infrastructure"
+url="https://dracut.wiki.kernel.org/index.php/Main_Page"
+arch="all"
+license="GPL-2.0-or-later"
+depends="eudev"
+makedepends="fts-dev kmod-dev pkgconfig"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-bash-completion"
+source="https://mirrors.edge.kernel.org/pub/linux/utils/boot/dracut/dracut-$pkgver.tar.xz"
+
+build() {
+ ./configure --prefix="$pkgdir/usr" --sysconfdir="$pkgdir/etc"
+ CFLAGS="$CFLAGS -D__GLIBC_PREREQ=" make
+}
+
+bash_completion() {
+ amove usr/share/bash-completion
+}
+
+check() {
+ # There is a test suite, but it requires root/sudo:
+ #make check
+ :
+}
+
+package() {
+ make install
+}
+
+sha512sums="
+19268763e128984d20cab766bbdf2de12fe534ce2562fc688203099ef9b4cf83d0ccd2129499c70cdc6dd4ad53f0ffc2f3378eff5b8a15fda27c23b20f903df2 dracut-056.tar.xz
+"
--
2.36.1