cisagov / kali-packer

This project can be used to create AMIs based on Kali Linux, a penetration testing distribution.
Creative Commons Zero v1.0 Universal
16 stars 6 forks source link

Remove code that manually includes flock in the initramfs #130

Closed jsf9k closed 1 year ago

jsf9k commented 1 year ago

💡 Summary

When possible, remove code that manually includes flock in the initramfs.

Motivation and context

We saw in #127 and #128 that the growpart program that grows the root partition (part of the cloud-initramfs-growroot package) now requires flock, but the update-initramfs hook script for cloud-initramfs-growroot does not currently copy flock to the initramfs. This is a known bug, and I added flock to the initramfs manually to work around it.

Once the upstream package includes flock in the initramfs, the code that manually includes flock in the initramfs should be removed.

See #127 and #128 for more details.

Implementation notes

The code is in the src/fix_growroot.yml Ansible playbook fragment.

Acceptance criteria

How do we know when this work is done?