Sometimes it's desirable to avoid creating temporary files on disk just to feed them to efivar later:
$ echo -ne 'data\0' | iconv -t ucs2 > ./var.bin
$ sudo efivar -w --name=... --datafile=./var.bin
I've tried using /dev/stdin and /proc/self/fd/0 but neither worked:
$ echo -ne 'data\0' | iconv -t ucs2 | sudo efivar -w --name=... --datafile=/dev/stdin
Could not use "/dev/stdin": Invalid argument
$ echo -ne 'data\0' | iconv -t ucs2 | sudo efivar -w --name=... --datafile=/proc/self/fd/0
Could not use "/proc/self/fd/0": Invalid argument
Please fix the usage or provide alternative syntax like:
$ echo -ne 'data\0' | iconv -t ucs2 | sudo efivar -w --name=... --datafile=-
P.S.: efibootmgr supports feeding arguments via stdin with -@ - .
Sometimes it's desirable to avoid creating temporary files on disk just to feed them to
efivarlater:I've tried using
/dev/stdinand/proc/self/fd/0but neither worked:Please fix the usage or provide alternative syntax like:
P.S.: efibootmgr supports feeding arguments via stdin with
-@ -.