scoobytools

Programming issues and discussion
Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

scoobytools

Postby Scooby » 12 Feb 2014, 22:25

Proud to present a collection of tools for alphaos

PushBackSaveLayer
Moves data from savefile and compresses it into a squashfile.
Frees up data in savefile but makes it availible via a bundle
instead. Run from system menu. Warning! empties savefile

patch_initrfs
I think it is good to run a fsck on savefile after PushBackSaveLayer
is executed. PushBackSaveLayer works anyway but if you want
this behaviour you should patch your initrfs.img with this.

sb
A wrapper for "bundle" and has some more features like automatically
detecting and operating on modules/ dir to avoid cd'ing. Can also force
unloading ( obs uses kill -9 ). can mount changes.fs4 readonly for example
in boot with fresh paramer

offon
Works on modules/ dir and turns off bundles so they are not loaded at next boot.

sbcomb
Combine squashfiles. Turn chnages.fs4 into a squashfile.

slax2alpha
A tool to tweak slax bundles for alphaos. For instruction how to use run
slax2alpha --help

is_whiteouted
To be run on a bundle. checks whether any files in bundle have a whiteout file
in union

is_blackouted
To be run on a bundle. checks whether any files in bundle have a file
in savefile that hides it. Offers to move the blocking file
out of the way

findbinaryforbit
Used to check whether there are any 32 bit applications on a 64 bit system.



Only PushBackSaveLayer is GUI application. All have --help options to further explain
their behaviour.

scoobytools.sb include dependencies vcp and lsof.

Download
scoobytools.sb

Questions, feedback and bugreports are welcome.

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: scoobytools

Postby simargl » 13 Feb 2014, 20:37

Lots of stuff there Scooby :) Maybe somewhat too much for a single post. I like sbcomb, it looks useful. Any chance for source of Vala thing, or it's a secret? ;)

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: scoobytools

Postby Scooby » 13 Feb 2014, 22:01

yeah a lot of stuff and you're probably right should be more than one post
but I was just too lazy :oops:

anyway here comes source. No secrets :ugeek:

vala_source.sb

tigs
Advanced
Posts: 50
Joined: 05 Feb 2014, 00:57

Re: scoobytools

Postby tigs » 22 Feb 2014, 04:13

Hey scooby,

can you make a 32-bit version as well?

i i dont think I understand the pushbacksavelayer completely. It bascially transfers the content of savefile into a bundle. does it creat a new bundle or merge with an existing bundle, in my case changes.sb is already there. This is very useful, very close to pupmode=13, which transfers RAM content to the 4fs file. This one transfers the ext4 content to the sb file. Did I understant it correctly?

Can the the budle (sb file) be directly writable? then use toram boot option and save changes to bundle file directly?

Great work!

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: scoobytools

Postby Scooby » 22 Feb 2014, 10:13

Yeah a 32-bit version should be easy.

It ads a dir modules/pushbacksavelayer
when you run it the first time it will copy data from mounted savefile and squash it into
a file modules/pushbacksavelayer/999999pushbacksavelayer.sb then savefile will be emptied.

next time you boot savefile is empty but your data is still there coming from 999999pushbacksavelayer.sb
instead

if you run PushBackSAveLayerGUI again the data in savefile will be merged with data in 999999pushbacksavelayer.sb.
and then savefile will be emptied.

its a way of saving space really.

tigs wrote:Can the the budle (sb file) be directly writable?


SQUASHFS - A squashed read-only filesystem for Linux
so no it is designed to be read-only hence the use of aufs and ext4 savefile

tigs
Advanced
Posts: 50
Joined: 05 Feb 2014, 00:57

Re: scoobytools

Postby tigs » 22 Feb 2014, 15:43

Thanks Scooby. If it is convenient, would you be able to make a 32-bit version of the tool?

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: scoobytools

Postby Scooby » 25 Feb 2014, 20:50

32-bit version scoobytools_32.sb

report any bugs please.

john3voltas
Expert
Posts: 266
Joined: 19 May 2013, 21:53

Re: scoobytools

Postby john3voltas » 23 Mar 2014, 18:48

Are scoobytools dependant on alphaOS version?
For instance will they work on any alphaOS prior to 14.5?
Is it foreseeable that it will work on alphaOS 15.x when it is released?
Thanks

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: scoobytools

Postby Scooby » 23 Mar 2014, 19:38

Yeah it's mostly bash scripts and I think it would work on later versions.
There is a 32-bit version but I haven't tested it myself

I think pushbacksavelayer is really cumbersome and is not fully tested
and bug free.

I have moved a way from this method of squashing savefile and I don't think I wanna
put in the time to fix it 100%

Better you use the much lighter, easier and more beautiful simple way
of the .bashrc function presented here
viewtopic.php?f=6&t=1038&start=10#p2539

Well well at least I learnt a little vala doing pushbacksavelayer :?

john3voltas
Expert
Posts: 266
Joined: 19 May 2013, 21:53

Re: scoobytools

Postby john3voltas » 23 Mar 2014, 23:05

Thanks for your answer.
I guess it should be really cool to have a kernel option that we could activate from grub and that it would take changes.fs4 and automatically create a changes.sb (possibly merging with an older changes.sb already present in the modules folder).
Maybe that's what your PushBackSaveLayer used to do, right?
Cheers


Return to “Scripting and Programming”

Who is online

Users browsing this forum: No registered users and 12 guests

cron