Unpacking/Repacking 'Initrd.gz' [SOLVED]

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
Jasper
Posts: 1696
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 867 times
Been thanked: 352 times

Unpacking/Repacking 'Initrd.gz' [SOLVED]

Post by Jasper »

Hi all

I can unpack this directory but am stuck with figuring out how to zip it back up in the original format *.gz

Image

Gzip only works with individual files and I do not need it to be archived as *.tar.gz

I have tried using 7z eg

7z a -tgzip <directory name>

which doesn't work.

Can someone let me know how to do this?

All that I am attempting to do is modify the existing directory and repack it.

Thanks in advance

Last edited by Jasper on Sat Oct 26, 2024 3:55 pm, edited 1 time in total.
Xyz
Posts: 24
Joined: Tue Jan 23, 2024 8:16 pm
Has thanked: 4 times
Been thanked: 8 times

Re: Unpacking/Repacking 'Initrd.gz'

Post by Xyz »

Xyz
Posts: 24
Joined: Tue Jan 23, 2024 8:16 pm
Has thanked: 4 times
Been thanked: 8 times

Re: Unpacking/Repacking 'Initrd.gz'

Post by Xyz »

User avatar
rockedge
Site Admin
Posts: 6813
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2965 times
Been thanked: 2793 times
Contact:

Re: Unpacking/Repacking 'Initrd.gz'

Post by rockedge »

@Jasper Give this script a whirl........ borrowed from FirstRib and Kennel Linux system building utilities

Place the script in the same directory as the initrd.gz, open a terminal:

Code: Select all

./modify_init_gz.sh initrd.gz
Screenshot(17).jpg
Screenshot(17).jpg (22.96 KiB) Viewed 394 times
Attachments
modify_initrd_gz.sh.fake.gz
Remove fake gz and make executable
(1.72 KiB) Downloaded 19 times
User avatar
Jasper
Posts: 1696
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 867 times
Been thanked: 352 times

Re: Unpacking/Repacking 'Initrd.gz' [SOLVED]

Post by Jasper »

Thank you all :thumbup:

Using the provided script, I edited my Fossapup64-95 and updated Busybox and e2fsck

Busybox 1.35
e2fsck 146.2

Tested it and boots fine :thumbup:

Will add to the FP95 packages thread :thumbup2:

User avatar
mikewalsh
Moderator
Posts: 6345
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 873 times
Been thanked: 2073 times

Re: Unpacking/Repacking 'Initrd.gz' [SOLVED]

Post by mikewalsh »

@Jasper :-

There's also "pupbuild-tools", published all the way back in 2010 on the old forum's kernel-swap thread (under 'How-tos') by jrb. The link from the old topic is now dead, but I've been using them for years. They still work, certainly up as far as Fossapup64. I couldn't say if they'll function under the modern 'usrmerge' Puppies, since many different 'tools' are now in use.....but the appropriate scripts still function fine for dealing with the initrd.gz.

The 'ReadMe' file inside describes how to use everything.

Attached below. (This IS a 'proper' tarball, BTW.....not a 'fake' extension.)

Mike. ;)

Attachments
jrb-pupbuild_tools.tar.xz
The 'Pupbuild' tools suite from jrb...
(3.79 KiB) Downloaded 16 times
User avatar
Jasper
Posts: 1696
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 867 times
Been thanked: 352 times

Re: Unpacking/Repacking 'Initrd.gz' [SOLVED]

Post by Jasper »

@mikewalsh

Thank you, this looks useful and a good 'ReadMe' to go through it 'step-by-step' :thumbup2:

Post Reply

Return to “Users”