Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 02 Sep 2014, 11:33
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
scripts to extract and store files in initrd.gz
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
gyro

Joined: 28 Oct 2008
Posts: 419
Location: Brisbane, Australia

PostPosted: Sun 05 Dec 2010, 16:40    Post subject:  scripts to extract and store files in initrd.gz  

These are some scripts I wrote to make it easier to work on specific files within an initrd.gz. I publish them here just in case they are useful to others.

initrd-extract.sh: extract a file from an initrd.gz, used by the following 2 scripts
extract-bootconfig: extract "BOOTCONFIG" from an initrd.gz
extract-init: extract "init" from and initrd.gz

initrd-replace.sh: replace a file in an initrd.gz, used by the following 2 scripts
store-bootconfig: replace "BOOTCONFIG" in an initrd.gz
store-init: replace "init" in an initrd.gz

gyro
initrd-scripts.tar.gz
Description  In any directory, "tar xzf initrd-scripts.tar.gz" to extract the 6 files.
gz

 Download 
Filename  initrd-scripts.tar.gz 
Filesize  916 Bytes 
Downloaded  394 Time(s) 
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Sun 05 Dec 2010, 16:46    Post subject:  

Hope it is okay to ask you to give some example what one can do with it.

Can I take out SeaMonkey and replace it with Firefox or what kind of changes does it allow?

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 419
Location: Brisbane, Australia

PostPosted: Sun 05 Dec 2010, 17:10    Post subject:  

These scripts are only useful for people modifying files that are contained within the file "initrd.gz".
No, the scripts cannot be used to add or remove applications.
I use them when modifying the "init" script that loads the various sfs files that are puppy. It means I can easily inject a different version of the "init" script into an "initrd.gz" file. This is the script that gets modified to add or remove support for boot parameters, or add support for ext3/ext4 pupsave files.

NOTE: To get some help on the parameters required by the scripts, just enter the name of the script file without any parameters.

gyro
Back to top
View user's profile Send private message 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Tue 07 Dec 2010, 18:54    Post subject:  

Thanks. What about having these scripts in the "devx" SFS?
_________________
adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
Back to top
View user's profile Send private message Visit poster's website 
gyro

Joined: 28 Oct 2008
Posts: 419
Location: Brisbane, Australia

PostPosted: Wed 08 Dec 2010, 13:48    Post subject:  

abushcrafter wrote:
Thanks. What about having these scripts in the "devx" SFS?
The powers that be, are free to make use of my code in any way that they might find useful. But I have no control over what goes into "devx".

gryo
Back to top
View user's profile Send private message 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Sat 11 Dec 2010, 19:33    Post subject:  

gyro wrote:
abushcrafter wrote:
Thanks. What about having these scripts in the "devx" SFS?
The powers that be, are free to make use of my code in any way that they might find useful. But I have no control over what goes into "devx".

gryo
I know. I was making the suggestion too the main puppy devs that might be reading this thread. Though I should mention this in there threads for that I guess...
_________________
adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
Back to top
View user's profile Send private message Visit poster's website 
gyro

Joined: 28 Oct 2008
Posts: 419
Location: Brisbane, Australia

PostPosted: Sat 25 Dec 2010, 11:35    Post subject: now supporting DISTRO_SPECS  

Added support for DISTRO_SPECS. and updated initrd-replace.sh so that the "bak" file is ".bak.gz" not ".gz.bak"

extract-distro-specs:
extract "DISTRO_SPECS" from an initrd.gz

store-distro-specs:
replace "DISTRO_SPECS" in an initrd.gz
initrd-scripts.tar.gz
Description  use "tar xzf /path/to/downloaded/initrd-scripts.tar.gz" in the directory where you want them to go.
gz

 Download 
Filename  initrd-scripts.tar.gz 
Filesize  1.04 KB 
Downloaded  329 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0610s ][ Queries: 12 (0.0038s) ][ GZIP on ]