Comment 4 for bug 62868

Revision history for this message
robepisc (robepisc) wrote : Re: swap partitions not automounted by the LiveCD

The feature is implemented, but is not working now.
I tested it on another PC and casper fails to find the swap partition there too.
(Tollef, are you sure it does work on your machine? Have you tested it recently?)

However I think I found a solution!

I tried to debug using "break=mount" when booting my Edgy-RC LiveCD, then editing the casper-bottom/13swap script (using cat, grep and sed,... there's no text editor in busybox... argh!).

It seems that, for some *strange* reason, when dd is called in /usr/share/initramfs-tools/scripts/casper-bottom/13swap, it is resolved to the one on the (just) mounted root fs instead of the one in the initramfs.
So it fails to run, because, unlike the latter, it's not a static binary and it can't find the libraries it requires to be executed.
Notice that this error doesn't show up in casper.log because dd's stderr is redirected to /dev/null.

The incriminated line is this one:

magic=$(dd if="$device" bs=4086 skip=1 count=1 2>/dev/null | dd bs=10 count=1 2>/dev/null) || continue

I solved the issue changing "dd" with "/bin/dd" there (twice, of course).

Confirmation anyone?