about summary refs log tree commit diff stats
path: root/core/ports/dracut
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2016-09-15 04:07:04 +0100
committerSilvino Silva <silvino@bk.ru>2016-09-15 04:07:04 +0100
commit42123e758b92af3fe748843f20aad6cb6885f419 (patch)
tree1034cba0afc1bd893445164a58864ccb01944b88 /core/ports/dracut
parent91d229b5e4491451b6f728f644faee993f8c79c8 (diff)
downloaddoc-42123e758b92af3fe748843f20aad6cb6885f419.tar.gz
dracut revision
Diffstat (limited to 'core/ports/dracut')
-rw-r--r--core/ports/dracut/.footprint1
-rw-r--r--core/ports/dracut/.md5sum1
-rw-r--r--core/ports/dracut/Pkgfile12
-rw-r--r--core/ports/dracut/dracut.conf16
4 files changed, 25 insertions, 5 deletions
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 "<name>.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