debian/0000755000000000000000000000000012125117700007162 5ustar debian/dracut.postinst0000644000000000000000000000054612125116417012262 0ustar #!/bin/sh set -e # check if any kernel is available # do not call dracut if no kernel was found if ls /boot/vmlinu[zx]-* >/dev/null 2>&1; then # Regenerate initramfs for all kernel that are installed for kversion in `ls /boot/vmlinu[zx]-* | sed -e 's#/boot/vmlinu.-##'`; do /etc/kernel/postinst.d/dracut $kversion done fi #DEBHELPER# debian/changelog0000644000000000000000000001412612125117623011044 0ustar dracut (027-1) unstable; urgency=low * new upstream * update copyright information -- Thomas Lange Thu, 28 Mar 2013 20:52:50 +0100 dracut (026+71+g78d1d4f-1) unstable; urgency=low * new upstream 026+71+g78d1d4f * add man pages * add bash completions * add cifs module to dracut-network * cleanup patches -- Thomas Lange Mon, 25 Mar 2013 14:03:36 +0100 dracut (020-2) unstable; urgency=low * use $kernel when calling modprobe: Closes: #685004 -- Thomas Lange Wed, 07 Nov 2012 17:55:07 +0100 dracut (020-1.1) unstable; urgency=medium * Non-maintainer upload by the Security Team. * Fixing CVE-2012-4453: Create the initramfs non-world readable (Closes: #688956). -- Luk Claes Sun, 04 Nov 2012 18:47:50 +0100 dracut (020-1) unstable; urgency=low * new upstream version * disable building of dracut-install executable, the package should remain architecture all for now * add qemu modules -- Thomas Lange Sat, 30 Jun 2012 17:24:54 +0200 dracut (019+39+gf48f934-1) unstable; urgency=high * sync to upstream, get important fix for missing libraries needed for nfs module * add nogroup to /etc/group inside the initrd * use /etc/ld.so.conf.d/ for creating list of library pathes -- Thomas Lange Tue, 19 Jun 2012 10:30:39 +0200 dracut (019+9+g521c57a-1) unstable; urgency=high * import some upstream patches which fixes the "pkg-config command not found" errors * postinst.d/dracut: create modules.dep if it not already exists -- Thomas Lange Tue, 12 Jun 2012 16:59:41 +0200 dracut (019+1+gd77540c-1) unstable; urgency=medium * new upstream * add build-depends Closes: #674326 * do not mount /dev/shm, Closes: #637286 -- Thomas Lange Mon, 04 Jun 2012 16:59:14 +0200 dracut (018+32+geb6e141-1) unstable; urgency=low * add Debian multiarch support * dracut.postinst: do not use uname -r for kernel version * control: add depends on kbd * postinst.d/dracut: use --libdirs for multiarch support -- Thomas Lange Thu, 26 Apr 2012 17:46:53 +0200 dracut (018-2) unstable; urgency=low * postinst.d/dracut: only execute if dracut command is available * postrm.d/dracut: fix file name -- Thomas Lange Thu, 19 Apr 2012 10:25:02 +0200 dracut (018-1) unstable; urgency=low * new upstream version * control: dracut now uses asciidoc, add conflicts on initramfs-tools * postinst.d/dracut: new file name for initrd * add 80cms modules to dracut-network -- Thomas Lange Wed, 18 Apr 2012 13:30:05 +0200 dracut (017-1) unstable; urgency=low * new upstream version * do not call dracut if no kernel was found, fix code Closes: #657754 * control: update to 3.9.3, no changes needed, add Build-depends * patches/aufs: aufs was always enabled, now aufs is only activated if the string aufs was given on the command line * control: update to Standards version 3.9.2, no changes needed, needs util-linux >= 2.20 * debian/patches, rules: add quilt support * add aufs patch * control: fix VCS fields * add url-lib, img-lib, ssh-client modules * add add dracut-initramfs-restore * add patch for missing rpc user and group * add patch for missing unimaps directory Closes: #637296 #661531 -- Thomas Lange Wed, 29 Feb 2012 20:15:50 +0100 dracut (013-5) unstable; urgency=high * do not call dracut if no kernel was found Closes: #657754 -- Thomas Lange Tue, 14 Feb 2012 10:32:02 +0100 dracut (013-4) unstable; urgency=low * patches/aufs: aufs was always enabled, now aufs is only activated if the string aufs was given on the command line -- Thomas Lange Sat, 11 Feb 2012 12:14:23 +0100 dracut (013-3) unstable; urgency=low * add aufs module, for booting a read-only nfsroot and make it writeable * control: fix VCS fields, update to Standards 3.9.2, no changes needed -- Thomas Lange Mon, 16 Jan 2012 12:32:30 +0100 dracut (013-2) unstable; urgency=low * control: add Build-Depends Closes: #642683 * control: add Depends on kpartx Closes: #636549 -- Thomas Lange Mon, 26 Sep 2011 17:49:46 +0200 dracut (013-1) unstable; urgency=low * new upstream version, Closes: #636549 * source/format: use 3.0 quilt format * control: fix Vcs-Browser Closes: #637305 * add dracut.postrm, dracut.logrotate Closes: #637306 * postrm.d,postinst.d: remove obsolete else part, Closes: #627023 * add missing dracut.kernel.7 * add fs-lib module to dracut * add livenet module to dracut-network * move znet and zfcp to dracut-network -- Thomas Lange Fri, 02 Sep 2011 11:51:41 +0200 dracut (011+36+gd727c5a-1) unstable; urgency=low * new upstream release Closes: #617893, #628190, #581092, #581091 * new maintainer * dracut.install,dracut.dirs: remove non-existing modules, add dracut.logger, lsinitrd and new modules * rules: use new debhelper, no more cdbs * control: new URL for git repository, update dependencies, update to standards 3.9.1, add URL for homepage * add file watch * copyright: move to machine readable format, fix URLs * compat: update to 8 * dracut.docs: add missing files, remove COPYING * postinst.d/dracut: add script that creates the initrd Closes: #627023 * postrm.d/dracut: add script that removes initrd Closes: #627023 -- Thomas Lange Wed, 03 Aug 2011 17:01:36 +0200 dracut (005-1) unstable; urgency=low * Version 005 * First dracut release to unstable. Closes: #558274 -- Philippe Seewer Fri, 9 May 2010 11:20:00 +0100 dracut (004-1) unreleased; urgency=low * Version 004 -- Philippe Seewer Fri, 5 Mar 2010 15:25:00 +0100 dracut (003-1) unreleased; urgency=low * Version 003 -- Philippe Seewer Fri, 27 Nov 2009 15:52:00 +0100 dracut (002-1) unreleased; urgency=low * Version 002 -- Philippe Seewer Fri, 27 Nov 2009 15:52:00 +0100 debian/dracut.postrm0000644000000000000000000000014612125116417011717 0ustar #! /bin/sh set -e case "$1" in purge) rm -f /var/log/dracut.log* ;; esac #DEBHELPER# exit 0 debian/dracut-network.install0000644000000000000000000000124212125116417013526 0ustar modules.d/40network usr/lib/dracut/modules.d modules.d/45url-lib usr/lib/dracut/modules.d modules.d/45ifcfg usr/lib/dracut/modules.d modules.d/80cms usr/lib/dracut/modules.d modules.d/90livenet usr/lib/dracut/modules.d modules.d/90aufs usr/lib/dracut/modules.d modules.d/90qemu-net usr/lib/dracut/modules.d modules.d/95cifs usr/lib/dracut/modules.d modules.d/95znet usr/lib/dracut/modules.d modules.d/95zfcp usr/lib/dracut/modules.d modules.d/95fcoe usr/lib/dracut/modules.d modules.d/95iscsi usr/lib/dracut/modules.d modules.d/95nbd usr/lib/dracut/modules.d modules.d/95nfs usr/lib/dracut/modules.d modules.d/95ssh-client usr/lib/dracut/modules.d debian/patches/0000755000000000000000000000000012125116417010615 5ustar debian/patches/nogroup0000644000000000000000000000135512125116417012235 0ustar Index: dracut/modules.d/95nfs/module-setup.sh =================================================================== --- dracut.orig/modules.d/95nfs/module-setup.sh 2012-06-15 23:29:43.895039587 +0200 +++ dracut/modules.d/95nfs/module-setup.sh 2012-06-15 23:30:43.319039032 +0200 @@ -69,8 +69,7 @@ egrep '^rpc:' /etc/passwd >> "$initdir/etc/passwd" egrep '^rpcuser:' /etc/passwd >> "$initdir/etc/passwd" #type -P nologin >/dev/null && dracut_install nologin - egrep '^nobody:' /etc/group >> "$initdir/etc/group" - egrep '^rpc:' /etc/group >> "$initdir/etc/group" + egrep '^nogroup:|^rpc|^nobody:' /etc/group >> "$initdir/etc/group" # rpc user needs to be able to write to this directory to save the warmstart # file debian/patches/aufs0000644000000000000000000000330212125116417011474 0ustar Index: dracut/modules.d/90aufs/aufs-mount.sh =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ dracut/modules.d/90aufs/aufs-mount.sh 2012-01-11 15:21:46.887432287 +0100 @@ -0,0 +1,39 @@ +#!/bin/sh + +# make a read-only nfsroot writeable by using aufs +# the nfsroot is already mounted to $NEWROOT +# add the parameter aufs to the kernel, to activate this feature + +# TODO: hande the /run directory, which is not yet available in Debian squeeze + +. /lib/dracut-lib.sh + +aufs=$(getargs aufs) + +if [ -z "$aufs" ] ; then + return +fi + +modprobe aufs + +# a little bit tuning +mount -o remount,nolock,noatime $NEWROOT + +mkdir -p /live/image +mount --move $NEWROOT /live/image + +mkdir /cow +mount -n -t tmpfs tmpfs /cow + +mount -t aufs -o noatime,noxino,dirs=/cow=rw:/live/image=rr aufs $NEWROOT + +mkdir -p $NEWROOT/live/cow +mkdir -p $NEWROOT/live/image +mount --move /cow $NEWROOT/live/cow +mount --move /live/image $NEWROOT/live/image + +# aufs2 in kernel versions around 2.6.33 has a regression: +# directories can't be accessed when read for the first the time, +# causing a failure for example when accessing /var/lib/fai +# when booting FAI, this simple workaround solves it +ls $NEWROOT/* >/dev/null 2>&1 Index: dracut/modules.d/90aufs/module-setup.sh =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ dracut/modules.d/90aufs/module-setup.sh 2012-01-11 15:21:32.172432922 +0100 @@ -0,0 +1,12 @@ +#!/bin/bash + +depends() { + # We depend on nfs modules being loaded + echo nfs + return 0 +} + +install() { + + inst_hook pre-pivot 10 "$moddir/aufs-mount.sh" +} debian/patches/series0000644000000000000000000000007112125116417012030 0ustar makefile nogroup dev-shm-mount no-unimaps-directory aufs debian/patches/makefile0000644000000000000000000000070112125116417012313 0ustar Index: dracut/Makefile =================================================================== --- dracut.orig/Makefile 2013-02-01 15:23:16.072974664 +0100 +++ dracut/Makefile 2013-02-06 16:41:34.089974388 +0100 @@ -35,7 +35,7 @@ .PHONY: install clean archive rpm testimage test all check AUTHORS doc -all: syncheck dracut-version.sh dracut-install +all: syncheck dracut-version.sh DRACUT_INSTALL_OBJECTS = \ install/dracut-install.o \ debian/patches/dev-shm-mount0000644000000000000000000000121212125116417013237 0ustar Index: dracut/modules.d/99base/init.sh =================================================================== --- dracut.orig/modules.d/99base/init.sh 2013-03-27 13:41:43.000000000 +0100 +++ dracut/modules.d/99base/init.sh 2013-03-28 19:36:07.063834041 +0100 @@ -66,11 +66,6 @@ mount -t devpts -o gid=5,mode=620,noexec,nosuid devpts /dev/pts >/dev/null fi -if ! ismounted /dev/shm; then - mkdir -m 0755 /dev/shm - mount -t tmpfs -o mode=1777,nosuid,nodev,strictatime tmpfs /dev/shm >/dev/null -fi - if ! ismounted /run; then mkdir -m 0755 /newrun mount -t tmpfs -o mode=0755,nosuid,nodev,strictatime tmpfs /newrun >/dev/null debian/patches/no-unimaps-directory0000644000000000000000000000111512125116417014626 0ustar Index: dracut/modules.d/10i18n/module-setup.sh =================================================================== --- dracut.orig/modules.d/10i18n/module-setup.sh 2013-03-27 13:41:43.000000000 +0100 +++ dracut/modules.d/10i18n/module-setup.sh 2013-03-28 19:36:46.123833771 +0100 @@ -13,7 +13,7 @@ install() { dracut_install -o $systemdutildir/systemd-vconsole-setup - KBDSUBDIRS=consolefonts,consoletrans,keymaps,unimaps + KBDSUBDIRS=consolefonts,consoletrans,keymaps DEFAULT_FONT=LatArCyrHeb-16 I18N_CONF="/etc/locale.conf" VCONFIG_CONF="/etc/vconsole.conf" debian/dracut.dirs0000644000000000000000000000147412125116417011341 0ustar usr/lib/dracut usr/lib/dracut/modules.d/00dash usr/lib/dracut/modules.d/01fips usr/lib/dracut/modules.d/02fips-aesni usr/lib/dracut/modules.d/90crypt usr/lib/dracut/modules.d/90dm usr/lib/dracut/modules.d/90dmraid usr/lib/dracut/modules.d/90kernel-modules usr/lib/dracut/modules.d/90lvm usr/lib/dracut/modules.d/90mdraid usr/lib/dracut/modules.d/90multipath usr/lib/dracut/modules.d/95dasd usr/lib/dracut/modules.d/95dasd_mod usr/lib/dracut/modules.d/95debug usr/lib/dracut/modules.d/95resume usr/lib/dracut/modules.d/95rootfs-block usr/lib/dracut/modules.d/95terminfo usr/lib/dracut/modules.d/95udev-rules usr/lib/dracut/modules.d/98syslog usr/lib/dracut/modules.d/98usrmount usr/lib/dracut/modules.d/99base /var/lib/dracut /etc/dracut.conf.d /etc/bash_completion.d /etc/kernel/postinst.d /etc/kernel/postrm.d /etc/logrotate.d debian/dracut.logrotate0000644000000000000000000000012212125116417012365 0ustar /var/log/dracut.log { rotate 12 monthly compress missingok notifempty } debian/dracut.manpages0000644000000000000000000000012212125116417012160 0ustar dracut.8 dracut.conf.5 dracut.cmdline.7 dracut-catimages.8 lsinitrd.1 mkinitrd.8 debian/rules0000755000000000000000000000013112125116417010241 0ustar #!/usr/bin/make -f export DH_VERBOSE=1 %: dh $@ --with quilt override_dh_auto_test: debian/watch0000644000000000000000000000043612125116417010222 0ustar # # Watchfile for rinse. # # # uscan version number - not the version of the software. # version=3 # # The link to the download location, followed by the regular expression # to match release tarballs. # http://www.kernel.org/pub/linux/utils/boot/dracut/dracut-([\d]+)\.tar\.bz2 debian/copyright0000644000000000000000000000265312125116417011127 0ustar Format: Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: dracut Upstream-contact: Harald Hoyer Source: http://www.kernel.org/pub/linux/utils/boot/dracut/ Copyright: 2009, Harald Hoyer License: GPL-2+ Files: debian/* Copyright: 2009, Philippe Seewer License: GPL-2+ Files: debian/* Copyright: 2011-2013 Thomas Lange License: GPL-2+ Files: install/hashmap.* install/log.* install/macro.h install/util.* Copyright: 2010 Lennart Poettering License: LGPL 2.1+ License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/compat0000644000000000000000000000000212125116417010364 0ustar 8 debian/kernel/0000755000000000000000000000000012125116417010446 5ustar debian/kernel/postrm.d/0000755000000000000000000000000012125116417012214 5ustar debian/kernel/postrm.d/dracut0000755000000000000000000000072312125116417013426 0ustar #!/bin/sh version="$1" bootopt="" # passing the kernel version is required [ -z "${version}" ] && exit 0 # kernel-package passes an extra arg if [ -n "$2" ]; then if [ -n "${KERNEL_PACKAGE_VERSION}" ]; then bootdir=$(dirname "$2") fi fi # avoid running multiple times if [ -n "$DEB_MAINT_PARAMS" ]; then eval set -- "$DEB_MAINT_PARAMS" if [ -z "$1" ] || [ "$1" != "remove" ]; then exit 0 fi fi # delete initramfs rm -f "$bootdir/initrd.img-${version}" debian/kernel/postinst.d/0000755000000000000000000000000012125116417012553 5ustar debian/kernel/postinst.d/dracut0000755000000000000000000000222212125116417013761 0ustar #!/bin/sh version="$1" bootopt="" [ -x /usr/bin/dracut ] || exit 0 # passing the kernel version is required [ -z "${version}" ] && exit 0 # kernel-package passes an extra arg if [ -n "$2" ]; then if [ -n "${KERNEL_PACKAGE_VERSION}" ]; then # exit if custom kernel does not need an initramfs [ "$INITRD" = 'No' ] && exit 0 bootdir=$(dirname "$2") fi fi # avoid running multiple times if [ -n "$DEB_MAINT_PARAMS" ]; then eval set -- "$DEB_MAINT_PARAMS" if [ -z "$1" ] || [ "$1" != "configure" ]; then exit 0 fi fi if [ -z "$bootdir" ]; then bootdir=/boot fi # check if modules.dep already exists. If not create it # maybe this problem could also be solved via Debian triggers if [ ! -f $bootdir/../lib/modules/$version/modules.dep ]; then depmod -a -F $bootdir/System.map-$version $version fi multiarchlibs="/lib /usr/lib" # add multicarch lib pathes multiarchlibs="$multiarchlibs $(sed 's/#.*//' /etc/ld.so.conf.d/*-linux-gnu.conf 2>/dev/null| tr '\n' ' ')" # we're good - create initramfs echo "dracut: Generating $bootdir/initrd.img-${version}" dracut -q --libdirs="$multiarchlibs" --force $bootdir/initrd.img-${version} "${version}" >&2 debian/dracut.docs0000644000000000000000000000013112125116417011315 0ustar AUTHORS HACKING NEWS README README.generic README.kernel README.modules TODO dracut.html debian/dracut.triggers0000644000000000000000000000003212125116417012213 0ustar interest update-initramfs debian/dracut-network.dirs0000644000000000000000000000044512125116417013025 0ustar usr/lib/dracut/modules.d/40network usr/lib/dracut/modules.d/90livenet usr/lib/dracut/modules.d/90aufs usr/lib/dracut/modules.d/95fcoe usr/lib/dracut/modules.d/95iscsi usr/lib/dracut/modules.d/95nbd usr/lib/dracut/modules.d/95nfs usr/lib/dracut/modules.d/95znet usr/lib/dracut/modules.d/95zfcp debian/control0000644000000000000000000000403612125116417010574 0ustar Source: dracut Section: utils Priority: optional Maintainer: Thomas Lange Build-Depends: debhelper, asciidoc, xsltproc, docbook-xsl, quilt Standards-Version: 3.9.3 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/dracut.git Vcs-Git: git://git.debian.org/collab-maint/dracut.git Homepage: http://www.kernel.org/pub/linux/utils/boot/dracut/dracut.html Package: dracut Architecture: all Recommends: cryptsetup, dmsetup, dmraid, lvm2, mdadm Suggests: dracut-network Depends: cpio, module-init-tools, udev, kpartx, kbd, util-linux (>= 2.20), ${misc:Depends} Provides: linux-initramfs-tool Conflicts: initramfs-tools 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-network. Package: dracut-network Architecture: all Recommends: nfs-common, open-iscsi, nbd-client Depends: dracut, iputils-arping, isc-dhcp-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-network. debian/dracut.install0000644000000000000000000000360012125116417012037 0ustar usr/bin/dracut usr/bin/dracut-catimages usr/lib/dracut/dracut-functions usr/lib/dracut/dracut-functions.sh usr/lib/dracut/dracut-logger.sh usr/lib/dracut/dracut-initramfs-restore usr/bin/lsinitrd usr/share/bash-completion/completions/dracut etc/bash_completion.d etc/dracut.conf etc debian/kernel etc modules.d/00dash usr/lib/dracut/modules.d modules.d/01fips usr/lib/dracut/modules.d modules.d/02fips-aesni usr/lib/dracut/modules.d modules.d/02caps usr/lib/dracut/modules.d modules.d/05busybox usr/lib/dracut/modules.d modules.d/10i18n usr/lib/dracut/modules.d modules.d/90btrfs usr/lib/dracut/modules.d modules.d/90crypt usr/lib/dracut/modules.d modules.d/90dm usr/lib/dracut/modules.d modules.d/90dmraid usr/lib/dracut/modules.d modules.d/90dmsquash-live usr/lib/dracut/modules.d modules.d/90kernel-modules usr/lib/dracut/modules.d modules.d/90lvm usr/lib/dracut/modules.d modules.d/90mdraid usr/lib/dracut/modules.d modules.d/90multipath usr/lib/dracut/modules.d modules.d/90qemu usr/lib/dracut/modules.d modules.d/91crypt-gpg usr/lib/dracut/modules.d modules.d/91crypt-loop usr/lib/dracut/modules.d modules.d/95debug usr/lib/dracut/modules.d modules.d/95resume usr/lib/dracut/modules.d modules.d/95rootfs-block usr/lib/dracut/modules.d modules.d/95dasd_mod usr/lib/dracut/modules.d modules.d/95dasd usr/lib/dracut/modules.d modules.d/95fstab-sys usr/lib/dracut/modules.d modules.d/95terminfo usr/lib/dracut/modules.d modules.d/95udev-rules usr/lib/dracut/modules.d modules.d/97biosdevname usr/lib/dracut/modules.d modules.d/98selinux usr/lib/dracut/modules.d modules.d/98syslog usr/lib/dracut/modules.d modules.d/98usrmount usr/lib/dracut/modules.d modules.d/99base usr/lib/dracut/modules.d modules.d/99shutdown usr/lib/dracut/modules.d modules.d/99fs-lib usr/lib/dracut/modules.d modules.d/99img-lib usr/lib/dracut/modules.d debian/source/0000755000000000000000000000000012125116417010466 5ustar debian/source/format0000644000000000000000000000001412125116417011674 0ustar 3.0 (quilt)