Is it possible to use a stream for initrd=
Tobias Powalowski
tobias.powalowski at googlemail.com
Tue Feb 15 02:31:00 PST 2022
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 at redhat.com>:
>
> Hi Tobias,
>
> On Wed, 9 Feb 2022 10:32:24 +0100
> Tobias Powalowski <tobias.powalowski at 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 at 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
More information about the kexec
mailing list