Execution of the free-root.sh script results in the root-disk being fully freed for re-use by the AMIgen scripts.
Actual behavior
Execution of the free-root.sh script results in an error if the bootstrap image doesn't have the audit service configured. Thus far, only encountered on the Oracle-published AMI for OL 8.8 (ami-02a7419f257858fad in the us-east-1 region).
Expected behavior
Execution of the
free-root.sh
script results in the root-disk being fully freed for re-use by the AMIgen scripts.Actual behavior
Execution of the
free-root.sh
script results in an error if the bootstrap image doesn't have theaudit
service configured. Thus far, only encountered on the Oracle-published AMI for OL 8.8 (ami-02a7419f257858fad
in the us-east-1 region).Steps to reproduce behavior
amazon-ebs.minimal-ol-8-hvm
builderaws_source_ami_filter_ol8_hvm
set to{name = "OL8.8-x86_64-HVM-*", owners = ["131827586825"]}
Suggestions for fix
Update
free-root.sh
to conditionally attempt to executeservice auditd stop