* Is it possible to use a stream for initrd=
@ 2022-02-08 15:36 Tobias Powalowski
2022-02-09 3:21 ` Baoquan He
0 siblings, 1 reply; 7+ messages in thread
From: Tobias Powalowski @ 2022-02-08 15:36 UTC (permalink / raw)
To: kexec
Hi,
just a quick question, is it possible to use a stream for initrd= parameter?
I want to save RAM/Space and directly load the ramdisk into memory for reboot.
initrd=< ... does not work.
Thanks.
greetings
tpowa
--
Tobias Powalowski
Archlinux Developer & Package Maintainer (tpowa)
https://www.archlinux.org
tpowa at archlinux.org
St. Martin-Apotheke
Herzog-Georg-Str. 25
89415 Lauingen
https://www.st-martin-apo.de
info@st-martin-apo.de
^ permalink raw reply [flat|nested] 7+ messages in thread
* Is it possible to use a stream for initrd=
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
0 siblings, 1 reply; 7+ messages in thread
From: Baoquan He @ 2022-02-09 3:21 UTC (permalink / raw)
To: kexec
On 02/08/22 at 04:36pm, Tobias Powalowski wrote:
> Hi,
> just a quick question, is it possible to use a stream for initrd= parameter?
> I want to save RAM/Space and directly load the ramdisk into memory for reboot.
> initrd=< ... does not work.
Are you using kexec -l or kexec -p to reboot? Can you write down your
operation steps?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Is it possible to use a stream for initrd=
2022-02-09 3:21 ` Baoquan He
@ 2022-02-09 9:16 ` Tobias Powalowski
2022-02-09 9:28 ` Baoquan He
0 siblings, 1 reply; 7+ messages in thread
From: Tobias Powalowski @ 2022-02-09 9:16 UTC (permalink / raw)
To: kexec
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
Thanks for your help.
greetings
tpowa
Am Mi., 9. Feb. 2022 um 04:22 Uhr schrieb Baoquan He <bhe@redhat.com>:
>
> On 02/08/22 at 04:36pm, Tobias Powalowski wrote:
> > Hi,
> > just a quick question, is it possible to use a stream for initrd= parameter?
> > I want to save RAM/Space and directly load the ramdisk into memory for reboot.
> > initrd=< ... does not work.
>
> Are you using kexec -l or kexec -p to reboot? Can you write down your
> operation steps?
>
--
Tobias Powalowski
Archlinux Developer & Package Maintainer (tpowa)
https://www.archlinux.org
tpowa at archlinux.org
St. Martin-Apotheke
Herzog-Georg-Str. 25
89415 Lauingen
https://www.st-martin-apo.de
info at st-martin-apo.de
^ permalink raw reply [flat|nested] 7+ messages in thread* Is it possible to use a stream for initrd=
2022-02-09 9:16 ` Tobias Powalowski
@ 2022-02-09 9:28 ` Baoquan He
2022-02-09 9:32 ` Tobias Powalowski
0 siblings, 1 reply; 7+ messages in thread
From: Baoquan He @ 2022-02-09 9:28 UTC (permalink / raw)
To: kexec
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Is it possible to use a stream for initrd=
2022-02-09 9:28 ` Baoquan He
@ 2022-02-09 9:32 ` Tobias Powalowski
2022-02-15 10:27 ` Philipp Rudo
0 siblings, 1 reply; 7+ messages in thread
From: Tobias Powalowski @ 2022-02-09 9:32 UTC (permalink / raw)
To: kexec
Sorry you misunderstood, I don't want to create the initrd.img file.
I want to pass the zstd directly to kexec initrd= option.
greetings
tpowa
Am Mi., 9. Feb. 2022 um 10:28 Uhr schrieb Baoquan He <bhe@redhat.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
>
--
Tobias Powalowski
Archlinux Developer & Package Maintainer (tpowa)
https://www.archlinux.org
tpowa at archlinux.org
St. Martin-Apotheke
Herzog-Georg-Str. 25
89415 Lauingen
https://www.st-martin-apo.de
info at st-martin-apo.de
^ permalink raw reply [flat|nested] 7+ messages in thread
* Is it possible to use a stream for initrd=
2022-02-09 9:32 ` Tobias Powalowski
@ 2022-02-15 10:27 ` Philipp Rudo
2022-02-15 10:31 ` Tobias Powalowski
0 siblings, 1 reply; 7+ messages in thread
From: Philipp Rudo @ 2022-02-15 10:27 UTC (permalink / raw)
To: kexec
Hi Tobias,
On Wed, 9 Feb 2022 10:32:24 +0100
Tobias Powalowski <tobias.powalowski@googlemail.com> wrote:
> Sorry you misunderstood, I don't want to create the initrd.img file.
> I want to pass the zstd directly to kexec initrd= option.
sorry, that is not possible. The kexec-tools expect a file name with
--initrd. Simply passing a binary blob to be used as initrd isn't
implemented.
Thanks
Philipp
> greetings
> tpowa
>
> Am Mi., 9. Feb. 2022 um 10:28 Uhr schrieb Baoquan He <bhe@redhat.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
> >
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Is it possible to use a stream for initrd=
2022-02-15 10:27 ` Philipp Rudo
@ 2022-02-15 10:31 ` Tobias Powalowski
0 siblings, 0 replies; 7+ messages in thread
From: Tobias Powalowski @ 2022-02-15 10:31 UTC (permalink / raw)
To: kexec
Hi,
thanks for your answers, would be really cool if someone could implement it.
Would help my Arch Linux project to save even more RAM.
https://wiki.archlinux.org/title/Archboot
greetings
tpowa
Am Di., 15. Feb. 2022 um 11:27 Uhr schrieb Philipp Rudo <prudo@redhat.com>:
>
> Hi Tobias,
>
> On Wed, 9 Feb 2022 10:32:24 +0100
> Tobias Powalowski <tobias.powalowski@googlemail.com> wrote:
>
> > Sorry you misunderstood, I don't want to create the initrd.img file.
> > I want to pass the zstd directly to kexec initrd= option.
>
> sorry, that is not possible. The kexec-tools expect a file name with
> --initrd. Simply passing a binary blob to be used as initrd isn't
> implemented.
>
> Thanks
> Philipp
>
> > greetings
> > tpowa
> >
> > Am Mi., 9. Feb. 2022 um 10:28 Uhr schrieb Baoquan He <bhe@redhat.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
> > >
> >
> >
>
--
Tobias Powalowski
Archlinux Developer & Package Maintainer (tpowa)
https://www.archlinux.org
tpowa at archlinux.org
St. Martin-Apotheke
Herzog-Georg-Str. 25
89415 Lauingen
https://www.st-martin-apo.de
info at st-martin-apo.de
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-02-15 10:31 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2022-02-09 9:32 ` Tobias Powalowski
2022-02-15 10:27 ` Philipp Rudo
2022-02-15 10:31 ` Tobias Powalowski
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.