When you extract the initrd, the devices within it are not extracted, for
obvious reasons.
When you repack it, you can add the devices back as follows:
mknod-cpio.pl < devices.txt > devices.cpio
cat devices.cpio >> initrd
Hope that helps.
Steven
________________________________
Steven Blackery
ICST Support Manager
Direct: +44 (0)20 3006 4051
Mobile: 07903 742112
Email: steven.black...@steakdigital.co.uk
Web: www.steakdigital.co.uk<http://www.steakdigital.co.uk>
[http://www.steakdigital.co.uk/email/steak_email.jpg]<http://www.steakdigital.co.uk>
Ranked 15th in The Sunday Times Microsoft Tech Track
100<http://www.fasttrack.co.uk/fasttrack2002/bin/2009-TechTrack100.pdf> 2009
Steak Ltd, 62-70 Shorts Gardens, Covent Garden, London, WC2H 9AH
Reception: +44 (0)20 7420 3500 Fax: +44 (0)20 7420 3518
Registered Company No: 05349447. Registered in England & Wales
Registered Office: Steak Ltd, Tennyson House, 159 - 165 Great Portland Street,
London. W1W 5PA
VAT Number: GB 918 5692 84
Steak Ltd is part of the Steak Group<http://www.steakgroup.com>
From: Johannes Singer [mailto:j...@ssw.co.at]
Sent: 09 February 2010 12:24
To: Juan Jose Pablos
Cc: unattended-devel@lists.sourceforge.net
Subject: Re: /dev/null not a device in Linux boot image / initrd
Juan,
Sorry, it seems that it was my fault.
I retested the whole thing, and it seems I was creating the initrd wrong.
/dev/null works
with the initrd from the downloadable zip.
Apparently extracting the initrd, changing files and repacking it with
"find . | cpio -o -H newc > /unattended/linuxboot/tftpboot/initrd"
does not work completely. I used the "five steps" instructions from the
wiki here: http://sourceforge.net/apps/trac/unattended/wiki/ModifyingTheBootDisk
Unfortunately the drivers are not copied with the stock initrd from the zip
file, I will
investigate further.
I am sorry to have bothered you.
I would like to make good for this by submitting installer scripts. :-)
What is the usual procedure for this?
Sincerely,
Johannes
Juan Jose Pablos schrieb:
Steven Blackery escribió:
Inside devices.txt is:
dev/null c 1 3
which, if you are using mknod-cpio.pl with devices.txt as the input to append
the devices to your initrd, should work...
Steven,
that is exactly how is done it when building the iso image (I did not know):
## devices
devices.cpio: misc/devices.txt
tools/mknod-cpio.pl < $< >| $...@.tmp
mv $...@.tmp $@
....
initrd: devices.cpio .stamp-stage2
(cd stage2 && find . | cpio -H newc -o) >| $...@.tmp
cat devices.cpio >> $...@.tmp
mv $...@.tmp $@
now,
I have try both the iso image and the network image, and both have
ls -l /dev/null
crw------- 1 root 0 1, 3 Jan 18 17:19 /dev/null
Johannes,
are you building up the images from source?
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
unattended-devel mailing list
unattended-devel@lists.sourceforge.net<mailto:unattended-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/unattended-devel
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel