coreos-installer
coreos-installer copied to clipboard
`pxe customize` command changes permissions
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
-
coreos-installer iso extract pxe coreos.iso -
coreos-installer pxe customize --live-ignition config.ign -o custom-initrd.img coreos-initrd.img -
ls -l