From 42123e758b92af3fe748843f20aad6cb6885f419 Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Thu, 15 Sep 2016 04:07:04 +0100 Subject: dracut revision --- core/ports/dracut/.footprint | 1 + core/ports/dracut/.md5sum | 1 + core/ports/dracut/Pkgfile | 12 +++++++----- core/ports/dracut/dracut.conf | 16 ++++++++++++++++ 4 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 core/ports/dracut/dracut.conf (limited to 'core') diff --git a/core/ports/dracut/.footprint b/core/ports/dracut/.footprint index 618f48b..58184f1 100644 --- a/core/ports/dracut/.footprint +++ b/core/ports/dracut/.footprint @@ -1,3 +1,4 @@ +-rw-r--r-- root/root etc drwxr-xr-x root/root usr/ drwxr-xr-x root/root usr/bin/ -rwxr-xr-x root/root usr/bin/dracut diff --git a/core/ports/dracut/.md5sum b/core/ports/dracut/.md5sum index 697b388..1f9a4b9 100644 --- a/core/ports/dracut/.md5sum +++ b/core/ports/dracut/.md5sum @@ -1,2 +1,3 @@ 1788290da8c01d9410a01a0e1c2cc6c6 README fbb8b6aea24c2f7d328021bbf11788fd dracut-044.tar.xz +87076921f72fe891b4a904ea45b2728e dracut.conf diff --git a/core/ports/dracut/Pkgfile b/core/ports/dracut/Pkgfile index a55531e..f9be5fd 100644 --- a/core/ports/dracut/Pkgfile +++ b/core/ports/dracut/Pkgfile @@ -1,13 +1,13 @@ # Description: dracut is an event driven initramfs infrastructure. # URL: https://dracut.wiki.kernel.org/ # Packager: Silvino, silvino at bk dot ru -# Depends on: grub2 nbd nfs-utils lvm2 mdadm +# Depends on: cryptsetup nbd nfs-utils lvm2 mdadm name=dracut version=044 -release=4 +release=2 source=(https://www.kernel.org/pub/linux/utils/boot/$name/$name-$version.tar.xz -README) +dracut.conf README) build() { cd $name-$version @@ -16,8 +16,10 @@ build() { make make DESTDIR=$PKG install + + install -m 0644 -D $SRC/dracut.conf $PKG/etc + mv $PKG/usr/share/man $PKG/usr/ - cd $PKG - find . -name "README" | xargs rm + find $PKG -name "README" | xargs rm } diff --git a/core/ports/dracut/dracut.conf b/core/ports/dracut/dracut.conf new file mode 100644 index 0000000..a216be7 --- /dev/null +++ b/core/ports/dracut/dracut.conf @@ -0,0 +1,16 @@ +# PUT YOUR CONFIG IN separate files +# in /etc/dracut.conf.d named ".conf" + +# Equivalent to -H +hostonly="yes" + +# Equivalent to -m "module module module" +dracutmodules+="dash kernel-modules rootfs-block udev-rules usrmount base fs-lib shutdown" + +# Equivalent to -a "module" +add_dracutmodules+="caps debug" + +# Equivalent to -o "module" +#omit_dracutmodules+="systemd systemd-bootchart systemd-networkd systemd-initrd" + +# SEE man dracut.conf(5) for options -- cgit 1.4.1-2-gfad0