Testing d-i and maybe a bug in preseed
Hi
I have done some testing with preseeding with the latest d-i.
Netboot works fine.
Usbsticks, trouble with getting the preseed file from the sticks and
some other strange behaviours.
1.
With the kernel commandline
file=/hd-media/preseed2.cfg
When getting the preseedfile I get this error
"Failed to retrieve the preconfiguration file"
file://floppy:///hd-media/preseed2.cfg
I think the errormessage is a little bit stange, seems somehow that the
floppy part doesnt belong... I have looked at the code and succesfully
used preseed_fetch from a shell like
preseed_fetch file:///hd-media/preseed2.cfg /foo (made /foo for testing)
and that works fine.
Anyhow I made numerous different setups and just cant get it to work,
but possible I missed something or its a bug.
2.
Also I found that when using the hd-media usb bootimage theres trouble
with som usbsticks.
For example
First I zcat boot.img.gz > /dev/sda (as from documentaion in the manual)
the image is in the built "superfloppy" 256MB size format. Then I copied
a debian.iso to the stick. It works fine with a 256MB and 1GB stick but
with a corsair 2GB it wont work. The reason is that iso-scan errors out.
When tracing backwards I found in iso-scan.postinst
At the line
DEVS="$(list-devices disk; list-devices partition)"
the reason it misses the 2GB stick (which is at /sys/block/sda) is that
udev thinks its a floppy.
udevinfo -q env -p /block/sda gives ID_TYPE=floppy
and udevinfo -q name -p /block/sda gives the name in devfs format, but
its a disk (dont remember exactly). So it misses a disk because of the
ID_TYPE, I added list-devices floppy in the line above and that makes it
work. But maybe the udev (d-i) should detect it as a disk ?
Shall I file a bug against some package ?
3.
Once and a while the iso-scan doesnt work, but always when doing it
again (from the menu) it succesfully finds the iso. (Different sticks),
seems like some function is too quick maybe ?
regards
//Peter
--
bitrunner
0708-460260
Andra Långgatan 28
41327 Göteborg
Sweden
Reply to: