coreos-installer icon indicating copy to clipboard operation
coreos-installer copied to clipboard

`pxe customize` command changes permissions

Open zaneb opened this issue 2 years ago • 0 comments

Bug

Host Operating System Version

RHEL 8

Target Operating System Version

RHCOS 4.12/4.13

coreos-installer Version

0.14-0.17

Expected Behavior

Output initrd file from coreos-installer pxe customize has either permissions 0664 (same as the initrd initially produced by coreos installer iso extract pxe) or the same permissions as the input initrd file.

Actual Behavior

The output initrd file is created with permissions 0600, with the result that after a naive copy (i.e. without chown) of the PXE artifacts to a TFTP/HTTP server directory, the kernel and rootfs work fine but the initrd is not readable and the user then has to debug what went wrong.

Reproduction Steps

  1. coreos-installer iso extract pxe coreos.iso
  2. coreos-installer pxe customize --live-ignition config.ign -o custom-initrd.img coreos-initrd.img
  3. ls -l

Other Information

zaneb avatar May 19 '23 09:05 zaneb