Skip to contentSkip to conversation

dracut-update-initramfs and debian control files

RFC PATCH New Philippe Seewer 1 participant 1 message Nov 6, 2009

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 dracut-update-initramfs and debian control files

Hello all!

Before filing a WTP to get dracut inside debian unstable I'd like your comments on my work if possible. The patch below contains all necessary control files to build dracut debian packages. (Written and tested on debian unstable.)

A few comments:
- I've split dracut into two parts: The dracut package for booting from block devices and dracut-net for netroot.
- I've deliberately left out all redhat specific modules, they do not make any sense on debian at all
- dracut-update-initramfs is a copy from initramfs-tools' update-initramfs, with just a few lines modified to run dracut instead of mkinitramfs.
- Lintian complains about a few things but these are easily fixed and will be done before filing a WTP

Thanks all,
Philippe

---

debian/changelog          |   11 debian/compat             |    1 debian/control            |   40 +++
debian/dracut-net.dirs    |    5 debian/dracut-net.install |    5 debian/dracut.dirs        |   21 +
debian/dracut.docs        |    4 debian/dracut.install     |   24 +
debian/dracut.manpages    |    1 debian/dracut.postinst    |    8 debian/dracut.triggers    |    1 debian/rules              |    3 dracut-update-initramfs   |  558 ++++++++++++++++++++++++++++++++++++++++++++++
13 files changed, 682 insertions(+)
debian/changelog new file +11 -0
new file mode 100644
index 0000000..b601d92
@@ -0,0 +1,11 @@
+dracut (2.21) unstable; urgency=low
+
+  [ Harald Hoyer ]
+  * fix rd_DASD argument handling (bug #531720)
+  * Resolves: rhbz#531720
+
+  [ Philippe Seewer ]
+  * Added dracut-update-initramfs for debian compatibility
+  * Debian control files: first attempt
+	
+ -- Philippe Seewer <[email protected]>  Fri, 06 Nov 2009 15:52:00 +0100
debian/compat new file +1 -0
new file mode 100644
index 0000000..7ed6ff8
@@ -0,0 +1 @@
+5
debian/control new file +38 -0
new file mode 100644
index 0000000..926fdc3
@@ -0,0 +1,40 @@
+Source: dracut
+Section: utils
+Priority: optional
+Maintainer: Philippe Seewer <[email protected]>
+Build-Depends: debhelper (>= 5.0), cdbs
+Standards-Version: 3.8.3
+Vcs-Browser: http://dracut.git.sourceforge.net/git/gitweb-index.cgi
+Vcs-Git: git://dracut.git.sourceforge.net/gitroot/dracut/dracut
+
+Package: dracut
+Architecture: all
+Recommends: cryptsetup, dmsetup, dmraid, lvm2, mdadm
+Depends: bash, coreutils, cpio, dash, diffutils, awk, grep, gzip, module-init-tools, udev, ${misc:Depends}
+Provides: linux-initramfs-tool
+Description: A new initramfs infrastructure
+ Unlike existing initramfs's, this is an attempt at having as little as
+ possible hard-coded into the initramfs as possible.  The initramfs has
+ (basically) one purpose in life -- getting the rootfs mounted so that
+ we can transition to the real rootfs.  This is all driven off of
+ device availability.  Therefore, instead of scripts hard-coded to do
+ various things, we depend on udev to create device nodes for us and
+ then when we have the rootfs's device node, we mount and carry on. + Having the root on MD, LVM2, LUKS is supported as well as NFS, iSCSI,
+ NBD and FCOE with dracut-net.
+
+Package: dracut-net
+Architecture: all
+Recommends: nfs-common, open-iscsi, nbd-client
+Depends: dracut, iputils-arping, dhcp3-client, ${misc:Depends}
+Description: A new initramfs infrastucture
+ Unlike existing initramfs's, this is an attempt at having as little as
+ possible hard-coded into the initramfs as possible.  The initramfs has
+ (basically) one purpose in life -- getting the rootfs mounted so that
+ we can transition to the real rootfs.  This is all driven off of
+ device availability.  Therefore, instead of scripts hard-coded to do
+ various things, we depend on udev to create device nodes for us and
+ then when we have the rootfs's device node, we mount and carry on. + Having the root on MD, LVM2, LUKS is supported as well as NFS, iSCSI,
+ NBD and FCOE with dracut-net.
+
debian/dracut-net.dirs new file +5 -0
new file mode 100644
index 0000000..44f96fb
@@ -0,0 +1,5 @@
+usr/share/dracut/modules.d/40network
+usr/share/dracut/modules.d/95fcoe
+usr/share/dracut/modules.d/95iscsi
+usr/share/dracut/modules.d/95nbd
+usr/share/dracut/modules.d/95nfs
debian/dracut-net.install new file +5 -0
new file mode 100644
index 0000000..dd11096
@@ -0,0 +1,5 @@
+modules.d/40network	usr/share/dracut/modules.d
+modules.d/95fcoe	usr/share/dracut/modules.d
+modules.d/95iscsi	usr/share/dracut/modules.d
+modules.d/95nbd		usr/share/dracut/modules.d
+modules.d/95nfs		usr/share/dracut/modules.d
debian/dracut.dirs new file +21 -0
new file mode 100644
index 0000000..54eeae3
@@ -0,0 +1,21 @@
+usr/share/dracut
+usr/share/dracut/modules.d/00dash
+usr/share/dracut/modules.d/90crypt
+usr/share/dracut/modules.d/90dm
+usr/share/dracut/modules.d/90dmraid
+usr/share/dracut/modules.d/90dmsquash-live
+usr/share/dracut/modules.d/90kernel-modules
+usr/share/dracut/modules.d/90lvm
+usr/share/dracut/modules.d/90mdraid
+usr/share/dracut/modules.d/95debug
+usr/share/dracut/modules.d/95resume
+usr/share/dracut/modules.d/95rootfs-block
+usr/share/dracut/modules.d/95dasd
+usr/share/dracut/modules.d/95dasd_mod
+usr/share/dracut/modules.d/95zfcp
+usr/share/dracut/modules.d/95ccw
+usr/share/dracut/modules.d/95terminfo
+usr/share/dracut/modules.d/95udev-rules
+usr/share/dracut/modules.d/98syslog
+usr/share/dracut/modules.d/99base
+/var/lib/dracut
debian/dracut.docs new file +4 -0
new file mode 100644
index 0000000..883ffc9
@@ -0,0 +1,4 @@
+HACKING
+README.generic
+README.kernel
+README.modules
debian/dracut.install new file +24 -0
new file mode 100644
index 0000000..69dc586
@@ -0,0 +1,24 @@
+dracut			usr/sbin
+dracut-catimages	usr/sbin
+dracut-update-initramfs	usr/sbin
+dracut-functions	usr/share/dracut
+dracut.conf		etc
+modules.d/00dash		usr/share/dracut/modules.d
+modules.d/90crypt		usr/share/dracut/modules.d
+modules.d/90dm			usr/share/dracut/modules.d
+modules.d/90dmraid		usr/share/dracut/modules.d
+modules.d/90dmsquash-live	usr/share/dracut/modules.d
+modules.d/90kernel-modules	usr/share/dracut/modules.d
+modules.d/90lvm			usr/share/dracut/modules.d
+modules.d/90mdraid		usr/share/dracut/modules.d
+modules.d/95debug		usr/share/dracut/modules.d
+modules.d/95resume		usr/share/dracut/modules.d
+modules.d/95rootfs-block	usr/share/dracut/modules.d
+modules.d/95dasd		usr/share/dracut/modules.d
+modules.d/95dasd_mod		usr/share/dracut/modules.d
+modules.d/95zfcp		usr/share/dracut/modules.d
+modules.d/95ccw			usr/share/dracut/modules.d
+modules.d/95terminfo		usr/share/dracut/modules.d
+modules.d/95udev-rules		usr/share/dracut/modules.d
+modules.d/98syslog		usr/share/dracut/modules.d
+modules.d/99base		usr/share/dracut/modules.d
debian/dracut.manpages new file +1 -0
new file mode 100644
index 0000000..69aa1e9
@@ -0,0 +1 @@
+dracut.8
debian/dracut.postinst new file +8 -0
new file mode 100644
index 0000000..f2f61ed
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+# Regenerate initramfs when we're `installed`
+DPKG_MAINTSCRIPT_PACKAGE='' dracut-update-initramfs -u
+
+#DEBHELPER#
debian/dracut.triggers new file +1 -0
new file mode 100644
index 0000000..860c664
@@ -0,0 +1 @@
+interest update-initramfs
debian/rules new file +3 -0
new file mode 100755
index 0000000..e6192f6
@@ -0,0 +1,3 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
dracut-update-initramfs new file +558 -0

558 lines not on this page · raw message