| Author |
Message |
gyro
Joined: 28 Oct 2008 Posts: 289 Location: Brisbane, Australia
|
Posted: 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
| Description |
In any directory, "tar xzf initrd-scripts.tar.gz" to extract the 6 files.
|

Download |
| Filename |
initrd-scripts.tar.gz |
| Filesize |
916 Bytes |
| Downloaded |
306 Time(s) |
|
|
Back to top
|
|
 |
nooby
Joined: 29 Jun 2008 Posts: 9389 Location: SwedenEurope
|
Posted: 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'm a noob so I use Google Search of Puppy Forum
|
|
Back to top
|
|
 |
gyro
Joined: 28 Oct 2008 Posts: 289 Location: Brisbane, Australia
|
Posted: 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
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1447 Location: England
|
Posted: 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
|
|
 |
gyro
Joined: 28 Oct 2008 Posts: 289 Location: Brisbane, Australia
|
Posted: 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
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1447 Location: England
|
Posted: 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
|
|
 |
gyro
Joined: 28 Oct 2008 Posts: 289 Location: Brisbane, Australia
|
Posted: 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
| Description |
use "tar xzf /path/to/downloaded/initrd-scripts.tar.gz" in the directory where you want them to go.
|

Download |
| Filename |
initrd-scripts.tar.gz |
| Filesize |
1.04 KB |
| Downloaded |
242 Time(s) |
|
|
Back to top
|
|
 |
|