Closed janagoudarniroop closed 2 months ago
Closing this issue as this is resolved after changing the order of execution of commands in the template provided, Need to execute cleanup before the passd security steps and it doesn't need any fix in pvsadm template.
/close
@KeerthanaAP: Closing this issue.
What happened: Build Server used: redhat 9-2 sap server using pvsadm tool to build the rhel 8-10 and rhel 9-4 image , even though cleanup is mentioned in template script but its not reflecting in the image
pvsadm image qcow2ova --image-name rhel-9-4 --image-url ./rhel-9.4-ppc64le-kvm.qcow2 --image-dist rhel --image-size 100 --target-disk-size 100 --rhn-user --rhn-password --os-password --temp-dir /rhel_tmp --prep-template template-redhat-9-4-vanilla-2024-q2.sh
cat template-redhat-9-4-vanilla-2024-q2.sh | tail
But this is not getting executed inside the image
What you expected to happen:
We expected all the files to be cleared and removed from the image which would be built
How to reproduce it (as minimally and precisely as possible):
Try to build an rhel 9-4 or rhel 8-10 image with these cmds in template script and check if the files are removed from the final image
Anything else we need to know?:
Environment:
pvsadm version
):cat /etc/os-release
):uname -a
):