Received: from mx.bitfehler.net (mx.bitfehler.net [138.201.162.180]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 43645780DE5 for <~alpine/aports@lists.alpinelinux.org>; Wed, 1 Jun 2022 15:09:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bitfehler.net; s=default; t=1654095786; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=p9D9NJS0pcCyWL51JnBiGCjGBWBTLlusDH2ykDFlTbc=; b=PDPDe9tJG2PrSOqrY2tnKVuGX7eyvvvSSwQxNumNE/jk6x5XdAz8qzpFemNJYxdrZ/pUl9 nYTszsvsYgO9OmrdhVGdGJYFH1rYjaGxv8ljlENVZvy9nG7bU01CgdYDG0F9dhbIMVn60N mVsgis1KXEVqZOi9VDi6lam9v58ZwMw9+aHfKktryh1X8QxPW56+CfiKd6QtMohLbWgTh8 jmke5h3IJX15rPgeoqRQ66YFg8+2aw8fmQr9HirGlIglvJtSF3MRnB/vt37Wh0uAVRsIvZ uHHYXm0nsiKtW1vaDgDyJ+82aV4V4NiqRlpmjQQxB4cPTTmt1yx1ozka5oXzFA== Received: from localhost.localdomain (dynamic-089-204-139-110.89.204.139.pool.telefonica.de [89.204.139.110]) by mx (OpenSMTPD) with ESMTPSA id b21b4cb5 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <~alpine/aports@lists.alpinelinux.org>; Wed, 1 Jun 2022 15:03:06 +0000 (UTC) From: Conrad Hoffmann To: ~alpine/aports@lists.alpinelinux.org Subject: [PATCH] testing/dracut: new aport Date: Wed, 1 Jun 2022 17:03:04 +0200 Message-Id: <20220601150304.1290768-1-ch@bitfehler.net> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 +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