dCore Import Debian Packages to Mountable SCE extensions > General dCore Talk
dCore .sce combination
Jason W:
Hi Tony.
I had posted a script that did this kind of thing in 2013 I now looked up, below:
http://forum.tinycorelinux.net/index.php/topic,16199.msg95963.html#msg95963
But that was in the early days when the SCE was simple, so much has changed since then, As in SCEs depending on other SCEs, and the /tmp/tcloop/APPNAME in the startup scripts which depends on the name that the SCE was imorted with to name two. Also the info under /usr/local/sce that is specific to that SCE.
So there is no simple way to merge several SCEs into one without using sce-import to import a list of packages and use the downloaded .debs or dCore specific packages that are already downloaded to a TCE directory on permanent storage. If the TCE directory is in RAM, then re-downloading the .deb or dCore files has to happen.
Thanks for your interest in dCore, and I wish there was a way to combine already made SCEs into one at this point. It's not that it can't happen, but it would at least be involved.
Jason W:
I found that combining SCEs is still possible, but the resulting combined one will be overlooked by sce-update and should not used as a dependency for other SCEs. I have created a 336MB desktop SCE that I created out of the following SCEs already existing and then rebooted, and now I am running an xfce4 session with only that combined SCE installed:
--- Code: ---clonezilla.sce
dCore-usbinstall.sce
gimp.sce
kernel-all-4.19.10-tinycore64.sce
nouveau-4.19.10-tinycore64.sce
xfce4.sce
xorg-all.sce
xscreensaver.sce
--- End code ---
I copied those SCEs to a directory, and in that directory did the below:
--- Code: ---mkdir 1
mkdir pkg
mount clonezilla.sce 1
cp -af 1/* pkg/
umount 1
mount dCore-usbinstall.sce 1
cp -af 1/* pkg/
umount 1
--- End code ---
.. and so on for all those SCEs.
Then I did:
--- Code: ---sed -i 's:/tmp/tcloop/clonezilla:/tmp/tcloop/desktop:g' pkg/usr/local/tce.installed/*
sed -i 's:/tmp/tcloop/dCore-usbinstall:/tmp/tcloop/desktop:g' pkg/usr/local/tce.installed/*
--- End code ---
.. and so on for all the names of those SCEs.
Then to remove entries in /usr/local/sce that are no longer valid for sce-update or using the resulting SCE as a dependency for a new SCE:
--- Code: ---sudo rm -r pkg/usr/local/sce/*
--- End code ---
Then I made an SCE out of that pkg/ directory:
--- Code: ---mksquashfs pkg/ desktop.sce -noappend
m5sum desktop.sce > desktop.sce.md5.txt
--- End code ---
I moved this resulting SCE to my /etc/sysconfig/tcedir/sce directory and listed that as the only SCE in my sceboot.lst in my TCE directory, and all works as expected.
I could script this, but for now if you would test the instructions I would appreciate it.
[EDIT]: Added code tags. Rich
Rich:
Hi Jason W
Please use code tags when posting commands. :P
Jason W:
Good point, will do. :)
A Guy:
Jason W
Maybe you could attach these notes to the original thread so that your newer ideas can be linked with the original concept.
The tool obviously is useful , in my case , for combining many previously downloaded .sce modules and squishing them together in various ways before deployment in /tmp/builtin (maybe not the best way to do it, but it is working for me).
Navigation
[0] Message Index
[*] Previous page
Go to full version