OK, here's my documention on editing the PXE image - note that where I state 
"change the files as required", in your case you need to edit ./etc/master - if 
you look through it, you can see where the path, username and password are 
hard-coded into the script, and alter as necessary.


unpack existing initrd file using:
cat initrd | (cpio -i -d -m ; cpio -i -d -m)

change the files as required

repack the image using (with current working directory as the root of the 
unpacked image):
find . | cpio -o -H newc -O ../initrd

However this new image is missing /dev

To add it to the image you need devices.txt and mknod-cpio.pl from the 
unattended CVS (you need to chmod mknod-cpio.pl to make it executable)

Edit devices.txt to remove all blank lines and all comment lines

./mknod-cpio.pl < devices.txt > devices.cpio

This will create a devices.cpio file, then:
cat devices.cpio >> initrd

to add the devices to the initrd image.


Steven Blackery
________________________________________
From: Travis Zadikem [mailto:[EMAIL PROTECTED]
Sent: 21 October 2008 16:46
To: Steven Blackery
Cc: [email protected]
Subject: Re: [Unattended] Unattended and making a new bootdisk

Yes, Yes, Yes..  Please.   I need both for the same reason.  Some older crappy 
stuff but plan on only doing PXE for our development loads.  Thanks!

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
unattended-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to