# Sample ping.conf. # Should be copied in /etc. # You need PING 1.12 or more for a /etc/ping.conf file to be used. # # How to modify your initrd.gz file: # 1. Boot PING on a machine that has at least 256 Mo of RAM # 2. Get a shell when proposed to, by typing 'x' and Enter # 3. Login as root, no password # 4. Connect to your network: # - If there's a DHCP server, type: dhcpcd # - Else, type (adjust to your config): # - ifconfig eth0 192.168.0.26 netmask 255.255.255.0 up # - route add default gw 192.168.0.1 # 5. Mount a remote share (where your initrd.gz file can be found): # - mount.smbfs //192.168.0.1/d\$ /mnt/smbfs -o user=domain\\username # (or just user=username if this is a local user) # 6. Assuming both your initrd.gz and ping.conf files are located # in the root of the share, type: # - gzip -d /mnt/smbfs/initrd.gz # - mount -o loop /mnt/smbfs/initrd /mnt/loop # - mkdir /tmp/rootfs # - cd /tmp/rootfs # - tar xvfj /mnt/loop/rootfs.tar.bz2 # - cp /mnt/smbfs/ping.conf /tmp/rootfs/etc/ping.conf # - tar cvf - * |bzip2 -9 - >/mnt/loop/rootfs.tar.bz2 # - umount /mnt/loop # - gzip -9 /mnt/smbfs/initrd # # Remember that Linux's shell is case-sensitive. # Tell here what are the TCP/IP parameters of your first network card. # If you let them commented, dhcp will be tried on your first network card, # then on your possible second network card if dhcp fails on first one. # If dhcp fails, IP/Netmask/GW will be asked. # #IP=192.168.0.26 #Netmask=255.255.255.0 #Gateway=192.168.0.1 # If you want to use a non-default DHCP timeout, set it here in seconds. # Let the parameter commented out if default is fine to you (most users). # #DHCP_Timeout=15 # Tell here where we can store/retrieve the system images. # # Images stored on the network: # Server must be an IP, sorry no DNS. # # Images stored locally: # Use Server to tell PING on which device they'll be found. # Example: Server=/dev/hda1 # # If the image can be stored either on hda1, either on sda1, etc., specify # a comma-separated list of possibilities. They'll all be tried in the order # you provide, until the image to restore is found. # Example: Server=/dev/hda1,/dev/sda1,/dev/hda2,/dev/sda2 # # In this case, Share, User and Passwd are not to be provided, being useless. # But the Directory parma might be necessary. # #Server=192.168.0.1 #Share=partimage #User=administrator #Passwd=topsecret #Directory=/ # You can also specify here the name of the image to restore. # Typically, you would then specify also where to retrieve the # system images. # #Image_To_Restore=My_Image_20071225 # If Repart is set to Y, and if you've got only one partition on # your local hard disk drive and want to store an image of it # locally, then this unique partition will be splitted for you. # If set to N, PING will simply exit. And if commented, you'll # be asked for what to do. May we suggest you'd better partition # yourself for this kind of situation. # #Repart=Y # What will PING do after the job is finished ? can be # Shell => you're thrown to a Linux bash shell # Reboot # Shutdown # If nothing set, you'll be asked. # #After_Completion=Reboot # Will we replace the BIOS if a "bios" file is found ? # Note that you can simply delete this "bios" file before # making your restorations to avoid having your bios params # modified, but in some cases, you might want to have the # bios settings recorded, and to restore them on a selection # of target stations. # #Replace_BIOS=Y # To map a MS share, SAMBA can use either SMBFS either CIFS. # For some reasons, it has been constated that CIFS can be # much faster than SMBFS on some types of networks. And the # contrary is true, too! # #CIFS_Preferred=Y # In some situations, you might want zsplit to be preferred # to partimage. # #Zsplit_Preferred=Y # It can be interesting to reduce the size of the partition # before storing it. Thus, it's possible to restore it later # into a smaller partition. Note that even if we decide later # to restore into a equally-big or bigger partition, PING will # always try to maximize the size of the filesystem at the end. # #Minimize_Before_Storing=Y # If you don't want the proposal for a shell to be displayed, # set this option to Y. Default is to propose it. # #No_Shell=Y # If you want NO QUESTION to be raised, no popup at all, # set this value to Y. It's equivalent to creating an empty # AUTO file on the root of a PING CD/DVD (which is now # deprecated, yet still supported for backwards compatibility). # #AUTO=Y # Cmd_1 is a command for PING to execute before the first blue # welcome screen, Cmd_2 is a command for PING to execute after # the mounting of SMB shares and Cmd_3 is a command for PING to # execute at the end (before giving a shell or reboot or shutdown). # Think of it as a tool to combine with a possible add-on. # #Cmd_1= #Cmd_2= #Cmd_3= # Set this parameter to Y to prevent the user from creating # an image. Only restoration will be allowed. # #Restore_Only=Y # Set the compressor to be used. Else, will be asked. # Can be set to 'gzip', 'bzip2' or 'no compression'. # #Compression_Type=gzip