@jianliulin
Please be aware that my primary intent is to provide quite recent versions of the SliTaz packages in a x86_64 format and to compile some of them into bootable (or chroot-able) initramfs.
Many functionalities are not fully working though, and automatically creating working isos might be part of that.
Fully working scripts will remain the ultimate goal, but have to be corrected at a given time.
For the moment it is key to update the package receipts an build the full package basement for recent SliTaz versions...
... this is my contribution (as I understand it...)
In the meantime you could try a more manual solution:
1.) create a working dir:
mkdir SliTaz_tmp && cd SliTaz_tmp
2.) unpack the lzma'ed rootfs:
cp [YourDir]/rootfs.lzma . && lzma -d rootfs.lzma
2.) unpack the resulting cpio:
cpio -idF rootfs
3.) either modify the rootfs "from outside":
tazpkg -i [AnyPackage}.tazpkg --root=/[PATH]/SliTaz_tmp --nodeps
(for each Package)
and edit any config files you need
or
Chroot into the image an modify "internally":
- create a Chroot.sh file somewhere outside SliTaz_tmp with the following:
====================================================
#!/bin/sh
if [ -z "$1" ]; then
echo "Chroot into which directory?"
exit 1
fi
for FILESYS in dev proc sys run
do
mkdir -pv "$1/$FILESYS"
done
mount -v --bind /dev "$1/dev"
mount -v --bind /dev/pts "$1/dev/pts"
mount -vt proc proc "$1/proc"
mount -vt sysfs sysfs "$1/sys"
mount -vt tmpfs tmpfs "$1/run"
chroot "$1" /bin/sh --login
umount -v "$1/run" "$1/sys" "$1/proc" "$1/dev/pts" "$1/dev"
====================================================
and then chroot into the image with
./Chroot.sh SliTaz_tmp
make your modifications inside the image (if you don't have internet access, then copy your /etc/resolv.conf into the image)
when finished, exit
the image (make sure, all directories inside the image are unmounted)
4.) when you're done with the modifications, cd into SliTaz_tmp and recreate an new version of the lzma'ed rootfs
find . | cpio -o -H newc | lzma > /rootfs_new.lzma
... hope this helps...