Description of changes:
Create the /usr/share/bottlerocket directory before writing any files to it, just in case a package hasn't already created it.
Testing done:
This was annoying to test, given the implicit expectations in rpm2img that a kernel package will be installed, but with some local hacks I was able to confirm that a version of aws-dev which removed the kernel-6.1 package dependency failed later in the script:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.
Issue number: Related: https://github.com/bottlerocket-os/bottlerocket-core-kit/pull/163
Description of changes: Create the
/usr/share/bottlerocket
directory before writing any files to it, just in case a package hasn't already created it.Testing done: This was annoying to test, given the implicit expectations in
rpm2img
that a kernel package will be installed, but with some local hacks I was able to confirm that a version ofaws-dev
which removed thekernel-6.1
package dependency failed later in the script:Said hacks:
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.