GUI to edit initrd.gz

Miscellaneous tools
Post Reply
Message
Author
emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

GUI to edit initrd.gz

#1 Post by emil »

Forum member RSH published a nice little GUI to unpack/edit/repack the initrd.gz in the german forum section.
This is sometimes necessary, if you want to have some special settings, or you want to change messages during boot.

This is a pet which has a menu entry in "Utilities"
Edit-Initrdgz-1.0-en.pet

Might spare some forum search for the right commands ...

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

Re: GUI to edit initrd.gz

#2 Post by saintless »

emil wrote:Forum member RSH published a nice little GUI to unpack/edit/repack the initrd.gz in the german forum section.
This is sometimes necessary, if you want to have some special settings, or you want to change messages during boot.

This is a pet which has a menu entry in "Utilities"
Edit-Initrdgz-1.0-en.pet

Might spare some forum search for the right commands ...
Thanks, I needed to change the initrd file a few months ago and I used the information here:
http://www.murga-linux.com/puppy/viewtopic.php?t=24899
With a pet package it will be more easy for everyone.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: GUI to edit initrd.gz

#3 Post by L18L »

emil wrote:Forum member RSH published a nice little GUI to unpack/edit/repack the initrd.gz in the german forum section.
This is sometimes necessary, if you want to have some special settings, or you want to change messages during boot.
...
I have used it now to change messages during boot in slacko52

Thank you, emil and RSH :)
L

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#4 Post by RSH »

Edit initrd.gz is now Version 1.1!

UPDATED at 10.11.2011

http://murga-linux.com/puppy/viewtopic. ... 208#575208
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
Peakeen
Posts: 14
Joined: Sat 28 Jan 2012, 12:28

#5 Post by Peakeen »

"Who needs a utility? How difficult can it be to extract a file from an archive and then reinsert it?" Or so I thought before discovering cpio and having all my prejudices about unix confirmed and reinforced.

An archive utility could be called "archive" but this is unix so let's call it "cpio" for copy-in-and-out. Then let's provide switches -i and -o for in and out. Too obvious? OK we'll use i for out and o for in. And how about t for list?

Then, instead of simply having the archive name as a parameter, let's insist on using the greater-than and less-than signs as little arrows pointing to and from (or is it from and to?) the archive filename.

And the files to be inserted could be the other parameter but, no, let's make the user pipe it in from a listing utility. And, since most users are familiar with 'ls' , let's construct it so that it expects input from 'find'. That's more obscure and has some really weird parameters...

I could go on but, at this stage, I lost the will to live and looked for someone else's solution. Then, when I think I've almost cracked it, I discover the instructions are in German. Gott in Himmel, give me strength! At least it's not Finnish!

Ernst, RSH, vielen dank!

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#6 Post by 01micko »

Why cpio?

RPMs have used cpio for ages, Red Hat isn't about to change that.

There are plenty of other links, go look :)

I wonder if windows in some way is tied to legacy stuff? :lol:

Good on you RSH..
Puppy Linux Blog - contact me for access

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

GUI to edit initrd.gz

#7 Post by RSH »

I discover the instructions are in German. Gott in Himmel, give me strength! At least it's not Finnish!
:lol: :lol: :lol: :lol:

Uploaded version 1.3. German and English localisations. German and Engish short tutorial. 8)

http://murga-linux.com/puppy/viewtopic. ... 371#581371
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
nic007
Posts: 3408
Joined: Sun 13 Nov 2011, 12:31
Location: Cradle of Humankind

#8 Post by nic007 »

This utility is not working for me. It opens 4 files/scripts to edit. Then I do this, save it but the rebuilt initrd.gz is only a few bytes big. Surely this can't be right?

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#9 Post by saintless »

nic007 wrote:This utility is not working for me. It opens 4 files/scripts to edit. Then I do this, save it but the rebuilt initrd.gz is only a few bytes big. Surely this can't be right?
Quick test with ver.1.4 and it works fine.
Open and read the help file.
initrd.gz file has to be in /root, otherwise you will get only few bytes big initrd.gz
If you still have troubles here is how you can edit initrd from command line:
http://www.murga-linux.com/puppy/viewtopic.php?t=24899

Cheers

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#10 Post by charlie6 »

Hi,
thanks for this tool !
here is version 1.4 with french locale
Attachments
Edit-Initrdgz-1.4.pet
version 1.4 + french locale
(6.99 KiB) Downloaded 757 times

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#11 Post by mikeb »

why cpio .... Why is cpio better than tar? A number of reasons.
sorry had to be annoying...ANYTHING is better than TAR!!! A primitive archive system based on tape drives without an index cos on tapes you could not have one.

Cpio is ok for initrds but needs some messing around to copy system files to the main system.
It also precludes reverting to the initrd for a clean shutdown....its more suited to embedded systems eg routers. You also cannot peek into the /initrd for convenience as half the original contents are missing...the obsession to save a KB or 2 goes too far...I am with Peakeen on this one.

ext2/gz initrds ftw.... got an unpack/pack script for those if anyone wants.

Don't even know why I posted here ... guess I had an itch to scratch :D

mike

Post Reply