Difference between revisions of "Template:PuppyTemplate"

From ERPXE Wiki
Line 21: Line 21:
 
Copy SFS file from mounted CD to temporary folder (LOWER CASE ONLY!!!):
 
Copy SFS file from mounted CD to temporary folder (LOWER CASE ONLY!!!):
  
  cp /mnt/cdrom/{{{filename1}}}.sfs /tftpboot/temp/{{{filename2}}}.sfs
+
  cp /mnt/cdrom/{{{filename1}}} /tftpboot/temp/{{{filename2}}}
  
 
Repack the new initrd.gz file:
 
Repack the new initrd.gz file:

Revision as of 04:02, 5 February 2012

Copy vmlinuz to appropriate directory: (LOWER CASE ONLY!)

cp /mnt/cdrom/vmlinuz /tftpboot/er/plugins/puppy/{{{dir}}}/

We will have to repack the initrd.gz file to contain the SFS file:

Create a temporary folder:

mkdir /tftpboot/temp
cd /tftpboot/temp/

Copy initrd.gz from mounted CD to temporary folder:

cp /mnt/cdrom/initrd.gz /tftpboot/temp/

Extract and remove intird.gz file:

zcat /tftpboot/temp/initrd.gz | cpio -i -H newc -d
rm initrd.gz

Copy SFS file from mounted CD to temporary folder (LOWER CASE ONLY!!!):

cp /mnt/cdrom/{{{filename1}}} /tftpboot/temp/{{{filename2}}}

Repack the new initrd.gz file:

find | cpio -o -H newc | gzip -4 > /tftpboot/er/plugins/puppy/{{{dir}}}/initrd.gz

Remove temporary folder:

rm -R /tftpboot/temp/