Page 1 of 1
Unpacking/Repacking 'Initrd.gz' [SOLVED]
Posted: Sat Oct 26, 2024 1:32 pm
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
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
Re: Unpacking/Repacking 'Initrd.gz'
Posted: Sat Oct 26, 2024 2:19 pm
by Xyz
Re: Unpacking/Repacking 'Initrd.gz'
Posted: Sat Oct 26, 2024 2:22 pm
by Xyz
Re: Unpacking/Repacking 'Initrd.gz'
Posted: Sat Oct 26, 2024 2:39 pm
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:
- Screenshot(17).jpg (22.96 KiB) Viewed 397 times
Re: Unpacking/Repacking 'Initrd.gz' [SOLVED]
Posted: Sat Oct 26, 2024 4:06 pm
by Jasper
Thank you all
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
Will add to the FP95 packages thread
Re: Unpacking/Repacking 'Initrd.gz' [SOLVED]
Posted: Sat Oct 26, 2024 4:52 pm
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.
Re: Unpacking/Repacking 'Initrd.gz' [SOLVED]
Posted: Sat Oct 26, 2024 5:04 pm
by Jasper
@mikewalsh
Thank you, this looks useful and a good 'ReadMe' to go through it 'step-by-step'