Re: /dev/null not a device in Linux boot image / initrd

Juan Jose Pablos <[email protected]>
Newsgroups gmane.comp.windows.unattended.devel
Message-ID <[email protected]>
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 < $< >| [email protected]
         mv [email protected] $@

....

initrd: devices.cpio .stamp-stage2
         (cd stage2 && find . | cpio -H newc -o) >| [email protected]
         cat devices.cpio >> [email protected]
         mv [email protected] $@

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.