Edit initrd.gz with right-click-action

Miscellaneous tools
Post Reply
Message
Author
User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

Edit initrd.gz with right-click-action

#1 Post by RSH »

Hi.

This is based on my Edit-Initrdgz-1.4.pet created at October 2011. I have made this one now a right-click-application.

To edit the initrd.gz just do a right-click on the file and choose Initrd.gz edit.

What does this do?

- makes a backup of the selected initrd.gz named initrd-bak.gz
- copies initrd.gz to /root
- makes directory /root/Init_rd_tmp
- extracts the initrd.gz to /root/Init_rd_tmp
- needed files to edit are automatically opened either in geany or nicoedit (leafpad)
- removes /root/initrd.gz

After editing the initrd.gz do a right-click on /root/Init_rd_tmp and choose Initrd.gz re-build.

Directories are automatically opened.

That's all

Have fun with it.

RSH

Note1: The Program does its job only if the file is initrd.gz or if the directory is /root/Init_rd_tmp. Otherwise it does nothing.

Note2: The DevX is not longer needed to Edit and Rebuild the initrd.gz file - it works now the same way as in the remasterpup2 script! - 2013-01-15
Attachments
Edit-Initrdgz-rtc-0.3.pet
The DevX is not longer needed to Edit and Rebuild the initrd.gz file
(5.04 KiB) Downloaded 844 times
Last edited by RSH on Tue 15 Jan 2013, 20:14, edited 1 time in total.
[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
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#2 Post by RSH »

Version 0.3 uploaded!

The DevX is not longer needed to Edit and Rebuild the initrd.gz file
- 2013-01-15 8)

New Version is at first post.

RSH
[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
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#3 Post by greengeek »

Hi RSH - is this only for Lazy pup?

R-S-H
Posts: 487
Joined: Mon 18 Feb 2013, 12:47

#4 Post by R-S-H »

Hi greengeek.

Usually the programs that I've published on the forum are made and built in into LazY Puppy - but they are published for any other puppy (some of these applications might not work on FatDog, because it's really different). Applications especially for LazY Puppy are posted in the LazY Puppy thread or at smokey01.com, in the Updates directory for LazY Puppy.

This should work for as well as it (still!) does for me.

RSH

EDIT:

In newer puppies you need to copy a symbolic link, which is in /root/.config/rox.sourceforge.net/OpenWith/.application_x-gzip.
This is needed because newer puppies do have its own directory for the initrd.gz file, which is: /root/.config/rox.sourceforge.net/OpenWith/.application_initramfs-gz.

This is to open or to rebuild(?) the initrd.gz by right-click-action.
Last edited by R-S-H on Thu 11 Jul 2013, 21:28, edited 1 time in total.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy Home
The new LazY Puppy Information Centre[/url][/b]

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#5 Post by ASRI éducation »

R-S-H wrote:In newer puppies you need to copy a symbolic link, which is in /root/.config/rox.sourceforge.net/OpenWith/.application_x-gzip.
This is needed because newer puppies do have its own directory for the initrd.gz file, which is: /root/.config/rox.sourceforge.net/OpenWith/.application_initramfs-gz.

This is to rebuild the initrd.gz by right-click-action.
I did not know, thank you for the info.

I must soon take the time to test your script (it seems very practical).

R-S-H
Posts: 487
Joined: Mon 18 Feb 2013, 12:47

#6 Post by R-S-H »

ASRI éducation wrote:
R-S-H wrote:In newer puppies you need to copy a symbolic link, which is in /root/.config/rox.sourceforge.net/OpenWith/.application_x-gzip.
This is needed because newer puppies do have its own directory for the initrd.gz file, which is: /root/.config/rox.sourceforge.net/OpenWith/.application_initramfs-gz.

This is to rebuild the initrd.gz by right-click-action.
I did not know, thank you for the info.

I must soon take the time to test your script (it seems very practical).
Yes! It is practical. Believe me, I know this! :lol:

The information about the new directory /root/.config/rox.sourceforge.net/OpenWith/.application_initramfs-gz I found while working on a LazY Puppy based on Precise 5.6 (which is available in the German forum - German version only; it could be turned to English user interface but there will stay some German Menu or GUI parts).

In older Puppies it should work out of the box.

RSH
[b][url=http://lazy-puppy.weebly.com]LazY Puppy Home
The new LazY Puppy Information Centre[/url][/b]

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#7 Post by greengeek »

Hi RSH, I have installed the pet, but do not see any option in the rightclick menu. I am running precise 5.1.4.1

I can see the symlink /root/.config/rox.sourceforge.net/OpenWith/.application_x-gzip that you have mentioned. Perhaps I misunderstood your post - do I need to copy this symlink somewhere else?

EDIT : OK i got it - I had to use the "customize" entry and drag the "edit_initrd_gz" from /usr/local/apps into /root/.config/rox.sourceforge.net/OpenWith.

EDIT2 : It seems that Precise 5.1.4.1 needs your pet, but Precise 5.6.1 has it's own inbuilt initrd.gz editor which appears when you rightclick.

Post Reply