Hello guys,
I need a advice from you.
Paralelly with Slitaz I use some other distributions like Mint. I have prepared disk images which give full persistence without a need of installation on hdd. What I did is:
1 Create empty file using
dd if=/dev/zero of=/media/hda1/mint.disk bs=1M count=10000
2 Format it
mkfs.ext3 /media/hda1/mint.disk
3 Loop mount it
mount -o loop /media/hda1/mint.disk /mnt/mintdisk
4 Loop mount filesystem.squashfs from livecd
5 Copy filesystem from to empty file just created
cp -fpr /rofs/* /mnt/mintdisk
6 Chroot to mintdisk and add new user
useradd -m -s /bin/bash <userName>
passwd <userName>
sudo adduser <userName> sudo
7 Add new entry to grub2
menuentry 'Mint 16 persistent' {
set isofile='/iso/lm16.disk'
loopback loop (hd1,3)/$isofile
set root=(loop)
linux /vmlinuz root=/dev/sda2 loop=$isofile
initrd /initrd.lz
}
Now the question is: can I do the same with Slitaz? I didn't find vmlinuz or initrd in rootfs.gz filesystem, which I guess are necessary to make it working.
Please give me some hints.