how to manually create ping iso

Installation issues, feature requests, help, etc.

Moderators: A_Null, Curtis8

how to manually create ping iso

Postby carlatpg » Thu Dec 16, 2010 2:14 am

I know you're gonna point me to the documentation on how to create an iso. But I need more then that.

How do I edit the initrd.gz file? I need to change the /etc/rc.d/rc.ping file so that it can restore an ntfs partition. Right now I do this each time I boot from the cd. But after doing it a dozen or so times it gets annoying. So how can I uncompress the initrd.gz file fully, edit that file, and then recompress it so that I can create the iso and burn it?

Thank you.
carlatpg
 
Posts: 4
Joined: Wed Dec 15, 2010 2:45 am

Re: how to manually create ping iso

Postby A_Null » Thu Dec 16, 2010 4:44 am

Image
User avatar
A_Null
 
Posts: 163
Joined: Fri Jan 12, 2007 4:35 pm
Location: Central Florida

Re: how to manually create ping iso

Postby shumifan50 » Thu Dec 16, 2010 7:29 pm

If you are running windows;
Download and install Daemon Tools lite (free).
It allows you to mount a .iso image. From this image you can copy kernel, initrd.gz and isolinux.cfg.
Go to the Annex in the documentation and find the section "creating a bootable usb". This is quite easy. Follow the instructions exactly and then you have a very easily editable syslinux.cfg etc which you can store back (or zip up again).
shumifan50
 
Posts: 15
Joined: Thu Dec 09, 2010 4:39 pm

Re: how to manually create ping iso

Postby carlatpg » Thu Dec 16, 2010 8:14 pm

A_Null wrote:This may help...
viewtopic.php?f=7&t=7174&p=18928


Following those instructions, I had to modify them since ping 3.00 uses bz2 instead of gzip:

Code: Select all
1. Get a unix system (the PING linux will do the trick, in fact: boot it and get a shell.)
2. gzip -d /path_to/initrd.gz
3. mount -o loop /path_to/initrd /mnt/loop
4. mkdir /rootfs
5. cd /rootfs
6. tar xvfj /mnt/loop/rootfs.tar.bz2
7. vi /rootfs/etc/rc.d/rc.ping
8. tar cvf - * | bzip2 -9 - >/mnt/loop/rootfs.tar.bz2
9. umount /mnt/loop
10. gzip -9 /path_to/initrd
11. Use this new initrd.gz.
carlatpg
 
Posts: 4
Joined: Wed Dec 15, 2010 2:45 am


Return to PING / General Discussions

Who is online

Users browsing this forum: Google [Bot] and 3 guests

cron