Tiny Core Linux
General TC => Remasters / Remixes - Unofficial => Topic started by: buggy on April 01, 2013, 04:09:48 PM
-
Again hello community,
I'd tried to made my own live CD with programms installed but I dont get the programms installed into the iso...
without installed programm only with files it's no problem
I'd found several tutorials like these:
http://forum.tinycorelinux.net/index.php?topic=6637.0
http://wiki.tinycorelinux.net/wiki:remastering
[removed due to policy violation]/modified-cd.html
http://wiki.tinycorelinux.net/wiki:integrating_extensions
.
.
.
so I'd tried it that way:
cd
wget http://www.tinycorelinux.net/4.x/x86/release/Core-current.iso
sudo mkdir /mnt/tmp
sudo mount Core-current.iso /mnt/tmp -o loop,ro
sudo cp -a /mnt/tmp/boot /tmp
sudo mv /tmp/boot/core.gz /tmp
sudo umount /mnt/tmp
mkdir /tmp/extract
cd /tmp/extract
sudo zcat /tmp/core.gz | sudo cpio -i -H newc -d
sudo depmod -a -b /tmp/extract 3.0.21-tinycore
tce-load -wi gzip
cd /tmp/extract
sudo find | sudo cpio -o -H newc | gzip -2 > ../mycore.gz
tce-load -wi mkisofs-tools.tcz
tce-load -wi brasero.tcz
tce-load -wi isomaster.tcz
cd /tmp
sudo mv mycore.gz boot
sudo mv boot/mycore.gz boot/core.gz
mkdir newiso
sudo mv boot newiso
mkdir newiso/tce/optional
tce-load -wi nano # thats the example for all programms....
sudo cp /tmp/tce/optional /tmp/newiso/tce/optional
sudo mkisofs -l -J -R -V TC-custom -no-emul-boot -boot-load-size 4 \
-boot-info-table -b boot/isolinux/isolinux.bin \
-c boot/isolinux/boot.cat -o sfos.iso newiso
what did I do wrong?
in own tutoral it said that it should be in "optional" other said only "tce" I'm confused
Thank you in advance
-
Hi buggy
Have you tried using ezremaster.tcz
-
Having dirs called /tce/optional on an .iso seems to be looking for trouble, as tcedir must always be writable.
You might want to have a look at a CorePlus.iso to get an idea.
-
well....
good idea ...
theres the the folder "cde" and so on... will look at this first
thanks
-
oke ... tried it but with no succeed
I'd tried it like I discriped on top
only without the path "newiso/tce/optional"
now I'd tried it like on CorePlus with "cde" folder,
and the "optional" folder which includes all tce etc... like the "newiso/tce/optional" before...
and now I'd added a "/newiso/cde/onboot.lst" and writed for example "nano.tcz" in it...
hope you have a second hint for me ;)
-
or perhaps can I install the programm into the filesystem... but how
when unpack the tcz files with "unsquashfs" merge the Folders into the "extract" folder it also dont works..
-
You could place extensions into /tmp/builtin/optional/ (inside cpio archive).
-
oke I think I understand it
I extract the core.gz for example to "/tmp/extract/"
then I copy the extensions as "cpio" format into "/tmp/extract/tmp/builtin/optional"
Am I right?
-
ok I found a solution
first I execute this script:
cd
wget http://www.tinycorelinux.net/4.x/x86/release/Core-current.iso
sudo mkdir /mnt/tmp
sudo mount Core-current.iso /mnt/tmp -o loop,ro
sudo cp -a /mnt/tmp/boot /tmp
sudo mv /tmp/boot/core.gz /tmp
sudo umount /mnt/tmp
mkdir /tmp/extract
cd /tmp/extract
sudo zcat /tmp/core.gz | sudo cpio -i -H newc -d
then I install all extensions I want to have...
then I open /tmp/extract/opt/bootlocal.sh and write
-> sudo -u tc tce-load -i XXX XXX XXX XXX XXX
# XXX = all extensions
and at least I execute this script:
sudo cp -R /tmp/tce /tmp/extract/tmp/
sudo depmod -a -b /tmp/extract 3.0.21-tinycore
tce-load -wi gzip
cd /tmp/extract
sudo find | sudo cpio -o -H newc | gzip -2 > ../mycore.gz
tce-load -wi mkisofs-tools.tcz
tce-load -wi brasero.tcz
tce-load -wi isomaster.tcz
cd /tmp
sudo mv mycore.gz boot
sudo mv boot/mycore.gz boot/core.gz
mkdir newiso
sudo mv boot newiso
sudo chmod 777 -R newiso
cd /tmp
sudo mkisofs -l -J -R -V TC-custom -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -o sfos.iso newiso
-
then I open /tmp/extract/opt/bootlocal.sh and write
-> sudo -u tc tce-load -i XXX XXX XXX XXX XXX
# XXX = all extensions
Consider that this might become inefficient as soon as you would restore a backup.
Why not use /tmp/builtin/onboot.lst ? (path within remaster)
sudo depmod -a -b /tmp/extract 3.0.21-tinycore
When it comes to adding modules in a remaster, I find following script ideal, as besides from adding required modules it also discards all unused modules:
http://forum.tinycorelinux.net/index.php/topic,9028.0.html
tce-load -wi gzip
It is not obvious why the gzip extension would be needed.
-
first thanks for your feedback
I'd used /tmp/extrac/opt/bootlocal.sh because /tmp/tce/onboot.lst wont work, dont know why...
and well yea the gzip is a relict from old tries
i can remove it
-
Oops, that should have read:
/tmp/builtin/onboot.lst (path within remaster)
Prior post corrected.
-
thx ;)
ok I found a solution
first I execute this script:
cd
wget http://www.tinycorelinux.net/4.x/x86/release/Core-current.iso
sudo mkdir /mnt/tmp
sudo mount Core-current.iso /mnt/tmp -o loop,ro
sudo cp -a /mnt/tmp/boot /tmp
sudo mv /tmp/boot/core.gz /tmp
sudo umount /mnt/tmp
mkdir /tmp/extract
cd /tmp/extract
sudo zcat /tmp/core.gz | sudo cpio -i -H newc -d
then I install all extensions I want to have...
then I open /tmp/extract/opt/bootlocal.sh and write
-> sudo -u tc tce-load -i XXX XXX XXX XXX XXX
# XXX = all extensions
and at least I execute this script:
sudo cp -R /tmp/tce /tmp/extract/tmp/
sudo depmod -a -b /tmp/extract 3.0.21-tinycore
tce-load -wi gzip
cd /tmp/extract
sudo find | sudo cpio -o -H newc | gzip -2 > ../mycore.gz
tce-load -wi mkisofs-tools.tcz
tce-load -wi brasero.tcz
tce-load -wi isomaster.tcz
cd /tmp
sudo mv mycore.gz boot
sudo mv boot/mycore.gz boot/core.gz
mkdir newiso
sudo mv boot newiso
sudo chmod 777 -R newiso
cd /tmp
sudo mkisofs -l -J -R -V TC-custom -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -o sfos.iso newiso