sysfs,
You also have to mount it.
The gzip is ext2 formatted file/filesystem.
The way you edit is to perform these tasks:
First unzip, as you already know how but just for clarity sake:
[code]cd /tftpboot/fog/images
gunzip init.gz[/code]
Then make another directory and mount it like a filesystem:
[code]mkdir tmp
mount -o loop init tmp
[/code]
Then cd into the tmp folder and you’ll see all the scripts and the “Root” filesystem fog uses. Most of the scripts are in the bin folder so:
[code]
cd tmp/bin
[/code]
Then you can edit all the scripts you need to.
When you’re all complete perform these tasks:
[code]
cd /tftpboot/fog/images
umount tmp
gzip -9 init
[/code]
You should, then, have successfully customized your init.gz file.