5.2. Personalising a Module
1. Create a working directory
mkdir -p /mnt/hdxx/directory1
2. Install all software packages using this directory as root:
installpkg --root=/mnt/hdxx/directory1 packagea-x.x.x.txz
installpkg –-root=/mnt/hdxx/directory1 packageb-x.x.x.txz
installpkg –-root=/mnt/hdxx/directory1 packagec-x.x.x.txz
etc.
3. Remove all unneeded files:
rm -rf /mnt/hdxx/directory1/usr/doc/*
4. Make any modifications you want:
echo "whatever" > /mnt/hdxx/directory1/foo/bar
5. Build the module:
cd /mnt/hdxx/
dir2lzm directory1 module1.lzm