Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-16 Thread Michael Prokop
* Martin Michlmayr [Tue Jun 15, 2010 at 06:51:07PM +0100]: > * maximilian attems [2010-06-15 18:14]: > > i'm a bit hesitant of adding it to every initramfs out there: > > /lib/modules/2.6.32-5-amd64/kernel/drivers/mtd/ubi/ubi.ko > > could d-i add it to the relevant installation as hook? > > who d

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-15 Thread Martin Michlmayr
* maximilian attems [2010-06-15 18:14]: > i'm a bit hesitant of adding it to every initramfs out there: > /lib/modules/2.6.32-5-amd64/kernel/drivers/mtd/ubi/ubi.ko > could d-i add it to the relevant installation as hook? > who does need or may want to use ubi? Yeah, I think this is a fair point.

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-15 Thread maximilian attems
On Mon, Jun 14, 2010 at 12:35:25PM +0200, Michael Prokop wrote: > tags 582858 + pending > thanks > > * Martin Michlmayr [Sun Jun 13, 2010 at 05:23:14PM +0100]: > > * Martin Michlmayr [2010-06-07 18:10]: > > > I'm not claiming that you'll actually be able to boot from ubifs with > > > that ramdis

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-14 Thread Michael Prokop
tags 582858 + pending thanks * Martin Michlmayr [Sun Jun 13, 2010 at 05:23:14PM +0100]: > * Martin Michlmayr [2010-06-07 18:10]: > > I'm not claiming that you'll actually be able to boot from ubifs with > > that ramdisk though. For that, i-t needs to be taught to know what to > > do about somet

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-13 Thread maximilian attems
On Sun, 13 Jun 2010, Martin Michlmayr wrote: > mika, the patch below is still required and is imho a good idea in all > cases since it makes the error explicit. > thanks applied. :) added error out in that case as it makes no sense to continue beyond that point. -- To UNSUBSCRIBE, email to d

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-13 Thread Martin Michlmayr
mika, the patch below is still required and is imho a good idea in all cases since it makes the error explicit. * Martin Michlmayr [2010-06-08 21:43]: > [PATCH] Produce an error when root cannot be determined with MODULES=dep > > A lot of code in dep_add_modules() uses $root. Therefore, produce

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-13 Thread Martin Michlmayr
* Martin Michlmayr [2010-06-08 23:01]: > > http://www.linux-mtd.infradead.org/faq/ubifs.html#L_mount_ubifs > > Ok, so it sounds like ubiX:name might be quite common. > > Maybe the "awk '/\/dev\//" in i-t should be changed to something like > "awk '/\/dev\/|ubi/" or "awk '/\/dev\/|ubi[0-9]/" but

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-13 Thread Martin Michlmayr
* Martin Michlmayr [2010-06-07 18:10]: > I'm not claiming that you'll actually be able to boot from ubifs with > that ramdisk though. For that, i-t needs to be taught to know what to > do about something like root=ubi0:rootfs. Ok, here's a patch with which you can boot from ubi with i-t when ubi

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-08 Thread Martin Michlmayr
* Daniel Kahn Gillmor [2010-06-08 16:49]: > http://www.linux-mtd.infradead.org/faq/ubifs.html#L_mount_ubifs Ok, so it sounds like ubiX:name might be quite common. Maybe the "awk '/\/dev\//" in i-t should be changed to something like "awk '/\/dev\/|ubi/" or "awk '/\/dev\/|ubi[0-9]/" but I'll leav

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-08 Thread Daniel Kahn Gillmor
On 06/08/2010 03:31 PM, Martin Michlmayr wrote: > * Daniel Kahn Gillmor [2010-06-08 15:22]: rootfs on / type rootfs (rw) ubi0:root on / type ubifs (rw,relatime) > ^ > This is the output from 'mount', and here's what i-t does: > > eval "$(mount | awk '/\/dev\// {if ($3 =

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-08 Thread Martin Michlmayr
* Martin Michlmayr [2010-06-08 21:31]: > This is the output from 'mount', and here's what i-t does: > > eval "$(mount | awk '/\/dev\// {if ($3 == "/") {print "root=" $1 > "\nFSTYPE=" $5; exit}}')" > > it looks for something with /dev/ in it. In your case, this does't > match so root= and F

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-08 Thread Martin Michlmayr
* Daniel Kahn Gillmor [2010-06-08 15:22]: > >> rootfs on / type rootfs (rw) > >> ubi0:root on / type ubifs (rw,relatime) ^ This is the output from 'mount', and here's what i-t does: eval "$(mount | awk '/\/dev\// {if ($3 == "/") {print "root=" $1 "\nFSTYPE=" $5; exit}}')" it lo

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-08 Thread Martin Michlmayr
* Daniel Kahn Gillmor [2010-06-08 11:35]: > hrm, doesn't seem to work for me. Am i applying it in the wrong place? > Here's a transcript of a failure, patch application, and a repeated > failure: With the patch applied, can you do: sh -x mkinitramfs -k $(uname -r) -o /tmp/foo > debug 2>&1

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-08 Thread Daniel Kahn Gillmor
On 06/07/2010 10:07 AM, Martin Michlmayr wrote: > tags 582858 + patch > thanks > > * Daniel Kahn Gillmor [2010-05-24 09:00]: >> 0 r...@moo:~# update-initramfs -k all -u >> update-initramfs: Generating /boot/initrd.img-2.6.32-5-kirkwood >> readlink: missing operand >> Try `readlink --help' for mor

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-08 Thread Michael Prokop
* Martin Michlmayr [Tue Jun 08, 2010 at 09:58:34AM +0100]: > * Michael Prokop [2010-06-08 01:21]: > > Thanks for the patch, Martin. > > Can I apply it already to i-t? > Sure. Thanks, done. > > > I'm not claiming that you'll actually be able to boot from ubifs with > > > that ramdisk though. F

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-08 Thread Martin Michlmayr
* Michael Prokop [2010-06-08 01:21]: > Thanks for the patch, Martin. > Can I apply it already to i-t? Sure. > > I'm not claiming that you'll actually be able to boot from ubifs with > > that ramdisk though. For that, i-t needs to be taught to know what to > > do about something like root=ubi0:r

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-07 Thread Michael Prokop
* Martin Michlmayr [Mon Jun 07, 2010 at 06:10:49 +0100]: > * Martin Michlmayr [2010-06-07 15:07]: > > The patch below works for me. Can you try it? > I should mention that "works for me" means that the initramfs will be > generated without error. Thanks for the patch, Martin. Can I apply it al

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-07 Thread Martin Michlmayr
* Martin Michlmayr [2010-06-07 15:07]: > The patch below works for me. Can you try it? I should mention that "works for me" means that the initramfs will be generated without error. I'm not claiming that you'll actually be able to boot from ubifs with that ramdisk though. For that, i-t needs t

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-06-07 Thread Martin Michlmayr
tags 582858 + patch thanks * Daniel Kahn Gillmor [2010-05-24 09:00]: > 0 r...@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

Bug#582858: initramfs-tools: MODULES=dep fails when / is ubifs

2010-05-24 Thread Daniel Kahn Gillmor
Package: initramfs-tools Version: 0.94.4 Severity: normal When / is on ubifs, if i set MODULES=dep in /etc/initramfs-tools/initramfs.conf, i get the following error: 0 r...@moo:~# update-initramfs -k all -u update-initramfs: Generating /boot/initrd.img-2.6.32-5-kirkwood readlink: missing operand