[kernel] r6873 - in dists/trunk/utils/initramfs-tools: . conf docs hooks scripts scripts/init-bottom scripts/init-premount scripts/init-top scripts/local-bottom scripts/local-premount scripts/local-top scripts/nfs-bottom scripts/nfs-premount scripts/nfs-top

Bastian Blank waldi at costa.debian.org
Fri Jun 23 16:40:51 UTC 2006


Author: waldi
Date: Fri Jun 23 16:40:49 2006
New Revision: 6873

Added:
   dists/trunk/utils/initramfs-tools/HACKING
   dists/trunk/utils/initramfs-tools/break.txt   (contents, props changed)
   dists/trunk/utils/initramfs-tools/conf/
   dists/trunk/utils/initramfs-tools/conf/initramfs.conf
   dists/trunk/utils/initramfs-tools/conf/modules
   dists/trunk/utils/initramfs-tools/debian/
   dists/trunk/utils/initramfs-tools/debian/NEWS
   dists/trunk/utils/initramfs-tools/debian/README
   dists/trunk/utils/initramfs-tools/debian/TODO
   dists/trunk/utils/initramfs-tools/debian/bug   (contents, props changed)
   dists/trunk/utils/initramfs-tools/debian/changelog
   dists/trunk/utils/initramfs-tools/debian/compat
   dists/trunk/utils/initramfs-tools/debian/control
   dists/trunk/utils/initramfs-tools/debian/copyright
   dists/trunk/utils/initramfs-tools/debian/initramfs-tools.dirs
   dists/trunk/utils/initramfs-tools/debian/initramfs-tools.docs
   dists/trunk/utils/initramfs-tools/debian/initramfs-tools.examples
   dists/trunk/utils/initramfs-tools/debian/initramfs-tools.install
   dists/trunk/utils/initramfs-tools/debian/initramfs-tools.manpages
   dists/trunk/utils/initramfs-tools/debian/initramfs-tools.postinst
   dists/trunk/utils/initramfs-tools/debian/initramfs-tools.postrm
   dists/trunk/utils/initramfs-tools/debian/initramfs-tools.preinst
   dists/trunk/utils/initramfs-tools/debian/rules   (contents, props changed)
   dists/trunk/utils/initramfs-tools/docs/
   dists/trunk/utils/initramfs-tools/docs/example_hook
   dists/trunk/utils/initramfs-tools/docs/example_hook_cpiogz
   dists/trunk/utils/initramfs-tools/docs/example_script
   dists/trunk/utils/initramfs-tools/foo
   dists/trunk/utils/initramfs-tools/hook-functions
   dists/trunk/utils/initramfs-tools/hooks/
   dists/trunk/utils/initramfs-tools/hooks/kernelextras   (contents, props changed)
   dists/trunk/utils/initramfs-tools/hooks/lvm   (contents, props changed)
   dists/trunk/utils/initramfs-tools/hooks/md   (contents, props changed)
   dists/trunk/utils/initramfs-tools/hooks/thermal   (contents, props changed)
   dists/trunk/utils/initramfs-tools/init   (contents, props changed)
   dists/trunk/utils/initramfs-tools/initramfs-tools.8
   dists/trunk/utils/initramfs-tools/initramfs.conf.5
   dists/trunk/utils/initramfs-tools/mkinitramfs   (contents, props changed)
   dists/trunk/utils/initramfs-tools/mkinitramfs-kpkg   (contents, props changed)
   dists/trunk/utils/initramfs-tools/mkinitramfs-kpkg.8
   dists/trunk/utils/initramfs-tools/mkinitramfs.8
   dists/trunk/utils/initramfs-tools/scripts/
   dists/trunk/utils/initramfs-tools/scripts/functions
   dists/trunk/utils/initramfs-tools/scripts/init-bottom/
   dists/trunk/utils/initramfs-tools/scripts/init-premount/
   dists/trunk/utils/initramfs-tools/scripts/init-premount/thermal   (contents, props changed)
   dists/trunk/utils/initramfs-tools/scripts/init-top/
   dists/trunk/utils/initramfs-tools/scripts/local
   dists/trunk/utils/initramfs-tools/scripts/local-bottom/
   dists/trunk/utils/initramfs-tools/scripts/local-premount/
   dists/trunk/utils/initramfs-tools/scripts/local-premount/suspend   (contents, props changed)
   dists/trunk/utils/initramfs-tools/scripts/local-top/
   dists/trunk/utils/initramfs-tools/scripts/local-top/lvm   (contents, props changed)
   dists/trunk/utils/initramfs-tools/scripts/local-top/md   (contents, props changed)
   dists/trunk/utils/initramfs-tools/scripts/local-top/udev_helper   (contents, props changed)
   dists/trunk/utils/initramfs-tools/scripts/nfs
   dists/trunk/utils/initramfs-tools/scripts/nfs-bottom/
   dists/trunk/utils/initramfs-tools/scripts/nfs-premount/
   dists/trunk/utils/initramfs-tools/scripts/nfs-top/
   dists/trunk/utils/initramfs-tools/update-initramfs   (contents, props changed)
   dists/trunk/utils/initramfs-tools/update-initramfs.8
Removed:
   dists/trunk/utils/initramfs-tools/README

Log:
Import initramfs-tools 0.64.


Added: dists/trunk/utils/initramfs-tools/HACKING
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/HACKING	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,19 @@
+> I am not sure how to modify mkinitramfs to do this automatically, maybe you know?
+
+I need to document this more clearly, but the initramfs-tools have a collection of hooks that will solve your problem.  While there's no way that Breezy could do this in the install, we could certainly include the scripts in the package (Especially if you're willing to test them to make sure they work! *g*)
+
+There are two phases that need to be accounted for.  The first is the install phase for generating the initramfs, the second is run-time phase for actually doing the needed magic.
+
+To install the components you need, look at the scripts in /usr/share/initramfs-tools/hooks.  evms and acpid are good choices.  You can see a bunch of header stuff at the top that basically guarantees that things are run in the right order if they need to be.  Two functions that will interest you:
+
+copy_exec copies a binary and any libraries it depends on
+manual_add_modules takes bareword module names (like fan, thermal, etc) and installs those modules and any of their dependancies into the initramfs.
+
+The runtime phase is handled by scripts in /usr/share/initramfs-tools/scripts/ you probably want to start up at about the same point as lvm, md, and evms do, so local-top is a good directory to look in.
+You can see the same sort of magic at the top of the script, although lvm and evms each require that md run first.
+
+I hope this helps.  I'll paste this text into a HACKING file on the hopes that someone will see fit to improve it.  That person will probably be me, mind you... =)
+
+Tks,
+Jeff Bailey
+

Added: dists/trunk/utils/initramfs-tools/break.txt
==============================================================================
Binary file. No diff available.

Added: dists/trunk/utils/initramfs-tools/conf/initramfs.conf
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/conf/initramfs.conf	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,56 @@
+#
+# initramfs.conf
+# Configuration file for mkinitramfs(8). See initramfs.conf(5).
+#
+
+#
+# MODULES: [ most | netboot | dep | list ]
+#
+# most - Add all framebuffer, acpi, filesystem, and harddrive drivers.
+#
+# dep - Try and guess which modules to load.
+#
+# netboot - Add the base modules, network modules, but skip block devices.
+#
+# list - Only include modules from the 'additional modules' list
+#
+
+MODULES=most
+
+#
+# RESUME: [ /dev/hda2 | /dev/sdb2 ]
+# 
+# optional - set the swap partition to resume from.
+# "cat /proc/swaps | egrep ^/dev" should show possible candidates.
+# The command line of your boot loader will override this setting.
+
+#RESUME=
+
+#
+# NFS Section of the config.
+#
+
+#
+# BOOT: [ local | nfs ]
+#
+# local - Boot off of local media (harddrive, USB stick).
+#
+# nfs - Boot using an NFS drive as the root of the drive.
+#
+
+BOOT=local
+
+#
+# DEVICE: ...
+#
+# Specify the network interface, like eth0
+#
+
+DEVICE=eth0
+
+#
+# NFSROOT: [ auto | HOST:MOUNT ]
+#
+
+NFSROOT=auto
+

Added: dists/trunk/utils/initramfs-tools/conf/modules
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/conf/modules	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,9 @@
+# List of modules that you want to include in your initramfs.
+#
+# Syntax:  module_name [args ...]
+#
+#
+# This might be good choices:
+#
+# raid1
+# sd_mod

Added: dists/trunk/utils/initramfs-tools/debian/NEWS
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/debian/NEWS	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,26 @@
+initramfs-tools (0.61) unstable; urgency=low
+
+  * This release moves the initramfs-tools confdir from /etc/mkinitramfs to
+    /etc/initramfs-tools. Packages are encouraged to ship files as scripts
+    under /usr/share/initramfs-tools.
+
+    Local tests behaved fine, but be warned that this could potentially
+    cause boot troubles on upgrade.
+
+ -- maximilian attems <maks at sternwelten.at>  Wed, 21 Jun 2006 09:16:01 +0200
+
+initramfs-tools (0.10) breezy; urgency=low
+
+  * This release includes hardware auto detection in the initramfs.
+    This means two things in particular that are important:
+
+    1) the resulting initramfs will be huge.  Like 10 megs huge.
+       I will shrink it down once it's correct.  If you're on an 
+       arch that doesn't like >4mb initramfs', then this won't boot.
+
+    2) Your network drivers are loaded in the initramfs, so hotplug
+       won't see a network event, so ifup won't be run.  This will
+       be fixed shortly in hotplug.
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Fri, 17 Jun 2005 15:17:06 +0000
+

Added: dists/trunk/utils/initramfs-tools/debian/README
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/debian/README	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,12 @@
+initramfs-tools
+===============
+
+This package is a work in progress towards the replacement of the initrd
+system with an initramfs system.
+
+The goals include using klibc for all earlyspace tools, an integrated udev
+and an integrated hotplug.
+
+See the TODO file for a current status.
+
+Jeff Bailey - 2005-04-24

Added: dists/trunk/utils/initramfs-tools/debian/TODO
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/debian/TODO	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,14 @@
+TODO
+====
+
+ o Grep for TODO and FIXME and do those. =)
+
+ o Eliminate ?udev?, ?klibc?, busybox (-> glibc).
+
+ o Support list and dep options
+
+ o Default to dep for PPC - Possibly to detect newworld?
+
+ o lilo timeouts handling
+
+ o mdadm + lvm2 hooks to their respective packages

Added: dists/trunk/utils/initramfs-tools/debian/bug
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/debian/bug	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+exec >&3
+
+echo "-- /proc/cmdline"
+cat /proc/cmdline
+echo
+
+echo "-- /proc/filesystems"
+grep -v nodev /proc/filesystems
+echo
+
+echo "-- lsmod"
+lsmod
+echo

