I'm not sure I understand how the tazlito process works, or perhaps I'm doing something wrong. Sorry for the long post but I've been trying to figure this out all day and I wanted to include all the relevant details. Here is what I've done so far:
1. Booted 'justx' from Cooking 5 RC2 Live CD
2. With Cooking 5 RC2 'justx' running in RAM, I ran 'tazpkg recharge' and updated preinstalled apps.
3. I installed new apps (keychain, rsync, tightvnc, midori, etc)
4. Generated ssh keys using 'dropbearkeys'
5. Customized /etc/fstab to load /home/ and /mnt/data from a physical hard drive on the machine.
6. Various customizations, including hostname, additional users, imported ssh authorized keys, disabled httpd and enabled dropbear and Xvnc in RUN_DAEMONS in rcS.conf, etc etc etc.. Basically, a lot of little customizations and configuration changes.
So, is it possible to generate a new ISO from the current state of this running 'Live CD' so that all of my customizations are already there on another machine when it boots from the ISO? i.e. hostname already changed, httpd disabled, dropbear and Xvnc already enabled, users already created, etc? Essentially, what I cannot figure out is how to preserve all of my customizations and new packages inside a new ISO that actually works.
Here's what I've tried:
I ran 'tazlito gen-distro' and it goes out and grabs all the packages (including the ones I added myself) into "/home/slitaz/cooking/packages/" and it also creates "/home/slitaz/cooking/distro" which contains slitaz-cooking.iso (32MB) and md5, 2 packages lists, and ./rootcd/ and ./rootfs/ folders.
The ./rootfs/ folder seems to contain a mirror of the "running in RAM" filesystem that I customized. On visual inspection, it contains the apps I personally added. The ./etc/fstab contains my custom mount points. The ./etc/rcS.conf contains dropbear and Xvnc RUN_DAEMONS.. etc etc.. So it all appears ok.
I download that ISO to my laptop and test it on a VirtualBox with HD partitions that match my custom fstab mounts on the other machine, and it doesn't work. I get a black screen with nothing but a big 'X' mouse cursor and nothing works.. no right-click, no left-click, no command prompt, no function keys, no ctrl-function-keys, no spacebar, no combination of ctrl-number or ctrl-letter.. Nothing..
Am I correct that all of my customizations (not just installed packages but also configuration changes) should be recorded on the generated ISO? If so, what am I doing wrong? Shouldn't this generated ISO give me exactly the same environment as the one I customized on the running-in-RAM source machine?