Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs
tags 582858 + patch
thanks
* Daniel Kahn Gillmor <dkg@fifthhorseman.net> [2010-05-24 09:00]:
> 0 root@moo:~# update-initramfs -k all -u
> update-initramfs: Generating /boot/initrd.img-2.6.32-5-kirkwood
> readlink: missing operand
> Try `readlink --help' for more information.
> stdin: Illegal seek
> mkinitramfs: for root missing /sys/block/ entry
The patch below works for me. Can you try it?
--- a/hook-functions 2010-06-07 15:03:22.000000000 +0100
+++ b/hook-functions 2010-06-07 15:06:06.000000000 +0100
@@ -226,6 +226,14 @@
# findout root block device + fstype
eval "$(mount | awk '/\/dev\// {if ($3 == "/") {print "root=" $1 "\nFSTYPE=" $5; exit}}')"
+
+ # handle ubifs and return since ubifs root is a char device but
+ # most of the commands below only work with block devices.
+ if [ "${FSTYPE}" = "ubifs" ]; then
+ manual_add_modules "${FSTYPE}"
+ return
+ fi
+
if [ "${root}" = "/dev/root" ] ; then
root="/dev/disk/by-uuid/"$(blkid -o value -s UUID ${root}) 2>/dev/null
fi
--
Martin Michlmayr
http://www.cyrius.com/
Reply to: