Displaying 4 results from an estimated 4 matches for "skipcpio".
2018 Feb 26
4
How to update modules in iniramfs fastly
> -----Original Messages-----
> From: "Steven Tardy" <sjt5atra at gmail.com>
> Sent Time: 2018-02-26 10:48:48 (Monday)
> To: "CentOS mailing list" <centos at centos.org>
> Cc:
> Subject: Re: [CentOS] How to update modules in iniramfs fastly
>
> On Sun, Feb 25, 2018 at 8:29 PM wuzhouhui <wuzhouhui14 at mails.ucas.ac.cn>
> wrote:
2018 Jan 31
4
How is initrd.img packed and compressed?
...s not
the same format as the original initrd.img that ships with the distro.
I would like to know the proper incantation
used to package initrd.img
Now for the specifics. The original image: http://mirror.steadfast.net/
centos/7.4.1708/os/x86_64/isolinux/initrd.img
is extracted: /usr/lib/dracut/skipcpio initrd.img | xzcat | cpio -i -d
and after adding the needed udev rule, it gets packed and compressed as
follows:
find . 2>/dev/null | cpio --quiet -c -o | xz -9
--format=lzma >"~/patched-initrd.img"
Now for the difference. FIrst the original distro image:
# file initrd.img
initr...
2018 Jan 31
0
How is initrd.img packed and compressed?
...e original initrd.img that ships with the distro.
> I would like to know the proper incantation
> used to package initrd.img
>
> Now for the specifics. The original image: http://mirror.steadfast.net/
> centos/7.4.1708/os/x86_64/isolinux/initrd.img
> is extracted: /usr/lib/dracut/skipcpio initrd.img | xzcat | cpio -i -d
> and after adding the needed udev rule, it gets packed and compressed as
> follows:
>
> find . 2>/dev/null | cpio --quiet -c -o | xz -9
> --format=lzma >"~/patched-initrd.img"
>
> Now for the difference. FIrst the original dis...
2018 Feb 26
0
How to update modules in iniramfs fastly
...lutions/24029).
i think you have that backwards ... mkinitrd is simply a wrapper
around a call to dracut, which builds an initramfs.
> This solution does not work in CentOS 7, because initramfs in CentOS
> 7 is not a gzipped cpio:
it is, but to get to the content, you need to use "skipcpio" to jump
over the initial tiny cpio archive. see, for example:
https://sites.google.com/site/syscookbook/rhel/rhel-kernel-rebuild
rday