diff options
author | maximilian attems <max@stro.at> | 2007-10-04 12:04:51 +0200 |
---|---|---|
committer | maximilian attems <max@stro.at> | 2007-10-04 12:04:51 +0200 |
commit | 89ba49b87ef14314223222d751e01373b0ec08a6 (patch) | |
tree | 413401c9c40ebdad638686ccfced5c3806c76a17 | |
parent | 1c2d02dc513346876464434ae422d499642e6a16 (diff) | |
download | initramfs-tools-89ba49b87ef14314223222d751e01373b0ec08a6.tar.gz initramfs-tools-89ba49b87ef14314223222d751e01373b0ec08a6.zip |
hooks/udevhelper: Adding all /lib/udev on initramfs if missing.
Due to overly strict errexit usage by udev hook a lot might be missing.
This is an potential Etch -> Lenny upgrade issue. (closes: 431291)
fixes boot failure on UUID and LABEL root for those.
it seems much better to add this stupid hook than to pump udev dep.
Thanks Michael Prokop <mika@grml.org> for report.
-rw-r--r-- | debian/changelog | 9 | ||||
-rwxr-xr-x | hooks/udevhelper | 37 |
2 files changed, 46 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index bf48bff..2916413 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +initramfs-tools (0.91b) unstable; urgency=low + + * hooks/udevhelper: Adding all /lib/udev on initramfs if missing. Due to + overly strict errexit usage by udev hook functionality might be missing. + This is an potential Etch Lenny upgrade issue on UUID and LABEL roots. + Thanks Michael Prokop <mika@grml.org> for report. (closes: 431291) + + -- maximilian attems <maks@debian.org> Thu, 04 Oct 2007 12:00:33 +0200 + initramfs-tools (0.91a) unstable; urgency=low * init: Fix resuming with hardcoded uppercase RESUME variable. diff --git a/hooks/udevhelper b/hooks/udevhelper new file mode 100755 index 0000000..44e1d5d --- /dev/null +++ b/hooks/udevhelper @@ -0,0 +1,37 @@ +#!/bin/sh +# FIXME: kill after lenny release +# needed for UUID root and partial etch upgrades +# +PREREQ="udev" + +prereqs() +{ + echo "$PREREQ" +} + +case $1 in +# get pre-requisites +prereqs) + prereqs + exit 0 + ;; +esac + +. /usr/share/initramfs-tools/hook-functions + +# should never happen +if [ ! -e $DESTDIR/lib/udev/ ]; then + exit 0 +fi + +# fixed udev hook +if [ -e $DESTDIR/lib/udev/ ] && [ -e $DESTDIR/lib/udev/hotplug.functions ]; then + exit 0 +fi + +cp /lib/udev/hotplug.functions $DESTDIR/lib/udev/ +copy_exec /lib/udev/ide.agent /lib/udev/ +for program in /lib/udev/*_id; do + copy_exec $program /lib/udev/ +done +exit 0 |