Control: tags -1 +patch

On Fri, 2013-01-04 at 13:40 +0000, Ian Campbell wrote:
> I was attempting to install Wheezy on an armel TS-419PII 

I realized that I was running an d-i daily build which I flashed last
year (in December sometime) but I wasn't sure exactly which so I've just
retried with today's daily build and found the same issue.

I patched /target/usr/share/initramfs-tools/hook-functions on the fly
with the following was able to get past this point in the install:

diff --git a/hook-functions b/hook-functions
index 3cdd7f0..572c2f7 100644
--- a/hook-functions
+++ b/hook-functions
@@ -347,6 +347,11 @@ dep_add_modules()
                block=${root#/dev/}
                block=${block%%p[0-9]*}
 
+       # nbd root /dev/nbdXpX
+       elif [ "${root#/dev/nbd}" != "${root}" ]; then
+               block=${root#/dev/}
+               block=${block%%p[0-9]*}
+
        # DAC960 - good old mylex raid - root dev format /dev/rd/cXdXpX
        elif [ "${root#/dev/rd/c}" != "${root}" ]; then
                block="rd!c${root#/dev/rd/c}"

I've noticed which my other system which use nbd don't use any
partitions (so root=/dev/nbd0 not root=/dev/nbd0pX). Perhaps
non-partitioned is the common case when using nbd which is why it
appears to work for most people?

FWIW the partition layout which d-i selects if you pick all the defaults
(so guided all on one device or whatever it is called) has a separate
ext2 formatted /boot and a swap partition. I think the separate /boot is
a requirement of the hardware/firmware, or at least it is on some ARM
hardware, not sure why in this particular instance.

Ian.
-- 
Ian Campbell

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to