Gunzip not found

From FOG Project
Jump to: navigation, search

From ander200 and this thread


I made the changes manually and added the following to help locate the file to be edited

cd /tftpboot/fog/images
gunzip init.gz
mkdir initmountdir
mount -o loop init initmountdir

Then edit the fog file that is unzipped in the path /tftpboot/fog/images/initmountdir/bin/

You may want to create a backup “sudo cp fog fog.backup”

Edit the following line 582:

if [ "$mc" = "yes" ];

then line 583:

udp-receiver --nokbd --portbase ${port} --mcast-rdv-address ${storageip} 2>/dev/null | pigz -d -f -c 2>/dev/null | dd of=${hd}

line 584:

else 

line 585:

cat /images/${img} | pigz -d -f -c | dd of=${hd} 

line 586:

fi

When your done making changes

cd /tftpboot/fog/images
umount initmountdir/
rmdir initmountdir
gzip init