Package: kexec-tools
Version: 1:2.0.27-1
Severity: normal

Dear Maintainer,

  root@chwast:/tmp# zcat /media/Image.gz | kexec -l -t Image /dev/stdin 
--reuse-cmdline --dtb /usr/local/src/mt8173-elm-hana.dtb
  Cannot read /dev/stdinroot@chwast:/tmp#

As evident from this transcript, the output isn't a text file.

(Also, it doesn't say why it couldn't read it; strace disagrees:
   openat(AT_FDCWD, "/dev/stdin", O_RDONLY) = 4
   lseek(4, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
   read(4, 
"MZ@\372\377?\0\24\0\0\0\0\0\0\0\0\0\0\333\33\0\0\0\0\n\0\0\0\0\0\0\0"..., 
8192) = 8192
   close(4)                                = 0
   openat(AT_FDCWD, "/dev/stdin", O_RDONLY) = 4
   newfstatat(4, "", {st_mode=S_IFIFO|0600, st_size=0, ...}, AT_EMPTY_PATH) = 0
   close(4)                                = 0
   write(2, "Cannot read /dev/stdin", 22Cannot read /dev/stdin)  = 22
   exit_group(1)                           = ?
 it's a bizarre success, but a success nonetheless.)

Best,
наб

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: arm64 (aarch64)

Kernel: Linux 6.6.11 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_WARN
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages kexec-tools depends on:
ii  debconf [debconf-2.0]  1.5.83
ii  dpkg                   1.22.2
ii  libc6                  2.37-13
ii  libxenmisc4.17         4.17.2+76-ge1f9cb16e2-1
ii  zlib1g                 1:1.3.dfsg-3+b1

kexec-tools recommends no packages.

kexec-tools suggests no packages.

-- debconf information:
  kexec-tools/use_grub_config: false

Attachment: signature.asc
Description: PGP signature

Reply via email to