Building a LEAF package from the compiled sources

With the exception of initrd.lrp LEAF packages are tarballs compressed with gzip. The filename suffix must be "lrp" and the length is limited by the 8.3 convention.

Before creating a package make shure that file and owner permissions are set correctly.

LEAF packages

Create a directory tree and build a package by doing:

tar -c * | gzip -9 > package.lrp

initrd.lrp

initrd.lrp is a different package - it's a compressed, minix formatted filesystem. To add or change it's content you have to uncompress it and mount it on a minix formatted mount point:

dd if=/dev/zero of=initrd bs=1k count=1500
mkfs.minix initrd 4096
mount -t minix initrd /mnt -o loop

Copy the contents for the initrd package to the /mnt directory:

sync
umount /mnt
gzip -9 initrd
mv initrd.gz initrd.lrp