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 25 Nov 2014, 20:36
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 Posts_count  
Author Message
gyro

Joined: 28 Oct 2008
Posts: 522
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  402 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: 522
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_website 
gyro

Joined: 28 Oct 2008
Posts: 522
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_website 
gyro

Joined: 28 Oct 2008
Posts: 522
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  334 Time(s) 
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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