From: Baoquan He <bhe@redhat.com>
To: kexec@lists.infradead.org
Subject: Is it possible to use a stream for initrd=
Date: Wed, 9 Feb 2022 17:28:42 +0800 [thread overview]
Message-ID: <YgOJSlK/0UW6rJIS@MiWiFi-R3L-srv> (raw)
In-Reply-To: <CAHfPjO-RXk4vo0noptQJ28LxTRQWGCd6yifBqGqPup_aD7h6Ug@mail.gmail.com>
On 02/09/22 at 10:16am, Tobias Powalowski wrote:
> Hi,
> I have a tmp directory with all files placed in:
> find . -mindepth 1 -printf '%P\0' | sort -z | LANG=C bsdtar --uid 0
> --gid 0 --null -cnf - -T - |\
> LANG=C bsdtar --null -cf - --format=newc @- | zstd -T0 > /initrd.img
>
> and this initrd.img I want to write into kexec without creating the initrd file.
>
> kexec -l /vmlinuz-linux --initrd=/initrd.img --reuse-cmdline
> systemctl kexec
See manpage of kexec, the EXAMPLE part:
kexec -l /boot/vmlinux --initrd=/boot/initrd --reuse-cmdline
kexec -e
next prev parent reply other threads:[~2022-02-09 9:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-08 15:36 Is it possible to use a stream for initrd= Tobias Powalowski
2022-02-09 3:21 ` Baoquan He
2022-02-09 9:16 ` Tobias Powalowski
2022-02-09 9:28 ` Baoquan He [this message]
2022-02-09 9:32 ` Tobias Powalowski
2022-02-15 10:27 ` Philipp Rudo
2022-02-15 10:31 ` Tobias Powalowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YgOJSlK/0UW6rJIS@MiWiFi-R3L-srv \
--to=bhe@redhat.com \
--cc=kexec@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.