si_getimage line 670 Failed to update disks-layout
snowcake7 opened this issue · 2 comments
Hi, I am trying to follow the SystemImager v5 and got stuck when running si_getimage on the systemimager server.
# si_getimage --golden-client <your golden client hostname or ip> --image <image-name> --post-install=directboot
Useless use of private variable in void context at /sbin/si_getimage line 670.
syntax error at /sbin/si_getimage line 670, near ""Failed to update disks-layout $image.xml. Error: $!";"
Execution of /sbin/si_getimage aborted due to compilation errors.
Both of my systemimager server and client (golden client) are running in RHEL 8
# si_getimage --golden-client XXX.XXX.XXX.XXX --image myosimage --post-install=directboot
Useless use of private variable in void context at /sbin/si_getimage line 670.
syntax error at /sbin/si_getimage line 670, near ""Failed to update disks-layout
Execution of /sbin/si_getimage aborted due to compilation errors.
# lsdef -t osimage
Could not find any object definitions to display.
Solved the problem by editing the script /sbin/si_getimage, on the line 670 add a ")" close parenthesis.
copy($disks_layout_conf, $autoinstall_script_dir."/disks-layouts/".$image.".xml" or warn "Failed to update disks-layout $image.xml. Error: $!");