Added: dists/trunk/utils/initramfs-tools/debian/changelog
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/debian/changelog	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,1455 @@
+initramfs-tools (0.64) unstable; urgency=low
+
+  RELEASE o bella, ciao! bella, ciao!
+
+  * debian/initramfs-tools.install: Add /etc/initramfs-tools/modules conffile,
+    instead of a cp from postinstall. (closes: #368043)
+
+  * debian/control, update-initramfs.8, mkinitramfs.8: Capitalize RAM + NFS.
+    Rephrase nfs root support.
+
+    Thanks to Jeff Bailey <jbailey at raspberryginger.com> and
+    Steinar H. Gunderson <sesse at debian.org> for the review.
+
+ -- maximilian attems <maks at sternwelten.at>  Thu, 22 Jun 2006 20:45:59 +0200
+
+initramfs-tools (0.63) unstable; urgency=low
+
+  * init: Use redirection '>' for touching /dev/.initramfs-tools.
+
+  * debian/control, update-initramfs.8, mkinitramfs.8:
+    s/an (cpio archive)/a gzipped \1/.
+    Thanks to Andy Somerville <andy.somerville at gmail.com>.
+
+ -- maximilian attems <maks at sternwelten.at>  Thu, 22 Jun 2006 01:11:17 +0200
+
+initramfs-tools (0.62) unstable; urgency=low
+
+  * debian/control: We need at least udev 0.086-1, since earlier versions
+    had hooks, which don't load ide-disk automatically for 2.6.15 kernels.
+    Can't lower dependency to sarge version as it has no coldplug support
+    to escape udev dependency loop on upgrade. (closes: #358360, #362816)
+
+  * hook-functions: Add arcmsr to the scsi modules list.
+
+  * debian/NEWS: Add Notice about confdir mv as version 0.61.
+
+ -- maximilian attems <maks at sternwelten.at>  Wed, 21 Jun 2006 09:22:23 +0200
+
+initramfs-tools (0.61) unstable; urgency=low
+
+  Release "O partigiano portami via"
+
+  * debian/TODO: update to latest state.
+
+  * debian/bug: Fix reportbug script shebang line, add some descriptive echos.
+    Use exec to open file descriptor 3 for reportbug.
+
+  * debian/control: Pump to 3.7.2 standard version without changes.
+
+  * init: Use 10M as tmpfs_size for the udev /dev, that can be overriden in
+    /etc/udev/udev.conf. (closes: #352434)
+
+  * /etc/initramfs-tools: Use the much more intituive conf dir location.
+    Thanks for the idea to Andres Salomon <dilinger at debian.org>.
+
+  * debian/initramfs-tools.preinst: mv /etc/mkinitramfs /etc/initramfs-tools
+    on upgrade as this should work even with drive space issues.
+    Thanks to Jeff Bailey <jbailey at raspberryginger.com> for the posix atomic
+    mv hint and Daniel Blaschke <blaschke at hep.itp.tuwien.ac.at> for testing.
+
+  * mkinitramfs: Set CONFDIR to /etc/initramfs-tools.
+
+  * mkinitramfs.8, initramfs-tools.8: Document the new pathes.
+
+  * debian/control: Change Build-depends-indep to Build-depends as we need
+    debhelper and cdbs for the clean target, fulfills policy 7.6.
+
+  * debian/initramfs-tools.preinst: Warn and bail out if /etc/initramfs-tools
+    already exists.
+
+ -- maximilian attems <maks at sternwelten.at>  Thu, 18 May 2006 17:27:44 +0200
+
+initramfs-tools (0.60) unstable; urgency=low
+
+  "E ho trovato l'invasor"
+
+  * scripts/functions: Allow boot scripts to modify exported boot parameters.
+    Thanks David Härdeman <david at 2gen.com> for the patch. (closes: 348147)
+    This allows the inclusion of cryptoroot hooks to cryptsetup!
+
+  * init: add cryptopts parsing and export.
+
+  * init: Move parse_numeric down to the "mounting root" block.
+
+  * init, scripts/local: Allow rootflags to be passed in kernel cmdline.
+    Thanks Thomas Luzat <thomas.luzat at gmx.net> for the patch. (closes: #358917)
+
+  * init: Allow passing nfs root mount option in kernel cmdline.  Thanks
+    Brian Brunswick <bdb at forbidden.co.uk> for the patch. (closes: #358649)
+
+  * update-initramfs: s/ALL/all/, fix it to actually run on update in non
+    verbose mode. (closes: #362568)
+
+  * update-initramfs: Warn in big letters about grub and lilo installs.
+    (closes: #362816)
+
+  * debian/bug: Add reportbug script with info about cmdline, fs and lsmod.
+
+  * initramfs-tools(8): Document the /conf/param.conf feature.
+
+  * mkinitramfs-kpkg(8): Spell out, why the wrapper script is needed.
+
+ -- maximilian attems <maks at sternwelten.at>  Tue, 18 Apr 2006 13:33:18 +0200
+
+initramfs-tools (0.59b) unstable; urgency=low
+
+  * mkinitramfs-kpkg: Intialialize the variables. 
+    (closes: #359355, #359620, #359613, #359666, #359681)
+
+ -- maximilian attems <maks at sternwelten.at>  Tue, 28 Mar 2006 16:30:59 +0200
+
+initramfs-tools (0.59) unstable; urgency=low
+
+  * debian/copyright: Add years of copyright and authors.
+
+  * Resync with 0.40ubuntu28:
+    - hooks/md: Add raid10 module.
+    - scripts/local: Move the "loop waiting for the root filesystem" code from
+      the udev premount script to the local mountroot() function where it truly
+      belongs.
+    - scripts/local-top/udev_helper: Leave the remaining ide-generic part
+      there, should be taken over by udev itself.
+    - make the md local-top scripts pre-requisite the udev one.
+      thanks Scott James Remnant <scott at ubuntu.com> 
+
+ -- maximilian attems <maks at sternwelten.at>  Sun, 26 Mar 2006 22:35:15 +0200
+
+initramfs-tools (0.58) unstable; urgency=low
+
+  * hook-functions: Be more carefull about the minor parsing. The fix of
+    #357332 works for 3 digit roots, but not for hdc6 aka root=1606.
+    Thanks Martijn Pieters <mj at zopatista.com> for report
+    (closes: #358354, #358740).
+
+  * hook-functions: Add gdth to the scsi modules.
+
+  * mkinitramfs-kpkg: Use set -eu to capture full /boot.
+    Really (closes: #350875)
+
+  * Add dependency on module-init-tools. (closes: #358632)
+
+  * Don't include full path for man page reference. (closes: #358371)
+
+ -- maximilian attems <maks at sternwelten.at>  Sun, 26 Mar 2006 16:39:37 +0200
+
+initramfs-tools (0.57b) unstable; urgency=low
+
+  * mkinitramfs, update-initramfs, hook-functions:
+    On verbose mode show, which modules gets added to the initramfs.
+
+  * hook-functions: Add cpqarray to the scsi modules - thanks for the patch
+    to Petter Reinholdtsen <pere at hungry.com>. (closes: #357980)
+
+  * initramfs-tools.8: Document that `-' is not allowed to be used in a script
+    filename - the filenames get used as shell variable.  (closes: #344639)
+
+  * mkinitramfs: Don't exit succesfully in a case of a full fs. Leaves the
+    linux-image unconfigured. Thanks martin f krafft <madduck at debian.org>
+    for pointing to that potential boot failure. (closes: #350875)
+
+ -- maximilian attems <maks at sternwelten.at>  Tue, 21 Mar 2006 11:56:29 +0100
+
+initramfs-tools (0.56) unstable; urgency=low
+
+  * hooks/md: Add linear module - thanks to Moshe Yudkowsky <moshe at pobox.com>.
+
+  * scripts/functions: Fix numerical minor parsing - thanks for the patch to
+    Wolfgang Weisselberg. (closes: #357332)
+
+  * mkinitramfs.8: Correct wrong referenced filename.
+
+  * update-initramfs.8: Define the argument 'version' - thanks to "Susan G.
+    Kleinmann" <sgk at debian.org>. (closes: #357282)
+
+  * scripts/init-premount/udev_helper: Source the relevant definition to get
+    it really run. Thanks to Maurice Massar <massar at unix-ag.uni-kl.de>.
+    (closes: #357450)
+
+ -- maximilian attems <maks at sternwelten.at>  Fri, 17 Mar 2006 19:09:11 +0100
+
+initramfs-tools (0.55b) unstable; urgency=low
+
+  * Thanks to Frederik Schüler for pointing to leftovers.
+
+ -- maximilian attems <maks at sternwelten.at>  Wed, 15 Mar 2006 13:23:51 +0100
+
+initramfs-tools (0.55) unstable; urgency=low
+
+  * scripts/init-premount/udev_helper: Fix modprobe args.
+    Thanks Frans Pop <fjp at debian.org> for testing 0.54.
+
+  * scripts/local: Use quiet to load the fs. (closes: #339092)
+
+  * hook-functions: Really add the ieee1394 modules.
+    Thanks to Michael Prokop <mikap at grml.org> for testing the fix.
+
+  * update-initramfs: Run lilo on updates if no grub is around.
+    Thanks Adeodato Simó <adeodato at debian.org> for finding the issue.
+    (Closes: #356850)
+
+ -- maximilian attems <maks at sternwelten.at>  Wed, 15 Mar 2006 11:29:12 +0100
+
+initramfs-tools (0.54) unstable; urgency=low
+
+  * hooks/lvm: lvm10 has also an vgchange - exit if no lvm2 libs.
+    (closes: #354708)
+
+  * debian/copyright: Meniton current bzr archive. (closes: #352738)
+
+  * hook-functions: Add dac960 scsi driver. (closes: #355162)
+
+  * scripts/init-premount/udev_helper: add code by Scott James Remnant
+    <scott at ubuntu.com> from the ubuntu udev hook. We now wait on scsi
+    and usb devices to settle, load ide-generic on ide boot only if
+    no root device appeared.
+    The udev hook is adding ide.agent so no longer duplicate that code.
+
+  * hook-functions: auto_add_modules, split 1000 char wide lines up.
+    Should allow better diffing. Splitting them out in proper files with
+    each modules / line costs too much initramfs generation time.
+    Should allow easier diffing.
+
+  * hook-functions: Add sata_mv thanks Kenshi Muto <kmuto at debian.org>.
+    (closes: #355486)
+
+  * hook-functions: Add dasd class to auto_add_modules and dd zfcp module.
+    Thanks to s390 support Bastian Blank <waldi at debian.org>. (closes: #355595)
+
+  * hook-functions: Add it821x. (closes #352460)
+
+ -- maximilian attems <maks at sternwelten.at>  Wed,  8 Mar 2006 17:34:25 +0100
+
+initramfs-tools (0.53c) unstable; urgency=low
+
+  * update-initramfs: Really reset takeover to zero.
+
+ -- maximilian attems <maks at sternwelten.at>  Mon,  6 Mar 2006 07:59:34 +0100
+
+initramfs-tools (0.53b) unstable; urgency=low
+
+  * scripts/init-premount/udev_helper: Renamed from udev-helper.
+    Thanks to Tollef Fog Heen <tfheen at err.no> (closes: #355235)
+
+ -- maximilian attems <maks at sternwelten.at>  Sat,  4 Mar 2006 15:26:13 +0100
+
+initramfs-tools (0.53) unstable; urgency=high
+
+  * update-initramfs: set_current_version needs to check against
+    /boot/initrd-`uname -r` and not /boot/vmlinu?-`uname -r`.
+    Otherwise this builds initramfs for newer handbuild trees too.
+
+  * Resync with 0.40ubuntu24:
+    - New conf.d dir for config snippet.
+    - mptspi already included.
+    - keep nfsmount for now, we don't want to add further busybox deps.
+    - adds mptfc and mptsas modules (closes: #341930)
+    - adds MODULES=netboot support (closes: #352669)
+  * Further reduce ubuntudiff:
+    - scripts/functions: remove duplicate dir check.
+    - scripts/nfs: add quiet to modules loading.
+
+  * mkinitramfs-kpkg: Add kernel-package compat stuff, behaves like mkinitramfs,
+    but adds the sha1sum for update-initramfs. Reset takeover=0.
+    (closes: #353809) Add small mkinitramf-kpkg.8.
+
+  * init: Move the ROOT export up, so we actually source the hardcoded device
+    in initramfs.conf. (closes: #352958)
+
+  * mkinitramfs: When invoked with -r switch pass the hardcoded root device to
+    /etc/mkinitramfs/conf.d/root inside the initramfs.
+
+  * hook-functions: First shot at IEEE1394 support - add ohci1394 and sbp2.
+
+ -- maximilian attems <maks at sternwelten.at>  Mon, 27 Feb 2006 10:20:03 +0100
+
+initramfs-tools (0.52b) unstable; urgency=high
+
+  * update-initramfs: Set takeover=1. This allows hooks to regenerate the
+    latest initramfs per default. No need for an kpkg wrapper, as
+    kernel-package doesn't call update-initramfs, but mkinitramfs.
+
+ -- maximilian attems <maks at sternwelten.at>  Mon, 20 Feb 2006 13:30:54 +0100
+
+initramfs-tools (0.52) unstable; urgency=low
+
+  * hooks/lvm: manual_add_modules dm_snapshot, will allow boot from lvm
+    snapshot.
+
+  * init: Fix maybe_break test for the bottom stage.
+
+  * scripts/init-premount/udev-helper: Renamed from scripts/init-premount/ide.
+
+  * update-initramfs: s/was/has/ been altered.
+    (closes: #351939, #352633, #353087, #353668)
+
+  * update-initramfs(8), mkinitramfs(8): The point of the first is to be used
+    on your local box. Highlight its mode of operations. The second cmd is
+    only needed for advanced usage.
+
+ -- maximilian attems <maks at sternwelten.at>  Fri, 17 Feb 2006 21:41:11 +0100
+
+initramfs-tools (0.51) unstable; urgency=low
+
+  * scripts/functions: Call panic on circular deps to get rescue shell.
+
+  * mkinitramfs: Use ${CONFDIR} everywhere.
+
+  * Sync with 0.40ubuntu16:
+    - skip 0.40ubuntu15 udev gets fixed to only call update-initramfs
+      when /etc/mkinitramfs/initramfs.conf is there.
+    - 0.40ubuntu13 don't take over all initramfs images in Debian.
+
+  * hook-functions: auto_add_modules atkb and i8042.
+
+  * scripts/functions: on panic modprobe atkb and i8042 - work around for
+    broken configs, where those are not build in. (Closes: #337497)
+
+  * scripts/functions: update_progress check if /dev/.initramfs/ exists
+    before writing into it.
+
+ -- maximilian attems <maks at sternwelten.at>  Tue, 24 Jan 2006 13:11:24 +0100
+
+initramfs-tools (0.50c) unstable; urgency=low
+
+  "E so io muoio da partigiano"
+
+  * hook-functions: Fix MODULES=dep as `modprobe --show-depends' prints not
+    only the insmod commands, but also the install ones.  Thanks for the patch
+    to Jean Charles Delepine <delepine at nnx.com>. (Closes: #342616)
+
+  * hooks/evms, scripts/local-top/evms: EVMS takes care of it's own hooks, rm.
+    Thanks Steinar H. Gunderson <sesse at debian.org>. (Closes: 340258)
+
+ -- maximilian attems <maks at sternwelten.at>  Sat, 14 Jan 2006 17:40:48 +0100
+
+initramfs-tools (0.49) unstable; urgency=low
+
+  * Pump dephelper to 4.1.0 dependency as pointed out by linda.
+
+  * initramfs-tools.8: Add DEBUG section, cheat how to check the initramfs.
+
+  * Add optional sarge busybox-cvs-static dep to ease backport.
+
+ -- maximilian attems <maks at sternwelten.at>  Thu, 12 Jan 2006 17:28:42 +0100
+
+initramfs-tools (0.48) unstable; urgency=low
+
+  * mkinitramfs: klibc 1.1.14 moved from /usr/lib/klibc/lib to /lib
+    Bonus: You can now execute any klibc bin directly.
+    Cope with the move and pump dep. (Closes: 345949)
+
+ -- maximilian attems <maks at sternwelten.at>  Wed,  4 Jan 2006 16:11:25 +0100
+
+initramfs-tools (0.47) unstable; urgency=low
+
+  * mkinitramfs: Don't complain about missing /bin/sh - use rm -f.
+    Minor cleanup for the newer packaging of klibc 1.1.14.
+
+ -- maximilian attems <maks at sternwelten.at>  Sat, 31 Dec 2005 14:17:31 +0100
+
+initramfs-tools (0.46) unstable; urgency=low
+
+  * Don't include .bzr dirs in source upload.
+    Thanks Frederik Schüler <fs at debian.org>
+
+ -- maximilian attems <maks at sternwelten.at>  Thu, 29 Dec 2005 14:23:46 +0100
+
+initramfs-tools (0.45) unstable; urgency=high
+
+  "Che mi sento di morir."
+
+  * Unset debug before calling init, confuses /etc/init.d/rc.
+
+  * scripts/init-premount/ide: Load uncondionally for ide boots ide-generic
+    and also ide-disk, as udev ignores them. High urgency upload for rc bugs.
+    Thanks Frans Pop <fjp at debian.org> and Joey Hess <joeyh at debian.org> for
+    testing! (Closes: #332824, #342925, #344754, #337045, #338406)
+
+ -- maximilian attems <maks at sternwelten.at>  Thu, 29 Dec 2005 10:34:32 +0100
+
+initramfs-tools (0.44) unstable; urgency=high
+
+  "O partigiano portami via"
+
+  * Urgency high upload to stay in sync with udev for testing.
+
+  * initramfs.conf: Fix wording choice for resume option. (Closes: #337575)
+
+  * hooks/kernelextras: Really fix #335505.
+    Don't expand wildcase to current dir. (Closes: #342153)
+
+  * Add initramfs-tools.8 describing how the hooks of initramfs-tools work
+    and how to use them. Thanks David Härdeman <david at 2gen.com> for the patch.
+    (Closes: #339091)
+
+  * initramfs.conf.5,  mkinitramfs.8, update-initramfs.8: Update
+    cross-references of the different manpages.
+
+  * TODO: update to current state.
+
+  * scripts/functions: remove old duplicate suspend support.
+
+  * Sync with 0.40ubuntu8. (Closes: #337318)
+    - Revert the modprobe changes for now as modules-init-tools of
+      testing doesn't have yet the wanted interface.
+
+ -- maximilian attems <maks at sternwelten.at>  Mon, 12 Dec 2005 11:22:15 +0100
+
+initramfs-tools (0.42) unstable; urgency=low
+
+  * hook-functions: The mptspi module is required for at least some machines
+    that use the mptscsih. Thanks dann frazier <dannf at hp.com> for the patch.
+    (Closes: #341162)
+
+  * Resync with 0.40ubuntu7.
+    - Do the udev split by hand as we have a different udev invocation
+      supporting linux < 2.6.15. Increment udev dep to the version with
+      initramfs hooks.
+    - Debian's klibc hasn't yet the nanosleep, waiting for unbroken
+      linux-headers.
+    - Don't remove resume support from /etc/mkinitramfs/initramfs.conf
+      even if bootloader setting is preferred.
+
+ -- maximilian attems <maks at sternwelten.at>  Mon,  5 Dec 2005 12:59:59 +0100
+
+initramfs-tools (0.40ubuntu24) dapper; urgency=low
+
+  * Add support for LSI Logic's Fusion MPT SAS and FC controllers as well.
+
+ -- Adam Conrad <adconrad at ubuntu.com>  Thu, 23 Feb 2006 23:27:16 +1100
+
+initramfs-tools (0.40ubuntu23) dapper; urgency=low
+
+  * Grow a conf.d directory for config snippets, and toss the RESUME option
+    in there, to stop editing our own conffile in our maintainer scripts.
+  * Add a cleverly hackish preinst that will pull the RESUME setting from
+    old config files, migrate it to conf.d/resume, and reset that part of the
+    conffile to a factory fresh state.  This should fix the unwanted conffile
+    prompt in breezy->dapper upgrades for people who made no local changes.
+
+ -- Adam Conrad <adconrad at ubuntu.com>  Fri, 17 Feb 2006 15:34:53 +1100
+
+initramfs-tools (0.40ubuntu22) dapper; urgency=low
+
+  * Add mptspi to the list of SCSI modules put in the initramfs by default,
+    which is required for some LSI Logic controllers and for the VMware SCSI
+    controller in recent VMware versions (See launchpad.net/{27187,31229})
+  * Fix typo of /dev/disk/by-*, which I wrote as /dev/disks/by-{uuid,label}
+  * Load i2c-keywest before loading therm_pm72 in the PowerPC thermal hook,
+    since the latter sometimes needs the former (Closes launchpad.net/27269)
+
+ -- Adam Conrad <adconrad at ubuntu.com>  Tue, 14 Feb 2006 23:28:35 +1100
+
+initramfs-tools (0.40ubuntu21) dapper; urgency=low
+
+  * Don't update the progress bar once udev has taken /dev away;
+    after all, we can't contact usplash anyway at this point.
+
+ -- Scott James Remnant <scott at ubuntu.com>  Wed,  8 Feb 2006 14:34:10 +0000
+
+initramfs-tools (0.40ubuntu20) dapper; urgency=low
+
+  * Add ... to end of strings to match main boot sequence.
+
+ -- Scott James Remnant <scott at ubuntu.com>  Tue,  7 Feb 2006 11:07:50 +0000
+
+initramfs-tools (0.40ubuntu19) dapper; urgency=low
+
+  * Change the first of many "Loading modules" to "Loading essential drivers"
+    to improve debugging when people say it breaks at that stage.
+
+ -- Scott James Remnant <scott at ubuntu.com>  Tue,  7 Feb 2006 11:05:15 +0000
+
+initramfs-tools (0.40ubuntu18) dapper; urgency=low
+
+  * Add support for selecting root by UUID or LABEL with syntax such as:
+    root=LABEL=myrootfs or root=UUID=92addf34-0f02-4a0e-bfb2-cbaa1e907b77
+
+ -- Adam Conrad <adconrad at ubuntu.com>  Fri,  3 Feb 2006 15:55:01 +0000
+
+initramfs-tools (0.40ubuntu17) dapper; urgency=low
+
+  * Make auto_add_modules take an argument, so you can use it to add only
+    some of the auto* modules (like "net" or "ide"), and create a "netboot"
+    option that only includes base and net (Closes launchpad.net/26426) 
+  * Change the nfs script to use "mount -o nolock" instead of "nfsmount",
+    to fix some timeouts for ltsp NFS roots (Closes launchpad.net/19196)
+
+ -- Adam Conrad <adconrad at ubuntu.com>  Tue, 31 Jan 2006 11:55:11 +0000
+
+initramfs-tools (0.40ubuntu16) dapper; urgency=low
+
+  * Bump klibc-utils dependency to (>= 1.1.16-1), for hppa and ia64.
+
+ -- Adam Conrad <adconrad at ubuntu.com>  Thu, 19 Jan 2006 04:00:39 +1100
+
+initramfs-tools (0.40ubuntu15) dapper; urgency=low
+
+  * Drop the udev dependency, so we always get configured before udev.
+    We can get away with this now that udev hooks/scripts have been split
+    into the udev package proper.  This should close Malone bug #28808.
+
+ -- Adam Conrad <adconrad at ubuntu.com>  Wed, 18 Jan 2006 22:50:27 +1100
+
+initramfs-tools (0.40ubuntu14) dapper; urgency=low
+
+  * If copy_exec is asked to copy to the same location twice, check if
+    we're copying the same file again.  If so, do nothing and carry on, if
+    not, warn that we asked it for an impossibility, and don't overwrite.
+
+ -- Adam Conrad <adconrad at ubuntu.com>  Thu, 12 Jan 2006 18:00:12 +1100
+
+initramfs-tools (0.40ubuntu13) dapper; urgency=low
+
+  * Default to taking over other initramfs images in Ubuntu, as this is
+    more consistent with what our packaging expects to be able to do.
+  * Make "update-initramfs -u" try to find the running kernel before it
+    attempts to search the symbolic link list and its own sha1 list.
+
+ -- Adam Conrad <adconrad at ubuntu.com>  Wed, 11 Jan 2006 16:25:20 +1100
+
+initramfs-tools (0.40ubuntu12) dapper; urgency=low
+
+  * Oops, move the progress state file into the new directory too.
+
+ -- Adam Conrad <adconrad at ubuntu.com>  Mon,  9 Jan 2006 21:26:44 +1100
+
+initramfs-tools (0.40ubuntu11) dapper; urgency=low
+
+  * Move the state directory from /dev/initramfs to /dev/.initramfs
+
+ -- Adam Conrad <adconrad at ubuntu.com>  Mon,  9 Jan 2006 21:17:50 +1100
+
+initramfs-tools (0.40ubuntu10) dapper; urgency=low
+
+  * Create the /dev/initramfs directory as soon as we mount /dev, so other
+    packages that need a playground in /dev can do so in a uniform location.
+  * Update the usplash progress bar every time we are asked to output a
+    success or failure value from an init action, and write our progress to
+    /dev/initramfs for sysv-init to gather up and pick up where we left off.
+  * Export $DPKG_ARCH in both mkinitramfs (for use by hooks) and initramfs.
+  * Use $DPKG_ARCH in the thermal hook/script to divide the x86 stuff from
+    the powerpc stuff, not because we have to, but as an example to others.
+
+ -- Adam Conrad <adconrad at ubuntu.com>  Mon,  9 Jan 2006 10:51:51 +1100
+
+initramfs-tools (0.40ubuntu9) dapper; urgency=low
+
+  * Make some changes to cope with the new and improved klibc packaging:
+    - Add a force to the deletion of ${DESTDIR}/bin/sh, to avoid errors.
+    - Cope with libklibc moving from /usr/lib/klibc/lib to /lib.
+    - Bump dependency on klibc-utils to one new enough for the above.
+
+ -- Adam Conrad <adconrad at ubuntu.com>  Thu,  5 Jan 2006 15:13:15 +1100
+
+initramfs-tools (0.40ubuntu8) dapper; urgency=low
+
+  * Call modprobe everywhere with "-Qb" to silence messages and allow user
+    blacklisting.
+  * Copy the entire /etc/modprobe.d directory to the initramfs, so we can
+    pick up all user blacklists and options.
+  * Remove the slumber for SCSI/USB devices from the local filesystem mount
+    script, udev's init-premount script will take care of this when
+    necessary.
+
+ -- Scott James Remnant <scott at ubuntu.com>  Wed,  7 Dec 2005 16:18:12 +0000
+
+initramfs-tools (0.40ubuntu7) dapper; urgency=low
+
+  * remove "sleep 3" from the nfs script before the nfsmount command,
+    its a leftover from debugging in breezy and slows down thin client 
+    booting unnecessary
+
+ -- Oliver Grawert <ogra at ubuntu.com>  Fri,  2 Dec 2005 11:45:05 +0100
+
+initramfs-tools (0.40ubuntu6) dapper; urgency=low
+
+  * When panicking, fork an interactive subshell rather than execing it, so
+    that if the user fixes things up and exits, we continue rather than
+    panic the kernel.
+  * Call update-initramfs in postinst to regenerate the latest initramfs on
+    upgrades
+
+ -- Matt Zimmerman <mdz at ubuntu.com>  Thu,  1 Dec 2005 22:23:09 -0800
+
+initramfs-tools (0.40ubuntu5) dapper; urgency=low
+
+  * Wait up to 10 seconds for the root device to appear before failing,
+    allowing SCSI and USB controllers time to settle.  There's almost
+    certainly a more elegant way to do this generically for all mountroot
+    functions, but for now this will suffice.
+
+ -- Scott James Remnant <scott at ubuntu.com>  Thu,  1 Dec 2005 21:28:55 +0000
+
+initramfs-tools (0.40ubuntu4) dapper; urgency=low
+
+  * Mount /dev with mode 0755.
+
+ -- Scott James Remnant <scott at ubuntu.com>  Thu,  1 Dec 2005 19:30:06 +0000
+
+initramfs-tools (0.40ubuntu3) dapper; urgency=low
+
+  "A true friend stabs you in the front."
+  - Oscar Wilde 
+
+  * hooks/acpid: Rename to ...
+  * hooks/thermal: ... this.  Add therm_pm72 for ppc64 systems.
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Wed, 30 Nov 2005 22:25:01 -0500
+
+initramfs-tools (0.40ubuntu2) dapper; urgency=low
+
+  * Rename scripts/init-premount/acpid to scripts/init-premount/thermal
+    and add therm_pm72 to avoid "vaccum cleaner mode" on ppc64 systems.
+
+ -- Adam Conrad <adconrad at ubuntu.com>  Thu,  1 Dec 2005 12:37:27 +1100
+
+initramfs-tools (0.40ubuntu1) dapper; urgency=low
+
+  * Use tmpfs for /dev, instead of ramfs; as tmpfs is swappable.
+  * Move /proc and /sys to the real filesystem, rather than unmounting them;
+    slightly reduces workload.
+  * Replace /root with ${rootmnt} in final usage of /dev/console
+  * Copy across modprobe blacklist as well as aliases
+
+  * Change the panic/breaknow thing *again*.  There's now a break= option
+    which can be any of top, modules, premount, mount, bottom, init and
+    causes the initramfs to break at that point.  panic/breaknow is now
+    break=top, without an argument is equivalent to break=premount.
+  * Run depmod at the top of the init script, so init-top scripts can use
+    modprobe.
+
+  * Remove udev-specific code:
+    - depend on the version of udev that includes all of these things itself
+    - remove udevstart from init
+    - remove code to move /dev to the real filesystem from init
+    - remove /sys-based module loading from load_modules
+    - remove boot_events functions from load_modules
+    - remove udev copy from mkinitramfs
+    - remove udev hook script
+
+ -- Scott James Remnant <scott at ubuntu.com>  Thu, 24 Nov 2005 21:21:12 +0000
+
+initramfs-tools (0.41) unstable; urgency=high
+
+  "Una mattina mi sono svegliato"
+
+  * High urgency upload to cope with newer udev upstream - bonus:
+    condition to test against when udev is ready. (Closes: #341014)
+    Thanks Marco d'Itri <md at linux.it> for guidance and 
+    Heikki Henriksen <heikkih at gmail.com> for double check.
+
+  * Pump udev dep on 0.076-3.
+
+  * Special thanks to Paul Traina for previous udev / emvs work.
+
+  * Sync with Ubuntu (0.36ubuntu6).
+
+  * Kill udevd as late as possible. Thanks David Härdeman <david at 2gen.com>
+    for the patch. (Closes: #339093)
+
+ -- maximilian attems <maks at sternwelten.at>  Mon, 28 Nov 2005 17:53:24 +0100
+
+initramfs-tools (0.40) unstable; urgency=high
+
+  * High urgency upload as udev changed under our feet. Fix RC bugs.
+
+  * hooks/udev: Add needed bits: udevsynthesize. (Closes: #340257)
+    Move good bits from global mkinitramfs.
+
+  * Pump udev dep on 0.074-3.
+
+  * Fix evms hooks properly until they get merged into the evms itself.
+    (Closes: #337704)
+
+  * Sync with Ubuntu (0.36ubuntu4).
+
+ -- maximilian attems <maks at sternwelten.at>  Wed, 23 Nov 2005 10:31:57 +0100
+
+initramfs-tools (0.39) unstable; urgency=medium
+
+   * Setting urgency to medium to get this into testing.  This
+     will make life easier for d-i.
+
+  * Revert the mklibs-small usage patch - reduces needed dependencies:
+    hook-fuctions: Readds copy_exec.
+    mkinitramfs, hooks/{evms,lvm,md}: Use copy_exec.
+
+  * mkinitramfs: Newer udev no longer uses /sbin/udev - remove usage.
+    (Closes: #339568, #339365, #338814)
+
+  * Pump udev dependency.
+
+  * init: Pump timeout as there is currently no way to check which udevd
+    processes are still running and why. 
+    Cures hopefully breakage of missing devices on boot.
+
+  * Sync with latest Ubuntu.
+
+ -- maximilian attems <maks at sternwelten.at>  Thu, 17 Nov 2005 19:59:47 +0100
+
+initramfs-tools (0.36ubuntu6) dapper; urgency=low
+
+  * Rename "panic" to "breaknow"
+
+ -- Scott James Remnant <scott at ubuntu.com>  Wed, 23 Nov 2005 10:23:54 +0000
+
+initramfs-tools (0.36ubuntu5) dapper; urgency=low
+
+  * Abort the boot sequence as early as possible if "panic" is placed on the
+    kernel command-line, allowing debugging of scripts in init-top.
+
+ -- Scott James Remnant <scott at ubuntu.com>  Mon, 21 Nov 2005 08:40:20 +0000
+
+
+initramfs-tools (0.36ubuntu4) dapper; urgency=low
+
+  * Replace all occurances of /etc/mkinitramfs in mkinitramfs with $CONFDIR,
+    so -d can be used to point at a completely alternate tree (for example,
+    when installing into a chroot).
+
+ -- Scott James Remnant <scott at ubuntu.com>  Mon, 21 Nov 2005 08:34:03 +0000
+
+initramfs-tools (0.36ubuntu3) dapper; urgency=low
+
+  * mkinitramfs: only copy the klibc-*.so file, and not the development
+    pieces that happen to sit alongside it.
+
+ -- Scott James Remnant <scott at ubuntu.com>  Thu, 10 Nov 2005 16:44:08 -0500
+
+initramfs-tools (0.36ubuntu2) dapper; urgency=low
+
+  * Fix typos in the handling of the mkinitramfs -d option (thanks, Colin).
+
+ -- Adam Conrad <adconrad at ubuntu.com>  Thu, 10 Nov 2005 12:12:32 -0500
+
+initramfs-tools (0.38) unstable; urgency=low
+
+  [ dann frazier ]
+
+  * initramfs.conf: Reference correct manpage.  (Closes: #336095)
+
+  [ maximilian attems ]
+
+  * scripts/functions, scripts/local-premount/suspend: Fix suspend to disk
+    by using decimal numbers. Thanks to Adrian Bridgett <adrian at smop.co.uk>
+    for the patch. (Closes: #336936)
+
+  * hooks/evms: manual_add_module dm_mod, now we no longer pull it in by
+    default. Thanks to Steinar H. Gunderson <sesse at debian.org>
+    (Closes: #336617)
+
+ -- maximilian attems <maks at sternwelten.at>  Wed,  2 Nov 2005 07:21:29 +0100
+
+initramfs-tools (0.37) unstable; urgency=low
+
+  * scripts/functions, scripts/local-premount/suspend: Use of "stat"
+    which isn' any more provided by busybox (1.01-3).
+    Thanks to Adrian Bridgett <adrian at smop.co.uk> for the patch using awk.
+    (Closes: #335801)
+
+  * hooks/kernelextras: Check for existence of ${MODULESDIR}/initrd/:
+    Exit if it doesn't exist before including current dir.
+    Thanks to Jean Charles Delepine <delepine at nnx.com> (Closes: #335505)
+
+  * hooks/lvm, hooks/md: Remove FIXME's at second thought.  You better want 
+    to check against the binaries for your not yet created raid/lvm.
+
+ -- maximilian attems <maks at sternwelten.at>  Wed, 26 Oct 2005 09:22:58 +0200
+
+initramfs-tools (0.36) unstable; urgency=low
+
+  "Sunny Autumn Release"
+  
+  * Minor cleanups in mkiniramfs.
+
+  * Remove manpage section about return values. Needs to be rephrased.
+    Not sure if it's important for the enduser.
+
+ -- maximilian attems <maks at sternwelten.at>  Mon, 24 Oct 2005 19:51:51 +0200
+
+initramfs-tools (0.35) unstable; urgency=low
+
+  * mkinitramfs: Return 2 for failure path of --supported-(host|target)-version.
+
+  * mkinitramfs: Run the hooks before mklibs-copy, broke evms.
+    Thanks for fix and testing to Steinar H. Gunderson <sesse at debian.org>
+
+  * Change name of virtual package that is provided into linux-initramfs-tool.
+
+  * Add hooks/lvm allowing to remove dependency on lvm2.
+
+  * Add hooks/md allowing to remove dependency on mdadm.
+
+  * Remove the mdadm and lvm dependencies, they work as hooks when present.
+    The lvm2 version in sarge is good enough to address issues mentioned in
+    0.16. A woody backport will need newer lvm2 although..
+
+ -- maximilian attems <maks at sternwelten.at>  Mon, 24 Oct 2005 19:16:14 +0200
+
+initramfs-tools (0.32) unstable; urgency=low
+
+  [ Bastian Blank ]
+  * Use mklibs-copy.
+  * Use udevsynthesize instead of udevstart.
+  * hook-functions: Add ibmvscsic to list of scsi modules.
+
+  [ Sven Luther ]
+  * Added --supported-(host|target)-version support for the new post-2.6.13
+    ramdisk-tool policy. Added linux-ramdisk-tool virtual package too.
+    (Closes: #333856)
+
+  [ maximilian attems ]
+  * Resynchronise with latest upstream release.
+  * Place shift after variable outfile assignment.
+  * Fix strange chars in the Depends line resulting in no depends at all.
+  * Thanks to Bastian Blank for the fixes concerning the new busybox version.
+    (Closes: #334467)
+
+  [ Jeff Bailey ]
+  * scripts/nfs (mountroot): New variable: NFSOPTS, default to
+    -o retranfs=10. (Ubuntu 12942)
+    This can be overridden in the initramfs.conf file.
+    Thanks to Oliver Grawert for testing this!
+
+  * hook-scripts (auto_add_modules): Add jfs
+    (dep_add_modules): Ditto. (Ubuntu #16742)
+    Thanks to Colin Watson for this fix!
+
+  [ Adam Conrad ]
+  * Make us a bit more silent/tidy by default, unless "quiet" isn't on
+    the kernel's command line (then we're just as verbose as ever)
+
+  [ Jonas Smedegaard ]
+  * Use GNU getopt (instead of bash builtin getopts) for improved long-
+    opts handling.
+  * Quote variables.
+  * Use test options -n and -z.
+
+ -- maximilian attems <maks at sternwelten.at>  Wed, 19 Oct 2005 17:42:08 +0200
+
+initramfs-tools (0.31) unstable; urgency=low
+
+  Quick fix for sluggish dep
+
+  [ Bastian Blank ]
+  * Use new busybox. (closes: #333755)
+
+ -- maximilian attems <maks at sternwelten.at>  Mon, 17 Oct 2005 16:27:31 +0200
+
+initramfs-tools (0.30) unstable; urgency=low
+
+  Apparition Octobre Rouge
+
+  [ maximilian Attems ]
+
+  * Resynconise with latest upstream now we are in unstable.
+  
+  [ Jeff Bailey ]
+  * debian/rules: Make sure hooks and scripts are chmod +x
+
+  * hook-functions (auto_add_modules): Add advansys.
+
+  * debian/init: Add "Loading, please wait..." message.
+    Don't log for init-top scripts to avoid usplash noise.
+
+  * init: Add start of debug command line option.
+
+  * scripts/functions (log_begin_msg): Call usplash if available
+    (log_end_msg): Call usplash if available
+    (panic): Close usplash if available
+
+  * scripts/functions (load_modules): Quote resume variable.
+    Thanks to Christian Kellner for helping test that!
+
+  * scripts/local-premount/suspend: Quote resume variable.
+
+  * update-initramfs: Use basename on the link target to get the
+     version number.
+
+  * HACKING: Start of some notes on how this package actually works.
+  * debian/initramfs-tools.docs: Install it.
+
+  [ Matthew Garrett ]
+  * scripts/functions (load_modules): Run udevstart after loading block
+    drivers should fix resume from hibernate on non-LVM systems.
+
+ -- maximilian attems <maks at sternwelten.at>  Fri, 30 Sep 2005 19:34:55 +0200
+
+initramfs-tools (0.27) unstable; urgency=low
+
+  * Remove unused BUSYBOX config option as we use busybox anyway.
+
+  * Add Jeff Bailey and myself as Uploaders, Debian kernel team as
+    MAINTAINER.
+
+  * Upload to debian unstable - allows use of nondevfs kernel >= 2.6.13
+    with initramfs image. (Closes: #312561, #315654)
+
+  * Fix busybox dependency to the relevant debian package.
+
+  * Reorder the initramfs.conf variables.
+
+  * Add question mark to the getopts for the help message.
+
+  * update-initramfs.8 New file install it.
+
+  * The debian busybox-cvs-static installs into /bin/busybox:
+    fix pathes vis-a-vis ubuntu version. make that a variable on top.
+
+ -- maximilian attems <maks at sternwelten.at>  Tue, 20 Sep 2005 13:52:00 +0200
+
+initramfs-tools (0.26) breezy; urgency=low
+
+  "Experience is one thing you can't get for nothing."
+  - Oscar Wilde 
+
+  * scripts/local-top/lvm: Reduce -- to - in VG strings for feeding
+    to vgchange.  (Ubuntu: #13387)
+
+  * update-initramfs: New file
+  * debian/dirs: Add /var/lib/initramfs-tools
+
+  * hooks/evms: New file
+  * scripts/local-top/evms: New file.
+    Thanks to Jerry Haltom for helping test this!
+
+  * debian/control: Bump klibc depends to 1.0.14-1ubuntu2 for jfs support
+
+  * hook-scripts (manual_add_modules): Don't do unnecessary depmod
+    (dep_add_modules): No need for a sleep 2 here.
+    Thanks to Matt Zimmmerman for noticing these!
+
+  * scripts/functions: Attempt resume before loading USB or Network
+    modules to avoid resume issues with USB.
+    Thanks to Matthew Garrett for this patch!
+
+  * scripts/functions (ide_boot_events): Always load ide-generic
+    before going further.  This allows us to catch any hidden
+    IDE controllers that might not otherwise get found.
+
+  * initramfs.conf.5: New file
+  * debian/initramfs-tools.manpages: Install it.
+    Thanks to maximilian attems for the manpage!
+
+  * hook-functions (auto_add_modules): Add mptscsih (Ubuntu #15406)
+    Thanks to Jesper Krogh for the bug report!
+
+  * debian/dirs: Add etc/mkinitramfs/hooks, move all scripts subdirs
+    into etc/mkinitramfs/scripts.
+
+  * mkinitramfs: Set the umask.  Copy the scripts from  
+    /etc/mkinitramfs/scripts into the image.
+    Make sure that modules file lists is actually a regular file.
+
+  * init: Use ${rootmnt} instead of hardcoded /root, use mount -n
+    Fix typo.
+
+  * hook-functions (catenate_cpiogz): Add sanity check.
+    (add_modules_from_file): Document, quote variable, add warning.
+
+  * docs/example_hook: Update
+    Thanks to Karl Hegbloom for these previous 5 patches!
+
+  * init: Create /var/lock on the initramfs
+    Thanks to Jerry Haltom for noticing this!
+
+  * debian/dirs: rename to ...
+  * debian/initramfs-tools.dirs: ... this.
+
+  * scripts/functions (scsi_boot_events): Don't attempt to look
+    at ${device}/type if it doesn't actually exist.
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Wed, 14 Sep 2005 14:12:24 -0400
+
+initramfs-tools (0.25) breezy; urgency=low
+
+  "If there was less sympathy in the world, there would be less
+   trouble in the world."
+  - Oscar Wilde
+
+  * init: Module the /dev tmpfs earlier.  Make /dev/console, and
+    /dev/null on it at the beginning, just in case.
+
+  * debian/initramfs-tools.postinst: When copying the modules file over
+    from initrd-tools installations, filter out ext2, ext3, ide-generic
+    and ide-disk.  These are leftovers from Warty.
+    (Ubuntu #14242)
+
+  * hooks/udev: New File (Ubuntu #12915)
+
+  * init: panic if ${init} doesn't exist on the target filesystem.
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Thu,  1 Sep 2005 00:13:47 -0400
+
+initramfs-tools (0.24) breezy; urgency=low
+
+  "Experience is simply the name we give out mistakes."
+  - Oscar Wilde
+
+  * hook-functions (auto_add_modules): Add cciss
+    (Ubuntu #14177) Thanks Fabionne!
+
+  * scripts/functions (parse_numeric): Noop on empty parameter.
+    Fixes LTSP boot failure.  Thanks to Oliver Grawert
+    for testing!
+
+  * scripts/local-top/md: Don't run modprobe when raidlvl is unset.
+    Run mdadm if raidlvl has ever been set, not just if the most
+    recent device checked was part of the raid setup.
+    Thanks to Jeff Waugh for the bug report!
+
+  * mkinitramfs: Feed the -o argument through readlink -f to
+    get the canonical pathname.
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Fri, 26 Aug 2005 09:35:32 -0400
+
+initramfs-tools (0.23) breezy; urgency=low
+
+  "This suspense is terrible. I hope it will last."
+  - Oscar Wilde
+
+  * scripts/local: Quote ${ROOT} so that an empty value causes us
+    to drop to a shell.
+    Thanks to Matt Zimmerman for this fix!
+
+  * hook-functions (auto_add_modules): Add atiixp and opti621 to
+    the IDE set.
+
+  * hook-functions (dep_add_modules): Detect i2o and add i2o_block
+    (auto_add_modules): Include i2o_block.
+
+  * scripts/functions (i2o_boot_events): New function
+    (load_modules): Call it. (Ubuntu# 13806)
+    Thanks to Tollef Fog Heen for the i2o patch!
+
+  * debian/control: Depend on udev.
+    Thanks to Alexander Butenko for troubleshooting this with me.
+
+  * init: Move the /dev directory to the root filesystem.
+    Handle all the udev bind mounts as needed.
+    Make sure input and output is associated with dev/console.
+
+  * scripts/functions (parse_numeric): Exit if we're refering to a path.
+    Otherwise override root setting to be /dev/root.
+  * init: Call parse_numeric when setting the root variable.
+  * scripts/local-top/lvm: When using a numeric root, call vgchange -ay
+    Don't attempt to start LVM on regular partitions.
+    (Ubuntu #13365, #13778, and some of #13399)
+
+  * scripts/local-top/lvm: Cope with -'s in the Volume Group and
+    logical volume names. (Ubuntu #13387)
+    Thanks to Stephen Shirley for the patch!
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Thu, 25 Aug 2005 11:48:15 -0400
+
+initramfs-tools (0.22) breezy; urgency=low
+
+  * Fix argument handling in force_load hook-function
+  * Add "sleep 3" to scripts/nfs as a nasty hack around bug #12942
+
+ -- Matt Zimmerman <mdz at ubuntu.com>  Fri, 19 Aug 2005 23:50:16 -0700
+
+initramfs-tools (0.21) breezy; urgency=low
+
+  "All that I desire to point out is the general principle that
+   life imitates art far more than art imitates life."
+   - Oscar Wilde
+
+  * mkinitramfs: Define MODULESDIR and use it.
+
+  * hook-functions: Use MODULESDIR
+    (add_modules_from_file): Do not add .ko extension to file lists.
+    Call force_load instead of twiddling conf/modules directly.
+    (Ubuntu #13372)
+    (force_load): New function.
+    (copy_exec): Attempt to use non-optimsed libraries if available.
+    (Ubuntu #13470)
+    (auto_add_modules) Include forcedeth (Ubuntu #13448)
+
+  * hooks/kernelextras: New file. (Ubuntu #13414)
+
+  * debian/initramfs-tools.postinst: Preserve /etc/mkinitrd/modules if
+    possible on new install. (Ubuntu #13372)
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Thu, 18 Aug 2005 00:20:11 -0400
+
+initramfs-tools (0.20) breezy; urgency=low
+
+  * Depend on cpio.
+
+ -- Colin Watson <cjwatson at ubuntu.com>  Fri, 12 Aug 2005 10:43:04 +0100
+
+initramfs-tools (0.19) breezy; urgency=low
+
+  "The basis of optimism is sheer terror."
+  - Oscar Wilde
+
+  * mkinitramfs: Honour MODULES=list and MODULES=dep.
+
+  * hook-functions: New function dep_add_modules.
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Wed, 10 Aug 2005 23:20:11 -0400
+
+initramfs-tools (0.18) breezy; urgency=low
+
+  "We are all in the gutter, but some of us are looking at the stars."
+  - Oscar Wilde
+
+  * debian/initramfs-tools.postrm: Use rm -f for removing the modules
+    file, in case it doesn't exist for some reason. (Ubuntu #13335)
+    Thanks to Colin Watson for the bug report!
+
+  * mkinitramfs.8: Correct my email address to be jbailey at ubuntu.com
+    Document /etc/mkinitramfs/DSDT.aml
+
+  * debian/initramfs-tools.postinst: Attempt to inherit RESUME settings
+    from initrd-tools.  Also copy the DSDT from /etc/mkinitrd/DSDT to
+    /etc/mkinitramfs/DSDT.aml
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Wed, 10 Aug 2005 13:09:44 -0400
+
+initramfs-tools (0.17) breezy; urgency=low
+
+  "The public is wonderfully tolerant. It forgives everything except
+   genius."
+  - Oscar Wilde
+
+  * debian/initramfs-tools.postinst: Get the name of the config file 
+    right when seeding RESUME=.  Also fix the sed expression.
+    Thanks to Matthew Garrett for noticing this!  
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Wed, 10 Aug 2005 11:54:07 -0400
+
+initramfs-tools (0.16) breezy; urgency=low
+
+  "It is through art, and through art only, that we can realise our
+   perfection."
+   - Oscar Wilde
+
+  * mkinitramfs: Make sure all relevant ide modules are included.
+    Add RESUME= support.
+
+  * scripts/functions: Be silent when adding non-detected modules.
+
+  * conf/mkinitramfs.conf: MODULES=most by default, BUSYBOX=y
+    (Non-busybox isn't supported now.  It's not clear that it ever 
+     will be).  Add RESUME line for resuming from suspend-to-disk.
+
+  * scripts/local-premount/suspend: New script for suspend-to-disk.
+
+  * debian/control: Bump depends on busybox-cvs-initramfs to
+    20040623-1ubuntu19.  Add dependancy on lvm2.
+    Bump standards version to 3.6.2.0 (no-op)
+
+  * debian/control:
+    Force version depend on lvm2 (>= 2.01.04-5) to make sure newer kernels
+    will boot.
+    Thanks for Andrew Mitchell for discovering this.
+
+  * hooks/: New directory
+
+  * debian/dirs: Move hooks to ...
+  * debian/initramfs-tools.install: ... here.
+
+  * hooks/acpid: New file.
+
+  * scripts/init-premount/acpid: New file
+    Thanks for the hint from Matthew Garrett for this.
+
+  * debian/initramfs-tools.postinst: Add RESUME support on first install.
+
+  * debian/mkinitramfs: Move functions to ...
+  * debian/hook-functions: ... here.
+
+  * debian/initramfs-tools.install: Install hook-functions
+
+  * mkinitramfs.8: New file.
+    Thanks to Maximilian Attems for contributing this!
+
+  * scripts/local-top/md: Don't try to detect raid on non-existant devices
+    or on whole devices.  Quiet other warning messages.
+
+  * hook-functions: When generating initramfs, don't complain about missing
+    modules.
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Tue,  9 Aug 2005 23:35:08 -0400
+
+initramfs-tools (0.15) breezy; urgency=low
+
+  "Nothing looks so like innocence as an indiscretion."
+  - Oscar Wilde
+
+  * mkinitramfs: Handle putting DSDT.aml into the initramfs
+    Add sata_nv to list of modules to import for main mode.
+
+  * init: New scripts directory, init-premount for generic premount
+    handling (like usplash)
+
+  * debian/dirs: Make the /etc version of this directory for user
+    addons.
+
+  * debian/rules: Use prebuild, rather than debian-build-arch.
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Tue,  9 Aug 2005 11:29:10 -0400
+
+initramfs-tools (0.14) breezy; urgency=low
+
+  "The world is a stage, but the play is badly cast."
+  - Oscar Wilde
+
+  * scripts/functions: Add scsi_boot_events and call it to load sd_mod
+
+  * scripts/local-top/md: Autodetect raid level
+
+  * scripts/local-top/lvm: Only activate the volumegroup required by
+    the root device.  Don't bother with lvm if the root partition isn't
+    /dev/mapper/FOO.
+
+  * scripts/functions: Fix ide_boot_events.  This never worked, even
+    if I thought it did.
+
+  * init: init variable should be lower case.  Exported ROOT variable
+    should be upper case.
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Tue, 26 Jul 2005 20:30:57 -0400
+
+initramfs-tools (0.13) breezy; urgency=low
+
+  "We live in age when unnecessary things are our only necessities."
+   - Oscar Wilde
+
+  * Use detailed logging now for debian/changelog.  We have at least
+    three people hacking now, and details would probably be useful.
+
+  * debian/TODO: Update
+
+  * debian/dirs: Sort and add usr/share/initramfs-tools/hooks
+
+  * debian/initramfs-tools.examples: Add docs/example_hook and
+    docs/example_hook_cpiogz
+
+  * debian/initramfs-tools.install: Pretty Print.
+
+  * debian/rules: Ensure that mkinitramfs is executable
+
+  * docs/example_script: New file
+
+  * init: Add concept of 'quiet', be verbose if not specified
+
+  * mkinitramfs: Do not load script functions until needed
+    Clear up comments / documentation
+    Use DESTDIR instead of TMPDIR
+    Add ability to link in extra hunks into the cpio file
+    Cosmetic cleanups
+    
+  * scripts/functions: Add lsb stype log_FOO_msg functions
+
+  * scripts/local: Add logging
+
+  * scripts/nfs: Add logging
+
+  Thanks to Karl Hegbloom for most of these patches!
+
+  * debian/control: Get a much better description
+
+  Thanks to Maximilian Attems for this!
+
+  * scripts/functions: Add copy_exec function that copies a program
+    and all libraries that it depends on.
+
+  * mkinitramfs: Use it
+
+  * scripts/local-top/lvm: New file
+
+  * mkinitramfs: Specify the modules to copy rather than mass copying
+    directories
+
+  * scripts/functions: Always load ide-generic to cope with ide subsystem
+    suckage.
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Wed, 29 Jun 2005 23:50:56 +0000
+
+initramfs-tools (0.12) breezy; urgency=low
+
+  "I am not young enough to know everything." - Oscar Wilde
+
+  * Don't complain if /etc/mkinitramfs/modules doesn't exist.
+
+  * Make sure that raid1 is pulled in.
+
+  * Include /etc/modprobe.d/aliases in the initramfs
+
+  * Default to currently running kernel version.
+    Based on a patch from maximilian attems, thanks!
+
+  * Handle module arguments in /etc/mkinitramfs/modules
+
+  * Do hookscripts at generation time.  Drop things into
+    /usr/share/initramfs-tools/hooks or /etc/mkinitramfs/hooks
+
+  * Make sure local-bottom and nfs-bottom get created
+    Thanks to Karl Hegbloom for these three patches!
+
+  * Prune stray echo from call_scripts
+
+  * Load raid1 for now so that md setups will work.
+
+  * Detect ide modules load
+    Thanks to Jeff Waugh for initial testing of this!
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Mon, 20 Jun 2005 23:05:04 +0000
+
+initramfs-tools (0.11) breezy; urgency=low
+
+  "Illusion is the first of all pleasures" - Oscar Wilde
+
+  * Make the init much less noisy
+
+  * Pull in all the dependancies for nfs and af_packet
+
+  * Be compatible with misdocumented mkinitrd interface
+
+  Thanks to Matt Zimmerman for the bug reports and testing!
+
+  * Update debian/copyright to have the location of the bzr
+    archive
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Fri, 17 Jun 2005 21:23:25 +0000
+
+initramfs-tools (0.10) breezy; urgency=low
+
+  The "I can see you!" release.
+
+  * Unconditionally require busybox.  Might revert this eventually
+    but it's too much of a pain right now do this without
+    a reasonably environment
+
+  * Use modprobe to load modules
+
+  * Iterate through /sys/bus/pci and /sys/bus/usb and load drivers
+    based on their modalias
+
+  * Start to use /sbin for things
+
+  * Include depmod in the image.  Use it at boot time.
+
+  * Edit config example to show the modules that do need to be included
+    manually for this build.
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Fri, 17 Jun 2005 12:45:07 +0000
+
+initramfs-tools (0.9) breezy; urgency=low
+
+  * Be consistent about y/n vs. yes/no values for the readonly variable
+
+ -- Matt Zimmerman <mdz at ubuntu.com>  Thu, 16 Jun 2005 15:22:30 -0700
+
+initramfs-tools (0.8) breezy; urgency=low
+
+  The "We are one in the spirit..." release
+
+  * Export the command line variables so that the various scripts
+    can see them.
+
+  * Honour command line 'ro' or 'rw' settings for nfs.
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Tue, 14 Jun 2005 21:35:14 +0000
+
+initramfs-tools (0.7) breezy; urgency=low
+
+  The "CONFORM!" release.
+
+  * Make command line arguments almost match mkinitrd.  The -m argument
+    doesn't make any sense, so it's not supported.  Add support for
+    overriding the confdir, and specifying version no longer expects -v.
+
+  * Add sed and grep to the initramfs for now.  Will prune these
+    eventually, but for now mdrun needs them.
+
+  * Add mdadm and mdrun to the initramfs.
+
+  * Add hookscript directories.
+
+  * Call hookscripts
+
+  Thanks to David Weinhall <tao at acc.umu.se> for the dependancy-based
+  hookscripts.
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Thu,  9 Jun 2005 17:08:01 +0000
+
+initramfs-tools (0.6) breezy; urgency=low
+
+  The "Sweep! ....  Off!" release.
+
+  * Source in the net-${DEVICE}.conf file to get IP address information.
+
+  * Add commandline parameters for NFSROOT and BOOT.
+
+  * Moving loading of boot functions to after commandline parsing.
+
+  * Allow NFSROOT variable to be set to auto to pick up value from DHCP
+    Server.
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Wed,  1 Jun 2005 12:02:40 -0400
+
+initramfs-tools (0.5) breezy; urgency=low
+
+  The "Climbing to the horizons" release.
+
+  * Update for newer udev, call "udevstart" rather than "udev udevstart"
+
+  * /etc/mkinitramfs/modules should not be a conffile.
+
+  * Support busybox.
+
+  * Fix bug where -k would delete the tmp files, and otherwise it would keep
+    them.
+
+  * Handle # for comments in the modules file.
+
+  * arch:all, not arch:any
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Tue, 31 May 2005 15:17:56 -0400
+
+initramfs-tools (0.4) breezy; urgency=low
+
+  * First upload to Ubuntu.
+
+  * Handle glibc compiled udev for now.
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Tue, 24 May 2005 14:30:07 +0000
+
+initramfs-tools (0.3) unstable; urgency=low
+
+  * Fix init and root variables
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Sat, 29 Jan 2005 17:49:08 -0500
+
+initramfs-tools (0.2) unstable; urgency=low
+
+  * Include the modules in the initrd
+  * Drop the .ko ending from the module loads.
+  * Actually chain to the sub scripts.
+  * kilbc is now named properly
+  * First cut of an NFS root implementation
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Fri, 28 Jan 2005 16:50:53 -0500
+
+initramfs-tools (0.1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Jeff Bailey <jbailey at ubuntu.com>  Thu, 27 Jan 2005 15:23:52 -0500
+

Added: dists/trunk/utils/initramfs-tools/debian/compat
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/debian/compat	Fri Jun 23 16:40:49 2006
@@ -0,0 +1 @@
+4

Added: dists/trunk/utils/initramfs-tools/debian/control
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/debian/control	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,20 @@
+Source: initramfs-tools
+Section: utils
+Priority: optional
+Uploaders: Jeff Bailey <jbailey at ubuntu.com>, maximilian attems <maks at sternwelten.at>
+Maintainer: Debian kernel team <debian-kernel at lists.debian.org>
+Build-Depends: debhelper (>= 4.1.0), cdbs
+Standards-Version: 3.7.2.0
+
+Package: initramfs-tools
+Architecture: all
+Depends: klibc-utils (>= 1.1.16-1), busybox (>= 1:1.01-3) | busybox-cvs-static (>= 20040623-1), cpio, module-init-tools, udev (>= 0.086-1)
+Provides: linux-initramfs-tool
+Description: tools for generating an initramfs
+ This package contains tools to create and boot an initramfs for prepackaged
+ 2.6 Linux kernel. The initramfs is a gzipped cpio archive. At boot time, the
+ kernel unpacks that archive into RAM, mounts and uses it as initial root file
+ system. From there on the mounting of the real root file system occurs in user
+ space. klibc handles the boot-time networking setup. Having the root on NFS
+ is also supported.
+ Any boot loader with initrd support is able to load an initramfs archive.

Added: dists/trunk/utils/initramfs-tools/debian/copyright
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/debian/copyright	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,26 @@
+This package was debianized by Jeff Bailey <jbailey at ubuntu.com> on
+Thu, 27 Jan 2005 15:23:52 -0500.
+
+The current Debian maintainer is maximilian attems <maks at sternwelten.at>
+
+The source code up to 0.31 can be found by using "bzr" at:
+http://people.ubuntu.com/~jbailey/bzrtree/initramfs-tools
+
+The current ubuntu release can be found at:
+http://archive.ubuntu.com/ubuntu/pool/main/i/initramfs-tools/
+
+The Debian tree is maintained with "bzr" at:
+http://debian.stro.at/bzr-test/initramfs-tools/
+
+Authors: Jeff Bailey <jbailey at ubuntu.com>, Adam Conrad <adconrad at ubuntu.com>,
+	 Scott James Remnant <scott at ubuntu.com>, 
+	 maximilian attems <maks at sternwelten.at>
+
+Copyright: 2005 Jeff Bailey
+	   2005 - 2006 Adam Conrad
+	   2005 - 2006 Scott James Remnant
+	   2005 - 2006 maximilian attems
+
+License:
+
+PUBLIC DOMAIN

Added: dists/trunk/utils/initramfs-tools/debian/initramfs-tools.dirs
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/debian/initramfs-tools.dirs	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,13 @@
+etc/initramfs-tools/scripts/init-bottom
+etc/initramfs-tools/scripts/init-premount
+etc/initramfs-tools/scripts/init-top
+etc/initramfs-tools/scripts/local-bottom
+etc/initramfs-tools/scripts/local-premount
+etc/initramfs-tools/scripts/local-top
+etc/initramfs-tools/scripts/nfs-bottom
+etc/initramfs-tools/scripts/nfs-premount
+etc/initramfs-tools/scripts/nfs-top
+etc/initramfs-tools/hooks
+etc/initramfs-tools/conf.d
+usr/share/initramfs-tools/modules.d
+/var/lib/initramfs-tools

Added: dists/trunk/utils/initramfs-tools/debian/initramfs-tools.docs
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/debian/initramfs-tools.docs	Fri Jun 23 16:40:49 2006
@@ -0,0 +1 @@
+HACKING

Added: dists/trunk/utils/initramfs-tools/debian/initramfs-tools.examples
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/debian/initramfs-tools.examples	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,4 @@
+conf/modules
+docs/example_script
+docs/example_hook
+docs/example_hook_cpiogz

Added: dists/trunk/utils/initramfs-tools/debian/initramfs-tools.install
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/debian/initramfs-tools.install	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,10 @@
+mkinitramfs		usr/sbin
+mkinitramfs-kpkg	usr/sbin
+init			usr/share/initramfs-tools
+scripts			usr/share/initramfs-tools
+conf/initramfs.conf	etc/initramfs-tools
+conf/modules		etc/initramfs-tools
+hooks			usr/share/initramfs-tools
+hook-functions		usr/share/initramfs-tools
+update-initramfs	usr/sbin
+debian/bug		usr/share/bug/initramfs-tools

Added: dists/trunk/utils/initramfs-tools/debian/initramfs-tools.manpages
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/debian/initramfs-tools.manpages	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,5 @@
+mkinitramfs.8
+mkinitramfs-kpkg.8
+initramfs.conf.5
+initramfs-tools.8
+update-initramfs.8

Added: dists/trunk/utils/initramfs-tools/debian/initramfs-tools.postinst
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/debian/initramfs-tools.postinst	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = configure ]; then
+	if [ x${2} = x ]; then
+
+		# First time install.  Can we autodetect the RESUME partition?
+		RESUME=$(tail -n $(($(wc -l /proc/swaps | awk ' { print $1 } ') - 1)) /proc/swaps | sort -rk3 | head -n 1 | awk ' { print $1 } ')
+
+		# Inhertic initrd-tools settings if possible.
+		if [ -e /etc/mkinitrd/mkinitrd.conf ]; then
+			 . /etc/mkinitrd/mkinitrd.conf
+		fi
+
+		if [ -e /etc/mkinitrd/modules ]; then
+			cp /etc/mkinitrd/modules /etc/initramfs-tools
+			sed -i \
+			  -e 's/mkinitrd/mkinitramfs/g' \
+			  -e '/^ide-generic/d' \
+			  -e '/^ide-disk/d' \
+			  -e '/^ext2/d' \
+			  -e '/^ext3/d' \
+			  /etc/initramfs-tools/modules
+		fi
+
+		if [ -e ${RESUME} ]; then
+			echo "RESUME=${RESUME}" > /etc/initramfs-tools/conf.d/resume
+		fi
+
+		if [ -e /etc/mkinitrd/DSDT ]; then
+			cp /etc/mkinitrd/DSDT /etc/initramfs-tools/DSDT.aml
+		fi
+
+	fi
+fi
+
+# Regenerate initramfs on upgrade
+if [ "$1" = "configure" -a -n "$2" ]; then
+	update-initramfs -u
+fi
+
+#DEBHELPER#
+

Added: dists/trunk/utils/initramfs-tools/debian/initramfs-tools.postrm
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/debian/initramfs-tools.postrm	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ "x${1}" = "xpurge" ]; then
+	rm -f /etc/initramfs-tools/modules
+	rm -f /etc/initramfs-tools/conf.d/resume
+fi
+
+#DEBHELPER#
+

Added: dists/trunk/utils/initramfs-tools/debian/initramfs-tools.preinst
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/debian/initramfs-tools.preinst	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+	upgrade)
+	if [ -n "$2" ] && dpkg --compare-versions "$2" lt "0.61"; then
+		if [ -d /etc/initramfs-tools ]; then
+			echo
+			echo "Warning: /etc/initramfs-tools already exists."
+			echo "         Please remove it for upgrade."
+			echo
+			exit 1
+		fi
+		if [ -d /etc/mkinitramfs ]; then
+			mv /etc/mkinitramfs /etc/initramfs-tools
+		fi
+	fi
+	;;
+esac
+
+[ -f /etc/initramfs-tools/initramfs.conf ] && . /etc/initramfs-tools/initramfs.conf
+if [ -z ${RESUME} ]; then
+       exit 0
+else
+       mkdir -p /etc/initramfs-tools/conf.d
+       echo "RESUME=${RESUME}" > /etc/initramfs-tools/conf.d/resume
+       sed -i -e "s/RESUME=.*/#RESUME=/" /etc/initramfs-tools/initramfs.conf
+fi
+
+#DEBHELPER#

Added: dists/trunk/utils/initramfs-tools/debian/rules
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/debian/rules	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+
+pre-build::
+	chmod +x init mkinitramfs
+	chmod +x hooks/*
+	for x in `find scripts/ -maxdepth 1 -type d | tail -n+2`; do \
+	  chmod -R +x $$x; \
+	done

Added: dists/trunk/utils/initramfs-tools/docs/example_hook
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/docs/example_hook	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,114 @@
+#!/bin/sh
+
+#
+# This is an example hook script.  It will be run by 'mkinitramfs'
+# when it creates the image.  It's job is to decide which files to
+# install, then install them into the staging area, where the
+# initramfs is being created.  This happens when a new 'linux-image'
+# package is installed, or when the administrator runs 'mkinitramfs'
+# by hand to update an initramfs image.
+#
+# TODO: What about the case where you install something that should be
+#	added to the initramfs, but the linux-image it relates to has
+#	already been installed previously?  Does this happen often
+#	enough that it needs to be handled?  How can it be handled?
+#	
+#	* Think about the 'usplash'.  The initramfs will need to be
+#	 updated if a theme change or update is desired.  Maybe it
+#	 should not be totally automatic, but offered on upgrade
+#	 predicated on a user response to a debconf question?  That
+#	 issue needs to be explored and a solution specified.
+#
+#  * Do not assume that any needed subdirectories have been created
+#	yet, but don't bail out if they are already there.
+#
+#  * All of the standard system tools are available, of course, since
+#	this hook is running in the real system, not the initramfs.
+#
+#  * TODO: ... ?  Anything else to tell them in this bullet-list?
+#
+
+#
+# The environment contains at least:
+#
+#  CONFDIR -- usually /etc/mkinitramfs, can be set on mkinitramfs
+#		 command line.
+#
+#  DESTDIR -- The staging directory where we are building the image.
+#
+# TODO: Decide what environment variables are meaningful and defined
+#	in this context, then document them as part of the interface.
+#
+# TODO: May need a version_compare function for comparison of VERSION?
+
+
+#
+# List the soft prerequisites here.  This is a space separated list of
+# names, of scripts that are in the same directory as this one, that
+# must be run before this one can be.
+#
+PREREQ=""
+
+prereqs()
+{
+	echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+
+
+# You can do anything you need to from here on.
+#
+
+# Source the optional 'hook-functions' scriptlet, if you need the
+# functions defined within it.  Read it to see what is available to
+# you.  It contains functions for copying dynamically linked program
+# binaries, and kernel modules into the DESTDIR.
+#
+. /usr/share/initramfs-tools/hook-functions
+
+
+# If this hook script is a conffile (and thus stored in
+# /etc/mkinitramfs/hooks), it must take care to do the right thing
+# when the package containing it is removed but not purged.  There of
+# course may be other reasons to have custom logic deciding what to
+# install.  The version variable may be useful for this.
+#
+if [ -x /usr/bin/myprog ]; then
+	copy_exec /usr/bin/myprog usr/bin
+fi
+
+# To accompany this, there should usually be a script for inside the
+# initramfs named something like:
+#
+#   "/etc/mkinitramfs/local-premount/myprog"
+#
+# ... and it should do what is necessary to have 'myprog' get run
+# inside the early runtime environment.
+
+# Handle an error:
+#
+if [ -n "$an_error_occured" ];
+then
+	# 
+	# TODO: Do we need 'warn()', 'error()', and/or 'fatal()' for this?
+	# 
+	echo "An error occured in $0: $an_error_occured" >&2
+	exit 1
+	#
+	# TODO: Decide if different error codes are meaningful, what they
+	#	mean, and what the semantics of them are wrt 'mkinitramfs'
+	#	pass or fail.  Consider naming the error values with
+	#	mnemonic symbols rather than magic numbers.  They may or
+	#	may not be the same set of errors as the set for
+	#	in-initramfs scripts.
+	#
+fi
+
+exit 0

Added: dists/trunk/utils/initramfs-tools/docs/example_hook_cpiogz
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/docs/example_hook_cpiogz	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,84 @@
+#!/bin/sh
+
+#
+# The environment contains at least:
+#
+#  CONFDIR -- usually /etc/mkinitramfs, can be set on mkinitramfs
+#		 command line.
+#
+#  DESTDIR -- The staging directory where we are building the image.
+#
+# TODO: Decide what environment variables are meaningful and defined
+#	in this context, then document them as part of the interface.
+#
+# TODO: Write a common header for these examples or move this
+#	documentation to a man page and reference it here. :-)
+#
+
+#
+# List the soft prerequisites here.  This is a space separated list of
+# names, of scripts that are in the same directory as this one, that
+# must be run before this one can be.
+#
+PREREQ=""
+
+prereqs()
+{
+	echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+
+#
+# Source the 'hook-functions' scriptlet (for 'catenate_cpiogz'):
+#
+. /usr/share/initramfs-tools/hook-functions
+
+#
+# Lets pretend it has a conffile (think debconf), and we source it
+# here.  Don't make debconf lookup calls here.  The postinst for the
+# package owning this hook script should have done that and configured
+# the "/etc/default/conffile" already.
+#
+# TODO: How does the package ensure that it's installed BEFORE the
+#	corresponding 'linux-image' package?  Can it declare that, in
+#	the case where it's an add-on that the 'linux-image' is not
+#	aware of?  This might be an apt and dpkg issue.
+#	
+#	* Eg. an optional usplash or suspend2ui_fbsplash package.
+#
+. /etc/default/mypackage-initramfs
+
+#
+# Also pretend that we only include our initramfs overlay if an opion
+# is not "no", and the 'linux-image' package we are generating this
+# initramfs for matches the version this script's package is designed
+# for.  Just for example; pretend this example mkinitramfs hook script
+# is part of a 'linux-image' or 'xxx-modules' package.
+#
+if [ "$MYOPTION" != "no" -a "$version" = "2.6.12+ss2.1.9.1" ]; then
+	catenate_cpiogz /usr/lib/mypackage/initramfs.cpio.gz
+fi
+
+#
+# In this case, there does not have to be an (eg.):
+#
+#   "/etc/mkinitramfs/init-top/mypackage"
+#
+# ... since that script is probably inside of the initramfs overlay
+# already.  If it's a conffile though, it does not belong in there,
+# and should be placed in the appropriate location inside of
+# "/etc/mkinitramfs".  Remember that if it needs access to the
+# settings in our "/etc/default/mypackage-initramfs", then that file
+# must also get copied into a location inside of ${DESTDIR} by this
+# hook script in order to make it available inside of the initramfs
+# environment.
+#
+
+exit 0

Added: dists/trunk/utils/initramfs-tools/docs/example_script
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/docs/example_script	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,90 @@
+#!/bin/sh
+
+#
+# This script is run inside of the initramfs environment during the
+# system boot process.  It is installed there by 'mkinitramfs'.  The
+# package that owns it may opt to install it in either an appropriate
+# location under "/usr/share/initramfs-tools/scripts/", or a similar
+# location under "/etc/mkinitramfs/scripts/", depending upon whether
+# it should be considered to be a user modifiable conffile or not.
+#
+# TODO: How do we deal with the case where the package that installed
+#	this has been removed but not purged, if we always arbitrarily
+#	copy all of these scripts into the initramfs?
+#
+#  * The available toolset is limited inside this environment...
+#
+#	TODO: document that toolset in the man page.
+#
+#  * /dev, /proc, and /sys are already mounted.  / is a ?? ro/rw
+#	filesystem... etc. more documentation.
+#
+#  * It is expected that /proc and /sys will be umounted before
+#	changing over to the real root file system, so you must not keep
+#	any files open on them beyond these scripts.
+#
+#  * You may like to strip these documentation comments from this
+#	example if you take it for a template, to save a little space in
+#	the initramfs, since nobody will ever read it from inside of
+#	there anyhow.
+#
+
+#
+# The environment contains at least the following variables:
+#
+# TODO: Decide what environment variables are meaningful and defined
+#	in this context, then document them as part of the interface.
+#
+# Because this script will be run as a full separate process, rather
+# than sourced inside the context of the driver script, if it needs to
+# pass information to another script that may run after it, it must do
+# so by writing data to a file location known to both scripts.  Simply
+# setting an environment variable will not work.
+#
+
+#
+# List the soft prerequisites here.  This is a space separated list of
+# names, of scripts that are in the same directory as this one, that
+# must be run before this one can be.
+#
+PREREQ=""
+
+prereqs()
+{
+	echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+
+# Do the work here.
+
+echo "Got here!"
+
+# Handle an error:
+
+if [ -n "$an_error_occured" ];
+then
+	# 
+	# TODO: Do we need 'warn()', 'error()', and/or 'fatal()' for this?
+	# I think we ultimately do, and that they need to be in their own
+	# well-documented location so that an overlay can override them.
+	# Think 'usplash' progress updates.
+	# 
+	echo "An error occured in $0: $an_error_occured" >&2
+	exit 1
+	#
+	# TODO: Decide if different error codes are meaningful, what they
+	#	mean, and what the semantics of them are wrt 'init' pass
+	#	or panic.  Consider naming the error values with mnemonic
+	#	symbols rather than magic numbers.
+	#
+fi
+
+exit 0
+

Added: dists/trunk/utils/initramfs-tools/foo
==============================================================================

Added: dists/trunk/utils/initramfs-tools/hook-functions
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/hook-functions	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,228 @@
+# -*- shell-script -*-
+
+catenate_cpiogz() {
+	# Sanity check
+	if [ ! -e "${1}" ]; then
+		echo "W:catenate_cpiogz: arg1='${1}' does not exist." >&2
+		return
+	fi
+
+	cat "${1}" >>"${__TMPCPIOGZ}"
+}
+
+force_load()
+{
+		manual_add_modules ${@}
+		echo "${@}" >>"${DESTDIR}/conf/modules"
+}
+
+# Takes a file containing a list of modules to be added as an
+# argument, figures out dependancies, and adds them.
+#
+# Input file syntax:
+#
+#   # comment
+#   modprobe_module_name [args ...]
+#   [...]
+#
+add_modules_from_file()
+{
+	# Sanity check
+	if [ ! -e "${1}" ]; then
+		echo "W:add_modules_from_file: arg1='${1}' does not exist." >&2
+		return
+	fi
+
+	sed -e '/^#/d' ${1} | while read module rest; do
+		force_load "${module}" "${rest}"
+	done
+}
+
+manual_add_modules()
+{
+	for mam_x in $(modprobe --set-version="${version}" --show-depends "${1}" 2>/dev/null | awk '/^insmod/ { print $2 }'); do
+		# Prune duplicates
+		if [ -e "${DESTDIR}/${mam_x}" ]; then
+			continue
+		fi
+
+		mkdir -p "${DESTDIR}/$(dirname "${mam_x}")"
+		ln -s "${mam_x}" "${DESTDIR}/$(dirname "${mam_x}")"
+		if [ -n "${verbose}" -a "${verbose}" = "y" ]; then
+			echo "Adding module ${mam_x}"
+		fi
+	done
+}
+
+# $1 is source
+# $2 is relative destination
+copy_exec() {
+	final_destination=${DESTDIR}/${2}/`basename ${1}`
+	if [ -L "$final_destination" ]; then
+		if ! [ `readlink ${final_destination}` = "${1}" ]; then
+			echo "W:copy_exec: Not copying ${1} to \$DESTDIR${2}/`basename ${1}`, which is already a copy of `readlink ${final_destination}`" >&2
+			return
+		fi
+	else
+		ln -s ${1} ${DESTDIR}/${2}
+	fi
+
+	# Copy the dependant libraries
+	for x in $(ldd ${1} 2>/dev/null | sed -e '
+	    /\//!d;
+	    /linux-gate/d;
+	    /=>/ {s/.*=>[[:blank:]]*\([^[:blank:]]*\).*/\1/};
+	    s/[[:blank:]]*\([^[:blank:]]*\) (.*)/\1/' 2>/dev/null); do
+
+		# Try to use non-optimised libraries where possible.
+		# We assume that all HWCAP libraries will be in tls.
+		nonoptlib=$(echo ${x} | sed -e 's#/lib/tls.*/\(lib.*\)#/lib/\1#')
+
+		if [ -e ${nonoptlib} ]; then
+			x=${nonoptlib}
+		fi
+
+		libname=$(basename ${x})
+		dirname=$(dirname ${x})
+
+		mkdir -p ${DESTDIR}/${dirname}
+		if [ ! -e ${DESTDIR}/${dirname}/${libname} ]; then
+			ln -s ${x} ${DESTDIR}/${dirname}
+		fi
+	done
+}
+
+# Copy entire subtrees to the initramfs
+copy_modules_dir()
+{
+	tmpdir_modbase="${DESTDIR}/lib/modules/${version}"
+	mkdir -p "$(dirname "${tmpdir_modbase}/${1}")"
+	cp -a "${MODULESDIR}/${1}" "${tmpdir_modbase}/${1}"
+}
+
+dep_add_modules()
+{
+
+	# Things that are too hard to autodetect.
+	for x in ext2 ext3 isofs jfs nfs reiserfs xfs af_packet; do
+		manual_add_modules "${x}"
+	done
+
+	for x in /sys/bus/pci/devices/*; do
+		if [ -e "${x}/modalias" ]; then
+			manual_add_modules $(cat "${x}/modalias")
+		fi
+	done
+
+	for x in /sys/bus/usb/devices/*; do
+		if [ -e "${x}/modalias" ]; then
+			manual_add_modules $(cat "${x}/modalias")
+		fi
+	done
+
+	if [ -e /proc/ide ]; then
+		for x in ide-generic ide-disk ide-cd; do
+			manual_add_modules "${x}"
+		done
+	fi
+
+	if [ -e /sys/bus/scsi/devices/ ]; then
+		manual_add_modules sd_mod
+	fi
+
+	if [ -e /sys/bus/i2o/devices/ ]; then
+		manual_add_modules i2o_block
+	fi
+}
+
+
+# The modules "most" classes added per default to the initramfs
+auto_add_modules()
+{
+	case "$1" in
+	base)
+		for x in ehci-hcd ohci-hcd uhci-hcd usbhid usb-storage ext2 \
+		ext3 isofs jfs nfs reiserfs xfs af_packet atkbd i8042; do
+			manual_add_modules "${x}"
+		done
+	;;
+	net)
+		for x in 3c59x 8139cp 8139too 8390 b44 bmac bnx2 defxx \
+		dl2k e1000 e100 epic100 eql fealnx famachi forcedeth \
+		hp100 mace mv643xx_eth natsemi ne2k-pci netconsole \
+		ns83820 pcnet32 r8169 s2io sis900 skge slhc starfire \
+		sundance sungem sungem_phy sunhme tg3 tlan de2104x \
+		de4x5 dmfe tulip winbond-840 xircom_cb xircom_tulip_cb \
+		typhon via-rhine via-velocity yellowfin; do
+			manual_add_modules "${x}"
+		done
+	;;
+	ide)
+		for x in ide-cd ide-disk ide-generic aec62xx alim15x3 \
+		amd74xx atiixp atuuxo cmd64x cs5520 cs5530 cy82c693 \
+		generic hpt34x hpt366 it821x ns87415 opti621 pdc202xx_new \
+		pdc202xx_old piix rz1000 sc1200 serverworks siimage \
+		sis5513 slc82c105 slc90e66 triflex trm290 via82cxxx; do
+			manual_add_modules "${x}"
+		done
+	;;
+	scsi)
+		for x in 3w-9xxx 3w-xxxx a100u2x aacraid advansys ahci \
+		aic79xx aic7xxx arcmsr ata_piix atari_scsi atp870u BusLogic \
+		cciss ch cpqarray dac960 dc395x dmx3191d dpt_i2o eata fdomain \
+		gdth ibmvscsic initio ipr ips isp1020 lpfc max_scsi mac53c94 \
+		megaraid megaraid_mbox megaraid_mm mesh mptfc mptscsih \
+		mptsas mptspi nsp32 osst qla1280 qla2100 qla2200 qla2300 \
+		qla2322 qla2xxx qla6312 qlogicfas408 qlogicfc sata_mv \
+		sata_nv sata_promise sata_qstor sata_sil sata_sis sata_svw \
+		sata_sx4 sata_uli sata_via sata_vsc scsi_mod \
+		scsi_transport_fc scsi_transport_iscsi scsi_transport_spi \
+		sd_mod sym53c8xx tmscsim zfcp; do
+			manual_add_modules "${x}"
+		done
+	;;
+	ieee1394)
+		for x in ohci1394 sbp2; do
+			manual_add_modules "${x}"
+		done
+	;;
+	i2o)
+		for x in i2o_block; do
+			manual_add_modules "${x}"
+		done
+	;;
+	dasd)
+		for x in dasd_eckd_mod dasd_fba_mod; do
+			manual_add_modules "${x}"
+		done
+	;;
+	*)
+		auto_add_modules base
+		auto_add_modules net
+		auto_add_modules ide
+		auto_add_modules scsi
+		auto_add_modules i2o
+		auto_add_modules dasd
+		auto_add_modules ieee1394
+	;;
+	esac
+}
+
+usage()
+{
+	cat >&2 << EOF
+
+Usage: ${0} [OPTION]... <-o outfile> [version]
+
+Options:
+  -d confdir  Specify an alternative configuration directory.
+  -k          Keep temporary directory used to make the image.
+  -o outfile  Write to outfile.
+  -r root     Override ROOT setting in mkinitrd.conf.
+
+See mkinitramfs(8) for further details.
+EOF
+	exit 1
+
+}
+

Added: dists/trunk/utils/initramfs-tools/hooks/kernelextras
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/hooks/kernelextras	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+PREREQ=""
+
+prereqs()
+{
+	echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+
+# Hooks for loading loading extra kernel bits into the initramfs
+
+. /usr/share/initramfs-tools/hook-functions
+
+fbcon=n
+
+for x in ${MODULESDIR}/initrd/*; do
+	x=${x##*/}
+	x=${x%.*}
+	case ${x} in
+	'*')
+		break
+		;;
+	*fb)
+		fbcon=y
+		;;
+	esac
+
+	force_load ${x}
+done
+
+if [ ${fbcon} = "y" ]; then
+	force_load fbcon
+fi
+

Added: dists/trunk/utils/initramfs-tools/hooks/lvm
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/hooks/lvm	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+PREREQ=""
+
+prereqs()
+{
+	echo "$PREREQ"
+}
+
+case $1 in
+prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+
+if [ ! -x /sbin/vgchange -a ! -d /lib/lvm-200 ]; then
+	exit 0
+fi
+
+. /usr/share/initramfs-tools/hook-functions
+
+copy_exec /lib/lvm-200/vgchange /sbin
+
+for x in dm_mod dm_snapshot; do
+        manual_add_modules ${x}
+done

Added: dists/trunk/utils/initramfs-tools/hooks/md
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/hooks/md	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+PREREQ=""
+
+prereqs()
+{
+	echo "$PREREQ"
+}
+
+case $1 in
+prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+
+if [ ! -x /sbin/mdadm ]; then
+	exit 0
+fi
+
+. /usr/share/initramfs-tools/hook-functions
+
+copy_exec /sbin/mdadm /sbin
+copy_exec /sbin/mdrun /sbin
+
+for x in md linear raid0 raid1 raid5 raid6 raid10; do
+        manual_add_modules ${x}
+done

Added: dists/trunk/utils/initramfs-tools/hooks/thermal
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/hooks/thermal	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+PREREQ=""
+
+prereqs()
+{
+	echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+
+# Hooks for loading thermal bits into the initramfs
+
+. /usr/share/initramfs-tools/hook-functions
+
+case "$DPKG_ARCH" in
+# copy the right modules
+powerpc|ppc64)
+	manual_add_modules therm_pm72
+	;;
+i386|amd64|ia64)
+	manual_add_modules fan
+	manual_add_modules thermal
+	;;
+esac

Added: dists/trunk/utils/initramfs-tools/init
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/init	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,148 @@
+#!/bin/sh
+
+echo "Loading, please wait..."
+
+mkdir /sys
+mkdir /proc
+mkdir /tmp
+mkdir -p /var/lock
+mount -t sysfs none /sys
+mount -t proc none /proc
+
+# Note that this only becomes /dev on the real filesystem if udev's scripts
+# are used; which they will be, but it's worth pointing out
+tmpfs_size="10M"
+if [ -e /etc/udev/udev.conf ]; then
+	. /etc/udev/udev.conf
+fi
+mount -t tmpfs -o size=$tmpfs_size,mode=0755 udev /dev
+> /dev/.initramfs-tools
+mkdir /dev/.initramfs
+mknod /dev/console c 5 1 
+mknod /dev/null c 1 3
+
+# Export the dpkg architecture
+export DPKG_ARCH=
+. /conf/arch.conf
+
+# Export it for root hardcoding
+export ROOT=
+
+# Bring in the main config
+. /conf/initramfs.conf
+for i in conf/conf.d/*; do
+       [ -f ${i} ] && . ${i}
+done
+. /scripts/functions
+
+# Parse command line options
+export break=
+export init=/sbin/init
+export quiet=n
+export readonly=y
+export resume=${RESUME}
+export rootmnt=/root
+export debug=
+export cryptopts=${CRYPTOPTS}
+
+for x in $(cat /proc/cmdline); do
+	case $x in
+	init=*)
+		init=${x#init=}
+		;;
+	root=*)
+		ROOT=${x#root=}
+		case $ROOT in
+		LABEL=*)
+			ROOT="/dev/disk/by-label/${ROOT#LABEL=}"
+			;;
+		UUID=*)
+			ROOT="/dev/disk/by-uuid/${ROOT#UUID=}"
+			;;
+		esac
+		;;
+	rootflags=*)
+		ROOTFLAGS="-o ${x#rootflags=}"
+		;;
+	cryptopts=*)
+		cryptopts="${x#cryptopts=}"
+		;;
+	nfsroot=*)
+		NFSROOT="${x#nfsroot=}"
+		;;
+	nfsopts=*)
+		NFSOPTS="-o ${x#nfsopts=}"
+		;;
+	boot=*)
+		BOOT=${x#boot=}
+		;;
+	resume=*)
+		resume=${x#resume=}
+		;;
+	quiet)
+		quiet=y
+		;;
+	ro)
+		readonly=y
+		;;
+	rw)
+		readonly=n
+		;;
+	debug)
+		debug=y
+		exec >/tmp/initramfs.debug 2>&1
+		set -x
+		;;
+	break=*)
+		break=${x#break=}
+		;;
+	break)
+		break=premount
+		;;
+	esac
+done
+
+depmod -a
+maybe_break top
+
+# Don't do log messages here to avoid confusing usplash
+run_scripts /scripts/init-top
+
+maybe_break modules
+log_begin_msg "Loading essential drivers..."
+load_modules
+log_end_msg
+
+maybe_break premount
+log_begin_msg "Running /scripts/init-premount"
+run_scripts /scripts/init-premount
+log_end_msg
+
+maybe_break mount
+log_begin_msg "Mounting root file system..."
+. /scripts/${BOOT}
+parse_numeric ${ROOT}
+mountroot
+log_end_msg
+
+maybe_break bottom
+[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/init-bottom"
+run_scripts /scripts/init-bottom
+[ "$quiet" != "y" ] && log_end_msg
+
+# Move virtual filesystems over to the real filesystem
+mount -n -o move /sys ${rootmnt}/sys
+mount -n -o move /proc ${rootmnt}/proc
+
+while [ ! -x ${rootmnt}${init} ]; do
+	panic "Target filesystem doesn't have ${init}"
+done
+
+# Confuses /etc/init.d/rc
+if [ -n ${debug} ]; then
+	unset debug
+fi
+
+# Chain to real filesystem
+maybe_break init
+exec run-init ${rootmnt} ${init} "$@" <${rootmnt}/dev/console >${rootmnt}/dev/console

Added: dists/trunk/utils/initramfs-tools/initramfs-tools.8
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/initramfs-tools.8	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,421 @@
+.TH INITRAMFS-TOOLS 8  "Date: 2005/12/06" "" "mkinitramfs script overview"
+
+.SH NAME
+initramfs-tools \- an introduction to writing scripts for mkinitramfs
+
+.SH DESCRIPTION
+initramfs-tools has one main script and two different sets of subscripts which 
+will be used during different phases of execution. Each of these will be
+discussed separately below with the help of an imaginary tool which performs a
+frobnication of a lvm partition prior to mounting the root partition.
+
+.SS Hook scripts
+These are used when an initramfs image is created and not included in the 
+image itself. They can however cause files to be included in the image.
+
+.SS Boot scripts
+These are included in the initramfs image and normally executed during 
+kernel boot in the early user-space before the root partition has been
+mounted. 
+
+initramfs-tools uses shell variable names for handling dependencies.
+Notice that `-' is not a valid shell variable name and thus should
+not be used as script filename.
+
+.SH INIT SCRIPT
+The script which is executed first and is in charge of running all other
+scripts can be found in /usr/share/initramfs-tools/init. It takes a number of
+arguments which influence the boot procedure:
+
+.SS Boot options
+
+.TP
+\fB \fI init
+the binary to hand over execution to on the root fs after the initramfs scripts are done.
+
+.TP
+\fB \fI root
+the device node to mount as the rootfs.
+
+.TP
+\fB \fI nfsroot
+can be either "auto" to try to get the relevant information from DHCP or a
+string of the form NFSSERVER:NFSPATH 
+
+.TP
+\fB \fI boot
+either local or NFS (affects which initramfs scripts are run, see the "Subdirectories" section under boot scripts).
+
+.TP
+\fB \fI resume
+device node which holds the result of a previous suspension using swsusp
+(usually the swap partition).
+
+.TP
+\fB \fI quiet
+reduces the amount of text output to the console during boot
+
+.TP
+\fB \fI ro
+mounts the rootfs read-only
+
+.TP
+\fB \fI rw
+mounts the rootfs read-write
+
+.TP
+\fB \fI debug
+generates lots of output to /tmp/initramfs.debug
+
+.TP
+\fB \fI break
+spawns a shell in the initramfs image at chosen run-time
+
+
+.SH HOOK SCRIPTS
+
+Hooks can be found in two places: /usr/share/initramfs-tools/hooks and
+/etc/initramfs-tools/hooks. They are executed during generation of the
+initramfs-image and are responsible for including all the necessary components
+in the image itself. No guarantees are made as to the order in which the
+different scripts are executed unless the prereqs are setup in the script. 
+
+.SS Header
+In order to support prereqs, each script should begin with the following lines:
+
+.RS
+.nf
+#!/bin/sh
+PREREQ=""
+prereqs()
+{
+	echo "$PREREQ"
+}
+
+case $1 in
+prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+
+. /usr/share/initramfs-tools/hook-functions
+# Begin real processing below this line
+.fi
+.RE
+
+For example, if you are writing a new hook script which relies on lvm, the line
+starting with PREREQ should be changed to PREREQ="lvm" which will ensure that
+the lvm hook script is run before your custom script.
+
+.SS Help functions
+/usr/share/initramfs-tools/hook-functions contains a number of functions which
+deal with some common tasks in a hook script:
+.TP
+\fB \fI 
+manual_add_modules
+adds a module (and any modules which it depends on) to the initramfs image.
+.RS
+.PP
+.B Example:
+manual_add_modules isofs
+.RE
+
+.TP
+\fB \fI
+add_modules_from_file
+reads a file containing a list of modules (one per line) to be added to the
+initramfs image. The file can contain comments (lines starting with #) and
+arguments to the modules by writing the arguments on the same line as the name
+of the module.
+.RS
+.PP
+.B Example:
+add_modules_from_file /tmp/modlist
+.RE
+
+.TP
+\fB \fI
+force_load
+adds a module (and its dependencies) to the initramfs image and also
+unconditionally loads the module during boot. Also supports passing arguments
+to the module by listing them after the module name.
+.RS
+.PP
+.B Example:
+force_load cdrom debug=1
+.RE
+
+.TP
+\fB \fI
+copy_modules_dir
+copies an entire module directory from /lib/modules/KERNELVERSION/ into the
+initramfs image.
+.RS
+.PP
+.B Example:
+copy_modules_dir kernel/drivers/pci/foobar
+.RE
+
+.SS Including binaries
+If you need to copy binaries to the initramfs module, a command like this
+should be used:
+.PP
+.RS
+copy_exec /sbin/mdadm "${DESTDIR}/sbin"
+.RE
+
+mkinitramfs will automatically detect which libraries the executable depends on
+and copy them to the initramfs. This means that most executables, unless
+compiled with klibc, will automatically include glibc in the image which will
+increase its size by several hundred kilobytes.
+
+
+.SH BOOT SCRIPTS
+
+Similarly to hook scripts, boot scripts can be found in two places
+/usr/share/initramfs-tools/scripts/ and /etc/initramfs-tools/scripts/. There
+are a number of subdirectories to these two directories which control the boot
+stage at which the scripts are executed.
+
+.SS Header
+Like for hook scripts, there are no guarantees as to the order in which the
+different scripts in one subdirectory (see "Subdirectories" below) are
+executed. In order to define a certain order, a similar header as for hook
+scripts should be used:
+
+.RS
+.nf
+#!/bin/sh
+PREREQ=""
+prereqs()
+{
+	echo "$PREREQ"
+}
+
+case $1 in
+prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+.fi
+.RE
+
+Where PREREQ is modified to list other scripts in the same subdirectory if necessary.
+
+.SS Help functions
+A number of functions (mostly dealing with output) are provided to boot scripts:
+
+.TP
+\fB \fI
+log_success_msg
+Logs a success message
+.RS
+.PP
+.B Example:
+log_success_msg "Frobnication successful"
+.RE
+
+.TP
+\fB \fI
+log_failure_msg
+Logs a failure message
+.RS
+.PP
+.B Example:
+log_failure_msg "Frobnication component froobz missing"
+.RE
+
+.TP
+\fB \fI
+log_warning_msg
+Logs a warning message
+.RS
+.PP
+.B Example:
+log_warning_msg "Only partial frobnication possible"
+.RE
+
+.TP
+\fB \fI
+log_begin_msg
+Logs a message that some processing step has begun
+
+.TP
+\fB \fI
+log_end_msg
+Logs a message that some processing step is finished
+.RS
+.PP
+.B Example:
+.PP
+.RS
+.nf
+log_begin_msg "Frobnication begun"
+# Do something
+log_end_msg
+.fi
+.RE
+.RE
+
+.TP
+\fB \fI
+panic
+Logs an error message and executes a shell in the initramfs image to allow the
+user to investigate the situation.
+.RS
+.PP
+.B Example:
+panic "Frobnication failed"
+.RE
+
+.SS Subdirectories
+Both /usr/share/initramfs-tools/scripts and /etc/initramfs-tools/scripts
+contains the following subdirectories.
+
+.TP
+\fB \fI
+init-top
+the scripts in this directory are the first scripts to be executed after sysfs
+and procfs have been mounted and /dev/console and /dev/null have been created.
+No other device files are present yet.
+
+.TP
+\fB \fI
+init-premount
+runs the udev hooks for populating the /dev tree (udev will keep running until
+init-bottom) after modules specified by hooks and /etc/initramfs-tools/modules
+have been loaded.
+
+.TP
+\fB \fI
+local-top OR nfs-top
+After these scripts have been executed, the root device node is expected to be
+present (local) or the network interface is expected to be usable (NFS).
+
+.TP
+\fB \fI
+local-premount OR nfs-premount
+are run after the sanity of the root device has been verified (local) or the
+network interface has been brought up (NFS), but before the actual root fs has
+been mounted.
+
+.TP
+\fB \fI
+local-bottom OR nfs-bottom
+are run after the rootfs has been mounted (local) or the NFS root share has
+been mounted. udev is stopped.
+
+.TP
+\fB \fI
+init-bottom
+are the last scripts to be executed before procfs and sysfs are moved to the
+real rootfs and execution is turned over to the init binary which should now be
+found in the mounted rootfs.
+
+.SS Boot parameters
+.TP
+\fB \fI
+/conf/param.conf
+allows boot scripts to change exported variables that are listed on top of init. Write the new values to it. It will be sourced after an boot script run if it exists.
+
+
+.SH EXAMPLES
+
+.SS Hook script
+An example hook script would look something like this (and would usually be
+placed in /etc/initramfs-tools/hooks/frobnicate):
+
+.RS
+.nf
+#!/bin/sh
+# Example frobnication hook script
+
+PREREQ="lvm"
+prereqs()
+{
+	echo "$PREREQ"
+}
+
+case $1 in
+prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+
+. /usr/share/initramfs-tools/hook-functions
+# Begin real processing below this line
+
+if [ ! -x "/sbin/frobnicate" ]; then
+	exit 0
+fi
+
+force_load frobnicator interval=10
+cp /sbin/frobnicate "${DESTDIR}/sbin"
+exit 0
+.fi
+.RE
+
+.SS Boot script
+An example boot script would look something like this (and would usually be placed in /etc/initramfs-tools/scripts/local-top/frobnicate):
+
+.RS
+.nf
+#!/bin/sh
+# Example frobnication boot script
+
+PREREQ="lvm"
+prereqs()
+{
+	echo "$PREREQ"
+}
+
+case $1 in
+prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+
+# Begin real processing below this line
+if [ ! -x "/sbin/frobnicate" ]; then
+	panic "Frobnication executable not found"
+fi
+
+if [ ! -e "/dev/mapper/frobb" ]; then
+	panic "Frobnication device not found"
+fi
+
+log_begin_msg "Starting frobnication"		
+/sbin/frobnicate "/dev/mapper/frobb" || panic "Frobnication failed"
+log_end_msg
+
+exit 0
+.fi
+.RE
+
+.SH DEBUG
+It is easy to check the generated initramfs for its content. One may need 
+to double-check if it contains the relevant binaries, libs or modules:
+.RS
+.nf
+mkdir tmp/initramfs
+cd tmp/initramfs
+gunzip -c -9 /boot/initrd.img-2.6.15-1-686 | \\
+cpio -i -d -H newc --no-absolute-filenames
+.fi
+.RE
+
+
+.SH AUTHOR
+The initramfs-tools are written by Jeff Bailey <jbailey at ubuntu.com>.
+.PP
+This manual was written by David  H\[:a]rdeman <david at 2gen.com>,
+updated by Maximilian Attems <maks at sternwelten.at>.
+
+.SH SEE ALSO
+.BR
+initramfs.conf (5), mkinitramfs (8), update-initramfs(8)
+

Added: dists/trunk/utils/initramfs-tools/initramfs.conf.5
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/initramfs.conf.5	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,66 @@
+.TH INITRAMFS.CONF 5  "$Date: 2005/12/06 $" "" "initramfs.conf manual"
+
+.SH NAME
+initramfs.conf \- configuration file for mkinitramfs
+
+.SH DESCRIPTION
+The behaviour of
+.B mkinitramfs 
+can be modified by its configuration file.
+
+Each line in the file can be a configuration variable, a blank line,
+or a comment. The value of an variable is assigned by an statement
+of the form: \fIname\fP=[\fIvalue\fP]
+
+Configuration options can be broken out into configuration snippets and
+placed in individual files in the /etc/mkinitramfs/conf.d directory.  Files
+in this directory are always read \fBafter\fP the main configuration file,
+so you can override the settings in the main config file without editing it
+directly.
+
+.SH GENERAL VARIABLES
+.TP
+\fB MODULES
+Specifies the modules for the initramfs image.
+The default setting is \fImost\fP.
+
+\fImost\fP adds all the framebuffer, acpi, file system, ide, sata, scsi and usb drivers.
+
+\fIdep\fP tries to guess which modules are necessary for the running box.
+
+\fInetboot\fP adds the base modules, network modules, but skips block devices.
+
+\fIlist\fP includes only modules from the additional modules list.
+
+.TP
+\fB RESUME
+Optional setting of the swap partition to resume from.
+The resume= passed on the command line of your boot loader 
+will override this setting.    By default, this is set in
+/etc/mkinitramfs/conf.d/resume.
+
+.SH NFS VARIABLES
+.TP
+\fB BOOT
+Allows to use an nfs drive as the root of the drive. 
+The default is to boot of an \fIlocal\fP media (harddrive, USB stick).
+Set to \fInfs\fP for an NFS root share.
+
+.TP
+\fB DEVICE
+Specifies the network interface, like eth0.
+
+.TP
+\fB NFSROOT
+Defaults to \fIauto\fP in order to pick up value from DHCP server.
+Otherwise you need to specify \fIHOST:MOUNT\fP.
+
+.SH SEE ALSO
+
+.BR initramfs-tools (8), mkinitramfs (8), update-initramfs (8)
+
+.SH AUTHOR
+The initramfs-tools are written by Jeff Bailey <jbailey at raspberryginger.com>.
+This manual is maintained by Maximilian Attems <maks at sternwelten.at>.
+Loosely based on mkinitrd.conf by Herbert Xu.
+

Added: dists/trunk/utils/initramfs-tools/mkinitramfs
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/mkinitramfs	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,231 @@
+#!/bin/sh
+
+umask 0022
+
+# Defaults
+keep="n"
+CONFDIR="/etc/initramfs-tools"
+verbose="n"
+errors_to="2>/dev/null"
+# BUSYBOXDIR="/usr/lib/initramfs-tools/bin/"
+BUSYBOXDIR="/bin" 
+
+OPTIONS=`getopt -o d:ko:r:v --long supported-host-version:,supported-target-version: -n "$0" -- "$@"`
+
+# Check for non-GNU getopt
+if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
+
+eval set -- "$OPTIONS"
+
+while true; do
+	case "$1" in
+	-d)
+		CONFDIR="$2"
+		shift 2
+		if [ ! -d "${CONFDIR}" ]; then
+			echo "${0}: ${CONFDIR}: Not a directory" >&2
+			exit 1
+		fi
+		;;
+	-o)
+		touch $2
+		outfile="$(readlink -f "$2")"
+		shift 2
+		;;
+	-k)
+		keep="y"
+		shift
+		;;
+	-r)
+		ROOT="$2"
+		shift 2
+		;;
+	-v)
+		verbose="y"
+		shift
+		;;
+	--supported-host-version)
+		supported_host_version="$2"
+		shift 2
+		;;
+	--supported-target-version)
+		supported_target_version="$2"
+		shift 2
+		;;
+	--)
+		shift
+		break
+		;;
+	*)
+		echo "Internal error!" >&2
+		exit 1
+		;;
+	esac
+done
+
+if [ -n "$supported_host_version" ] || [ -n "$supported_target_version" ]; then
+	if [ -n "$supported_host_version" ]; then
+		host_upstream_version="${supported_host_version%%-*}"
+	fi
+	if [ -n "$supported_target_version" ]; then
+		target_upstream_version="${supported_target_version%%-*}"
+		if dpkg --compare-versions "$target_upstream_version" lt "2.6.12"; then
+			exit 2
+		fi
+	fi
+	exit 0
+fi
+
+# For dependency ordered mkinitramfs hook scripts.
+. /usr/share/initramfs-tools/scripts/functions
+. /usr/share/initramfs-tools/hook-functions
+
+. "${CONFDIR}/initramfs.conf"
+EXTRA_CONF=''
+for i in ${CONFDIR}/conf.d/*; do
+       EXTRA_CONF="${EXTRA_CONF} $(basename $i | grep '^[a-z0-9][a-z0-9\._-]*$' | grep -v '\.dpkg-.*$')";
+done
+for i in ${EXTRA_CONF}; do
+. ${CONFDIR}/conf.d/${i}
+done
+
+if [ -z "${outfile}" ]; then
+	usage
+fi
+
+# And by "version" we really mean path to kernel modules
+# This is braindead, and exists to preserve the interface with mkinitrd
+if [ ${#} -ne 1 ]; then
+	version="$(uname -r)"
+else
+	version="${1}"
+fi
+
+if dpkg --compare-versions "${version}" lt 2.6.12; then
+	echo "Kernel version too old.  initramfs-tools requires at least 2.6.12."
+	exit 1
+fi
+
+case "${version}" in
+/lib/modules/*/[!/]*)
+        ;;
+/lib/modules/[!/]*)
+        version="${version#/lib/modules/}"
+        version="${version%%/*}"
+        ;;
+esac
+
+case "${version}" in
+*/*)
+        echo "$PROG: ${version} is not a valid kernel version" >&2
+        exit 1
+        ;;
+esac
+
+if [ -d "${outfile}" ]; then
+	echo "${outfile} is a directory"
+	exit 1
+fi
+
+MODULESDIR="/lib/modules/${version}"
+
+if [ ! -e "${MODULESDIR}" ]; then
+	echo "Cannot find ${MODULESDIR}"
+	exit 1
+fi
+
+DESTDIR="$(mktemp -t -d mkinitramfs_XXXXXX)" || exit 1
+__TMPCPIOGZ="$(mktemp -t mkinitramfs-OL_XXXXXX)" || exit 1
+
+DPKG_ARCH=`dpkg --print-installation-architecture`
+
+# Export environment for hook scripts.
+#
+export MODULESDIR
+export version
+export CONFDIR
+export DESTDIR
+export DPKG_ARCH
+export verbose
+
+# Private, used by 'catenate_cpiogz'.
+export __TMPCPIOGZ
+
+for d in bin conf/conf.d etc lib modules sbin scripts; do
+    mkdir -p "${DESTDIR}/${d}"
+done
+
+# MODULES=list case.  Always honour.
+for x in "${CONFDIR}/modules" /usr/share/initramfs-tools/modules.d/*; do
+	if [ -f "${x}" ]; then
+		add_modules_from_file "${x}"
+	fi
+done
+
+if [ "${MODULES}" = "dep" ]; then
+	dep_add_modules
+fi
+
+if [ "${MODULES}" = "most" ]; then
+	auto_add_modules
+fi
+
+if [ "${MODULES}" = "netboot" ]; then
+	auto_add_modules base
+	auto_add_modules net
+fi
+
+# Have to do each file, because cpio --dereference doesn't recurse down
+# symlinks.
+
+ln -s /usr/lib/klibc/bin/* ${DESTDIR}/bin
+ln -s /lib/klibc-*.so ${DESTDIR}/lib
+copy_exec /usr/share/initramfs-tools/init /init
+cp -a /usr/share/initramfs-tools/scripts/* "${DESTDIR}/scripts"
+for f in $(cd ${CONFDIR}/scripts && \
+	find . \( -name '*.dpkg*' -prune -o -name '*~' -prune \) \
+		-o -type f -print); do
+	mkdir --parents "${DESTDIR}/scripts/$(dirname "${f}")"
+cp -p "${CONFDIR}/scripts/${f}" "${DESTDIR}/scripts/$(dirname "${f}")"
+done
+echo "DPKG_ARCH=${DPKG_ARCH}" > ${DESTDIR}/conf/arch.conf
+copy_exec "${CONFDIR}/initramfs.conf" /conf
+for i in ${EXTRA_CONF}; do
+       copy_exec ${CONFDIR}/conf.d/${i} /conf/conf.d
+done
+echo "ROOT=${ROOT}" > ${DESTDIR}/conf/conf.d/root
+
+# Busybox
+rm -f ${DESTDIR}/bin/sh
+copy_exec ${BUSYBOXDIR}/busybox /bin/busybox
+ln -s ${BUSYBOXDIR}/busybox ${DESTDIR}/bin/sh
+
+# Modutils
+copy_exec /sbin/modprobe /sbin
+copy_exec /sbin/depmod /sbin
+copy_exec /sbin/rmmod /sbin
+mkdir -p "${DESTDIR}/etc/modprobe.d"
+cp -a /etc/modprobe.d/* "${DESTDIR}/etc/modprobe.d"
+
+run_scripts /usr/share/initramfs-tools/hooks
+run_scripts "${CONFDIR}"/hooks
+
+# Apply DSDT to initramfs
+if [ -e "${CONFDIR}/DSDT.aml" ]; then
+	copy_exec "${CONFDIR}/DSDT.aml" /
+fi
+
+(cd "${DESTDIR}" && find . | cpio --quiet --dereference -o -H newc | gzip -9 >"${outfile}") || exit 1
+
+if [ -s "${__TMPCPIOGZ}" ]; then
+    cat "${__TMPCPIOGZ}" >>"${outfile}" || exit 1
+fi
+
+if [ "${keep}" = "y" ]; then
+	echo "Working files in ${DESTDIR} and overlay in ${__TMPCPIOGZ}"
+else
+	rm -rf "${DESTDIR}"
+	rm -rf "${__TMPCPIOGZ}"
+fi
+
+exit 0

Added: dists/trunk/utils/initramfs-tools/mkinitramfs-kpkg
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/mkinitramfs-kpkg	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,98 @@
+#!/bin/sh
+set -eu
+
+STATEDIR=/var/lib/initramfs-tools
+supported_host_version=""
+supported_target_version=""
+outfile=""
+
+usage()
+{
+	cat >&2 << EOF
+
+Usage: ${0} <-o outfile> [version]
+
+Please use update-initramfs(8):
+${0} exists for compatibility by kernel-package(5) calls.
+See mkinitramfs-kpkg(8) for further details.
+EOF
+	exit 1
+}
+
+OPTIONS=`getopt -o m:o: --long supported-host-version:,supported-target-version: -n "$0" -- "$@"`
+# Check for non-GNU getopt
+if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
+
+eval set -- "$OPTIONS"
+
+while true; do
+	case "$1" in
+	-m)
+		# ignore
+		shift 2
+		;;
+	-o)
+		touch $2
+		outfile="$(readlink -f "$2")"
+		shift 2
+		;;
+	--supported-host-version)
+		supported_host_version="$2"
+		shift 2
+		;;
+	--supported-target-version)
+		supported_target_version="$2"
+		shift 2
+		;;
+	--)
+		shift
+		break
+		;;
+	*)
+		echo "Internal error!" >&2
+		exit 1
+		;;
+	esac
+done
+
+if [ -n "$supported_host_version" ] || [ -n "$supported_target_version" ]; then
+	if [ -n "$supported_host_version" ]; then
+		host_upstream_version="${supported_host_version%%-*}"
+	fi
+	if [ -n "$supported_target_version" ]; then
+		target_upstream_version="${supported_target_version%%-*}"
+		if dpkg --compare-versions "$target_upstream_version" lt "2.6.12"; then
+			exit 2
+		fi
+	fi
+	exit 0
+fi
+
+
+if [ -z "${outfile}" ]; then
+	usage
+fi
+
+# And by "version" we really mean path to kernel modules
+# This is braindead, and exists to preserve the interface with mkinitrd
+version="${1}"
+
+case "${version}" in
+/lib/modules/*/[!/]*)
+        ;;
+/lib/modules/[!/]*)
+        version="${version#/lib/modules/}"
+        version="${version%%/*}"
+        ;;
+esac
+
+case "${version}" in
+*/*)
+        echo "$PROG: ${version} is not a valid kernel version" >&2
+        exit 1
+        ;;
+esac
+
+# linux-image installs latest version 
+mkinitramfs -o ${outfile} ${version}
+sha1sum "${outfile}" | sed -e 's/\.new//' > "${STATEDIR}/${version}"

Added: dists/trunk/utils/initramfs-tools/mkinitramfs-kpkg.8
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/mkinitramfs-kpkg.8	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,50 @@
+.TH MKINITRAMFS-KPKG 8  "$Date: 2006/02/17 $" "" "mkinitramfs-kpkg manual"
+
+.SH NAME
+mkinitramfs-kpkg \- generates an initramfs image for kernel-package
+
+.SH SYNOPSIS
+.B mkinitramfs
+.RB [ \-o 
+.IR outfile ] 
+.RI [ version ]
+.B mkinitramfs
+.RB [ \-\-supported-host-version=
+.IR hversion ]
+.RB [ \-\-supported-target-version=
+.IR tversion ]
+
+.SH DESCRIPTION
+The
+.B mkinitramfs-kpkg
+script calls
+.B mkinitramfs
+as wrapper script for kernel-package. It preservers the old mkinitrd calling
+conventions. It's usage is not recommended.
+See
+.B update-initramfs (8)
+for an better alternative.
+
+.SH OPTIONS
+
+.TP
+\fB \-o \fI outfile
+Write the image to 
+.IR outfile .
+
+.TP
+\fB\-\-supported-host-version=\fIhversion
+This option queries if mkinitramfs can create ramdisks on a running kernel of version
+.IR hversion .
+
+.TP
+\fB\-\-supported-target-version=\fItversion
+This option queries if mkinitramfs can create ramdisks for kernel version
+.IR tversion .
+
+.SH AUTHOR
+mkinitramfs-kpkg is maintained by Maximilian Attems <maks at sternwelten.at>.
+
+.SH SEE ALSO
+
+.BR initramfs.conf (5), initramfs-tools (8), update-initramfs (8)

Added: dists/trunk/utils/initramfs-tools/mkinitramfs.8
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/mkinitramfs.8	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,94 @@
+.TH MKINITRAMFS 8  "$Date: 2006/02/17 $" "" "mkinitramfs manual"
+
+.SH NAME
+mkinitramfs \- generate an initramfs image
+
+.SH SYNOPSIS
+.B mkinitramfs
+.RB [ \-d 
+.IR confdir ] 
+.RB [ \-k ] 
+.RB [ \-o 
+.IR outfile ] 
+.RB [ \-r 
+.IR root ] 
+.RI [ version ]
+.B mkinitramfs
+.RB [ \-\-supported-host-version=
+.IR hversion ]
+.RB [ \-\-supported-target-version=
+.IR tversion ]
+
+.SH DESCRIPTION
+The
+.B mkinitramfs 
+script generates an initramfs image.
+The initramfs is a gzipped cpio archive. The archive can be used on a
+different box of the same arch with the corresponding Linux kernel.
+.B mkinitramfs
+is meant for advanced usage. On your local box 
+.B update-initramfs
+should do all necessary steps.
+
+At boot time, the kernel unpacks that archive into RAM disk, mounts and 
+uses it as initial root file system. All finding of the root device 
+happens in this early userspace.
+
+.SH OPTIONS
+.TP
+\fB \-d \fI confdir
+Set an alternate configuration directory.
+
+.TP
+\fB \-k
+Keep the temporary directory used to make the image.
+
+.TP
+\fB \-o \fI outfile
+Write the image to 
+.IR outfile .
+
+.TP
+\fB \-r \fI root
+Override the 
+.B ROOT 
+setting in 
+.IR initramfs.conf .
+
+.TP
+\fB\-\-supported-host-version=\fIhversion
+This option queries if mkinitramfs can create ramdisks on a running kernel of version
+.IR hversion .
+
+.TP
+\fB\-\-supported-target-version=\fItversion
+This option queries if mkinitramfs can create ramdisks for kernel version
+.IR tversion .
+
+.SH FILES
+.TP
+.I /etc/initramfs-tools/initramfs.conf
+The default configuration file for the script. See
+.BR initramfs.conf (5)
+for a description of the available configuration parameter.
+
+.TP
+.I /etc/initramfs-tools/modules
+Specified modules will be put in the generated image and loaded when the system boots. The format - one per line - is identical to that of
+.I /etc/modules,
+which is described in
+.BR modules (5).
+
+.TP
+.I /etc/initramfs-tools/DSDT.aml
+If this file exists, it will be appended to the initramfs in a way that causes
+it to be loaded by ACPI.
+
+
+.SH AUTHOR
+The initramfs-tools are written by Jeff Bailey <jbailey at ubuntu.com>.
+This manual is maintained by Maximilian Attems <maks at sternwelten.at>.
+
+.SH SEE ALSO
+
+.BR initramfs.conf (5), initramfs-tools (8), update-initramfs (8)

Added: dists/trunk/utils/initramfs-tools/scripts/functions
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/scripts/functions	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,221 @@
+# -*- shell-script -*-
+
+_log_msg()
+{
+    if [ "$quiet" = "y" ]; then return; fi
+    echo "$@"
+}
+
+log_success_msg()
+{
+    _log_msg "Success: $@"
+}
+
+log_failure_msg()
+{
+    _log_msg "Failure: $@"
+}
+
+log_warning_msg()
+{
+    _log_msg "Warning: $@"
+}
+
+log_begin_msg()
+{
+	if [ -x /sbin/usplash_write ]; then
+		/sbin/usplash_write "TEXT $@"
+	fi
+	_log_msg "Begin: $@ ..."
+}
+
+log_end_msg()
+{
+	if [ -x /sbin/usplash_write ]; then
+		/sbin/usplash_write "SUCCESS ok"
+	fi
+	_log_msg "Done."
+	update_progress
+}
+
+update_progress()
+{
+	[ -d /dev/.initramfs ] || return
+
+	if [ -z "$PROGRESS_STATE" ]; then
+		export PROGRESS_STATE=0
+	fi
+
+	PROGRESS_STATE=$(($PROGRESS_STATE + 1))
+	echo "PROGRESS_STATE=${PROGRESS_STATE}" > /dev/.initramfs/progress_state
+
+	if [ -x /sbin/usplash_write ]; then
+		/sbin/usplash_write "PROGRESS $PROGRESS_STATE"
+	fi
+}
+
+panic()
+{
+	if [ -x /sbin/usplash_write ]; then
+		/sbin/usplash_write "QUIT"
+	fi
+	modprobe -q i8042
+	modprobe -q atkbd
+	echo $@
+	FS1='(initramfs) ' /bin/sh </dev/console >/dev/console 2>&1
+}
+
+maybe_break()
+{
+	if [ x$1 = x${break} ]; then
+		panic "Spawning shell within the initramfs"
+	fi
+}
+
+render()
+{
+	eval "echo -n \${$@}"
+}
+
+set_initlist()
+{
+	unset initlist
+	for si_x in ${initdir}/*; do
+		if [ ! -x ${si_x} ]; then
+			continue
+		fi
+		initlist="${initlist} $(basename ${si_x})"
+	done
+}
+
+reduce_satisfied()
+{
+	deplist="$(render array_${1})"
+	for rs_x in ${runlist}; do
+		pop_list_item ${rs_x} ${deplist}
+		deplist=${tmppop}
+	done
+	eval array_${1}=\"${deplist}\"
+}
+
+get_prereqs()
+{
+	set_initlist
+	for gp_x in ${initlist}; do
+		tmp=$(${initdir}/${gp_x} prereqs)
+		eval array_${gp_x}=\"${tmp}\"
+	done
+}
+
+count_unsatisfied()
+{
+	set - ${@}
+	return ${#}
+}
+
+# Removes $1 from initlist
+pop_list_item()
+{
+	item=${1}
+	shift
+	set - ${@}
+	unset tmppop
+	# Iterate
+	for pop in ${@}; do
+		if [ ${pop} = ${item} ]; then
+			continue
+		fi
+		tmppop="${tmppop} ${pop}"
+	done
+
+}
+
+# This function generates the runlist, so we clear it first.
+reduce_prereqs()
+{
+	unset runlist
+	set_initlist
+	set - ${initlist}
+	i=$#
+	# Loop until there's no more in the queue to loop through
+	while [ ${i} -ne 0 ]; do
+		oldi=${i}
+		for rp_x in ${initlist}; do
+			reduce_satisfied ${rp_x}
+			count_unsatisfied $(render array_${rp_x})
+			cnt=${?}
+			if [ ${cnt} -eq 0 ]; then
+				runlist="${runlist} ${rp_x}"
+				pop_list_item ${rp_x} ${initlist}
+				initlist=${tmppop}
+				i=$((${i} - 1))
+			fi
+		done
+		if [ ${i} -eq ${oldi} ]; then
+			panic "PANIC: Circular dependancy.  Exiting."
+		fi
+	done
+}
+
+call_scripts()
+{
+	for cs_x in ${runlist}; do
+		${initdir}/${cs_x}
+		# allow boot scripts to modify exported boot paramaters
+		if [ -e /conf/param.conf ]; then
+			. /conf/param.conf
+		fi
+	done
+}
+
+run_scripts()
+{
+	initdir=${1}
+	get_prereqs
+	reduce_prereqs
+	call_scripts
+}
+
+# Load custom modules first
+load_modules()
+{
+	if [ -e /conf/modules ]; then
+		cat /conf/modules | while read m; do
+			if [ -z "$m" ] \
+			    || expr "$m" : "#" >/dev/null \
+			    || expr "$m" : "[ \t]+#?" > /dev/null
+			then
+				continue;
+			else
+				modprobe -q $m
+			fi
+		done
+	fi
+}
+
+# lilo compatibility
+parse_numeric() {
+	case $1 in
+	"")
+		return
+		;;
+	/*)
+		return
+		;;
+	*:*)
+		minor=${1#*:}
+		major=${1%:*}
+		;;
+	[0-9][0-9][0-9])
+		minor=$((0x${1#?}))
+		major=$((0x${1%??}))
+		;;
+	*)
+		minor=$((0x${1#??}))
+		major=$((0x${1%??}))
+		;;
+	esac
+
+	mknod /dev/root b ${major} ${minor}
+	ROOT=/dev/root
+}

Added: dists/trunk/utils/initramfs-tools/scripts/init-premount/thermal
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/scripts/init-premount/thermal	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+PREREQ=""
+
+prereqs()
+{
+	echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+
+case "$DPKG_ARCH" in
+# load the right modules
+powerpc|ppc64)
+	modprobe -q i2c-keywest
+	modprobe -q therm_pm72
+	;;
+i386|amd64|ia64)
+	modprobe -q fan
+	modprobe -q thermal
+	;;
+esac

Added: dists/trunk/utils/initramfs-tools/scripts/local
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/scripts/local	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,61 @@
+# Local filesystem mounting			-*- shell-script -*-
+
+# Parameter: Where to mount the filesystem
+mountroot ()
+{
+	[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/local-top"
+	run_scripts /scripts/local-top
+	[ "$quiet" != "y" ] && log_end_msg
+
+	# If the root device hasn't shown up yet, give it a little while
+	# to deal with removable devices
+	if [ ! -e "${ROOT}" ]; then
+		log_begin_msg "Waiting for root file system..."
+		if [ -x /sbin/usplash_write ]; then
+			/sbin/usplash_write "TIMEOUT 180" || true
+		fi
+
+		slumber=1800
+		while [ ${slumber} -gt 0 -a ! -e "${ROOT}" ]; do
+			/bin/sleep 0.1
+			slumber=$(( ${slumber} - 1 ))
+		done
+
+		if [ ${slumber} -gt 0 ]; then
+			log_end_msg 0
+		else
+			log_end_msg 1 || true
+               fi
+               if [ -x /sbin/usplash_write ]; then
+                       /sbin/usplash_write "TIMEOUT 15" || true
+               fi
+       fi
+
+       # We've given up, but we'll let the user fix matters if they can
+	while [ ! -e "${ROOT}" ]; do
+		panic "ALERT!  ${ROOT} does not exist.  Dropping to a shell!"
+	done
+
+	eval $(fstype < ${ROOT})
+
+	[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/local-premount"
+	run_scripts /scripts/local-premount
+	[ "$quiet" != "y" ] && log_end_msg
+
+	if [ ${readonly} = y ]; then
+		roflag=-r
+	else
+		roflag=-w
+	fi
+
+	# FIXME This has no error checking
+	modprobe -q ${FSTYPE}
+
+	# FIXME This has no error checking
+	# Mount root
+	mount ${roflag} -t ${FSTYPE} ${ROOTFLAGS} ${ROOT} ${rootmnt}
+
+	[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/log-bottom"
+	run_scripts /scripts/local-bottom
+	[ "$quiet" != "y" ] && log_end_msg
+}

Added: dists/trunk/utils/initramfs-tools/scripts/local-premount/suspend
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/scripts/local-premount/suspend	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+PREREQ=""
+
+prereqs()
+{
+	echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+
+if [ "x${resume}" = "x" ]; then
+	exit
+fi
+
+if [ ! -e "${resume}" ]; then
+	exit
+fi
+
+if [ -e /sys/power/resume ]; then
+	major_minor=$(ls -l ${resume} | awk '{printf "%d:%d", $5, $6}')
+	echo $major_minor >/sys/power/resume
+fi

Added: dists/trunk/utils/initramfs-tools/scripts/local-top/lvm
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/scripts/local-top/lvm	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+PREREQ="md"
+
+prereqs()
+{
+	echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+
+vg=${ROOT#/dev/mapper/}
+
+case ${vg} in
+	/dev/root)
+		unset vg
+		;;
+	/*)
+		exit 0
+		;;
+esac
+	
+modprobe -q dm-mod
+
+# Split volume group from logical volume.
+vg=$(echo ${vg} | sed -e 's#\(.*\)\([^-]\)-[^-].*#\1\2#')
+# Reduce padded --'s to -'s
+vg=$(echo ${vg} | sed -e 's#--#-#g')
+
+vgchange -ay ${vg}
+

Added: dists/trunk/utils/initramfs-tools/scripts/local-top/md
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/scripts/local-top/md	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+PREREQ="udev_helper"
+
+prereqs()
+{
+	echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+
+unset raidlvl
+gotraid=n
+
+# Detect raid level
+for x in /dev/hd[a-z][0-9]* /dev/sd[a-z][0-9]*; do
+	if [ ! -e ${x} ]; then
+		continue
+	fi
+	raidlvl=$(mdadm --examine ${x} 2>/dev/null | grep "Level" | sed -e 's/.*Raid Level : \(.*\)/\1/')
+	if [ "$raidlvl" ]; then
+		modprobe -q ${raidlvl} 2>/dev/null
+		gotraid=y
+	fi
+done
+
+[ "${gotraid}" = y ] || exit
+
+/sbin/mdrun /dev

Added: dists/trunk/utils/initramfs-tools/scripts/local-top/udev_helper
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/scripts/local-top/udev_helper	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+PREREQ=""
+
+prereqs()
+{
+	echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+
+# If we're booting from IDE, it might not be a PCI controller,
+# but might be an old fashioned ISA controller; in which case
+# we need to load ide-generic.
+if [ ! -e "${ROOT}" -o "${ROOT}" = "/dev/root" ]; then
+    modprobe -q ide-generic
+fi

Added: dists/trunk/utils/initramfs-tools/scripts/nfs
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/scripts/nfs	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,42 @@
+# NFS filesystem mounting			-*- shell-script -*-
+
+# FIXME This needs error checking
+
+# Paramter: Where the root should be mounted
+mountroot ()
+{
+	[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/nfs-top"
+	run_scripts /scripts/nfs-top
+	[ "$quiet" != "y" ] && log_end_msg
+
+	modprobe -q nfs
+	# For DHCP
+	modprobe -q af_packet
+
+	ipconfig ${DEVICE}
+	. /tmp/net-${DEVICE}.conf
+	if [ "x${NFSROOT}" = "xauto" ]; then
+		NFSROOT=${ROOTSERVER}:${ROOTPATH}
+	fi
+
+	if [ "x${NFSOPTS}" = "x" ]; then
+		NFSOPTS="-o retrans=10"
+	fi
+
+	[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/nfs-premount"
+	run_scripts /scripts/nfs-premount
+	[ "$quiet" != "y" ] && log_end_msg
+
+	if [ ${readonly} = y ]; then
+		roflag="-o ro"
+	else
+		roflag="-o rw"
+	fi
+
+	nfsmount ${roflag} ${NFSOPTS} ${NFSROOT} ${rootmnt}
+
+	[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/nfs-bottom"
+	run_scripts /scripts/nfs-bottom
+	[ "$quiet" != "y" ] && log_end_msg
+
+}

Added: dists/trunk/utils/initramfs-tools/update-initramfs
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/update-initramfs	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,320 @@
+#!/bin/sh
+
+STATEDIR=/var/lib/initramfs-tools
+BOOTDIR=/boot
+
+set -e
+
+usage()
+{
+	if [ -n "${1}" ]; then
+		printf "${@}\n\n" >&2
+	fi
+	cat >&2 << EOF
+Usage: ${0} [OPTION]...
+
+Options:
+ -k [version]	Specify kernel version or all
+ -c		Create a new initramfs
+ -u		Update an existing initramfs
+ -d		Remove an existing initramfs
+ -t		Take over a custom initramfs with this one
+ -v		Be verbose
+ -h		This message
+
+EOF
+	exit 1
+}
+
+mild_panic()
+{
+	if [ -n "${1}" ]; then
+		printf "${@}\n" >&2
+	fi
+	exit 0
+}
+
+panic()
+{
+	if [ -n "${1}" ]; then
+		printf "${@}\n" >&2
+	fi
+	exit 1
+}
+
+verbose()
+{
+	if [ "${verbose}" = 1 ]; then
+		printf "${@}\n"
+	fi
+}
+
+version_exists()
+{
+	[ -e "${STATEDIR}/${1}" ]
+	return $?
+}
+
+set_initramfs()
+{
+	initramfs="${BOOTDIR}/initrd.img-${version}"
+}
+
+generate_initramfs()
+{
+	verbose "Generating ${initramfs}"
+	OPTS="-o"
+	if [ "${verbose}" = 1 ]; then
+		OPTS="-v $OPTS"
+	fi
+	mkinitramfs $OPTS "${initramfs}" "${version}"
+	set_sha1
+}
+
+# only run lilo if no grub is around
+run_bootloader()
+{
+	if [ -x /sbin/grub -o -e /boot/grub/menu.lst ]; then
+		if [ -e /etc/lilo.conf ]; then
+			echo
+			echo "WARNING: grub and lilo installed."
+			echo "If you use grub as bootloader everything is fine."
+			echo "If you use lilo as bootloader you must run lilo!"
+			echo
+		fi
+		return 0
+	fi
+	if [ -e /etc/lilo.conf ]; then
+		lilo -t > /dev/null
+		if [ $? -eq 0 ]; then
+			lilo
+		fi
+	fi
+}
+
+compare_sha1()
+{
+	sha1sum "${initramfs}" | diff "${STATEDIR}/${version}" - >/dev/null 2>&1
+	return $?
+}
+
+# Note that this must overwrite so that updates work.
+set_sha1()
+{
+	sha1sum "${initramfs}" > "${STATEDIR}/${version}"
+}
+
+delete_sha1()
+{
+	rm -f "${STATEDIR}/${version}"
+}
+
+get_sorted_versions()
+{
+	version_list=""
+
+	for gsv_x in "${STATEDIR}"/*; do
+		gsv_x="$(basename "${gsv_x}")"
+		if [ "${gsv_x}" = '*' ]; then
+			verbose "Nothing to do, exiting."
+			exit 0
+		fi
+		worklist=""
+		for gsv_i in $version_list; do
+			if dpkg --compare-versions "${gsv_x}" '>' "${gsv_i}"; then
+				worklist="${worklist} ${gsv_x} ${gsv_i}"
+				gsv_x=""
+			else
+				worklist="${worklist} ${gsv_i}"
+			fi
+		done
+		if [ "${gsv_x}" != "" ]; then
+			worklist="${worklist} ${gsv_x}"
+		fi
+		version_list="${worklist}"
+	done
+
+	verbose "Available versions: ${version_list}"
+}
+
+set_current_version()
+{
+	if [ -f /boot/initrd.img-`uname -r` ]; then
+		version=`uname -r`
+	fi
+}
+
+set_linked_version()
+{
+	if [ -L /initrd.img ]; then
+		linktarget="$(basename "$(readlink /initrd.img)")"
+	fi
+
+	if [ -L /boot/initrd.img ]; then
+		linktarget="$(basename "$(readlink /boot/initrd.img)")"
+	fi
+
+	if [ -z "${linktarget}" ]; then
+		return
+	fi
+
+	version="${linktarget##initrd.img-}"
+}
+
+set_highest_version()
+{
+	get_sorted_versions
+	set - ${version_list}
+	version=${1}
+}
+
+create()
+{
+	if [ -z "${version}" ]; then
+		usage "Create mode requires a version argument"
+	fi
+
+	set_initramfs
+
+	if [ "${takeover}" = 0 ]; then
+		if version_exists "${version}"; then
+			panic "Cannot create version ${version}: already exists"
+		fi
+	
+		if [ -e "${initramfs}" ]; then
+			panic "${initramfs} already exists, cannot create."
+		fi
+	fi
+
+	generate_initramfs
+}
+
+update()
+{
+	if [ -z "${version}" ]; then
+		set_current_version
+	fi
+
+	if [ -z "${version}" ]; then
+		set_linked_version
+	fi
+
+	if [ -z "${version}" ]; then
+		set_highest_version
+	fi
+
+	if [ "${version}" = "all" ]; then
+		: FIXME check for --yes, and if not ask are you sure
+		get_sorted_versions
+		for u_version in ${version_list}; do
+			if [ "${verbose}" = "1" ]; then
+				vflag="-v"
+			fi
+			# Don't stop if one version doesn't work.
+			set +e
+			"${0}" -u -k "${u_version}" ${vflag}
+			set -e
+		done
+		exit 0
+	fi
+
+	set_initramfs
+
+	altered_check
+
+	generate_initramfs
+
+	run_bootloader
+
+}
+
+delete()
+{
+	if [ -z "${version}" ]; then
+		usage "Delete mode requires a version argument"
+	fi
+
+	set_initramfs
+
+	if [ ! -e "${initramfs}" ]; then
+		panic "Cannot delete ${initramfs}, doesn't exist."
+	fi
+	
+	if ! version_exists "${version}"; then
+		panic "Cannot delete version ${version}: Not created by this utility."
+	fi
+
+	altered_check
+
+	delete_sha1
+
+	rm -f "${initramfs}"
+}
+
+
+altered_check()
+{
+	if [ "${takeover}" = 0 ]; then
+		if ! compare_sha1; then
+			delete_sha1
+			mild_panic "${initramfs} has been altered.  Cannot update."
+		fi
+	fi
+}
+
+# Defaults
+verbose=0
+yes=0
+# We default to takeover=1 in Ubuntu, but not Debian
+takeover=0
+
+##
+
+while getopts "k:cudyvht?" flag; do
+	case "${flag}" in
+	k)
+		version="${OPTARG}"	
+		;;
+	c)
+		mode="c"
+		;;
+	d)
+		mode="d"
+		;;
+	u)
+		mode="u"
+		;;
+	v)
+		verbose="1"
+		;;
+	y)
+		yes="1"
+		;;
+	t)
+		takeover="1"
+		;;
+	h|?)
+		usage
+		;;
+	esac
+done
+
+# Validate arguments
+
+if [ -z "${mode}" ]; then
+	usage "You must specify at least one of -c, -u, or -d."
+fi
+
+case "${mode}" in
+	c)
+		create
+		;;
+	d)
+		delete
+		;;
+	u)
+		update
+		;;
+esac
+
+

Added: dists/trunk/utils/initramfs-tools/update-initramfs.8
==============================================================================
--- (empty file)
+++ dists/trunk/utils/initramfs-tools/update-initramfs.8	Fri Jun 23 16:40:49 2006
@@ -0,0 +1,66 @@
+.TH UPDATE-INITRAMFS 8  "$Date: 2006/02/17" $" "" "update-initramfs manual"
+
+.SH NAME
+update-initramfs \- generate an initramfs image
+
+.SH SYNOPSIS
+.B update-initramfs
+.RB [ \-k 
+.IR version ] 
+.RB [ \-c ] 
+.RB [ \-u ] 
+.RB [ \-t ] 
+.RB [ \-v ] 
+.RB [ \-h ] 
+.SH DESCRIPTION
+The
+.B update-initramfs 
+script manages your initramfs images on your local box.
+It keeps track of the existing initramfs archives in /boot.
+There are three modes of operation create, update or delete.
+You must at least specify one of those modes.
+
+The initramfs is a gzipped cpio archive. 
+At boot time, the kernel unpacks that archive into RAM disk, mounts and 
+uses it as initial root file system. All finding of the root device 
+happens in this early userspace.
+
+.SH OPTIONS
+.TP
+\fB \-k \fI version
+Set the kernel version for whom the initramfs will be generated.
+For example the output of uname -r for your currently running kernel.
+
+.TP
+\fB \-c
+This mode creates a new initramfs.
+
+.TP
+\fB \-u
+This mode updates an existing initramfs.
+
+.TP
+\fB \-d
+This mode removes an existing initramfs.
+
+.TP
+\fB \-t
+Allows to take over an custom initramfs with a newer one.
+
+.TP
+\fB \-v
+This option increases the amount of information you are given during
+the chosen action.
+
+.TP
+\fB \-h
+Print a short help page describing the available options in 
+.B update-initramfs.
+
+.SH AUTHOR
+The initramfs-tools are written by Jeff Bailey <jbailey at ubuntu.com>.
+This manual is maintained by Maximilian Attems <maks at sternwelten.at>.
+
+.SH SEE ALSO
+
+.BR initramfs.conf (5), initramfs-tools (8), mkinitramfs (8)



More information about the Kernel-svn-changes mailing list