Re: Is it possible to use a stream for initrd=

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>:
>
> 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@xxxxxxxxxxxxx

St. Martin-Apotheke
Herzog-Georg-Str. 25
89415 Lauingen
https://www.st-martin-apo.de
info@xxxxxxxxxxxxxxxx

_______________________________________________
kexec mailing list
kexec@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/kexec



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux