Skip to content

Code duplication between bottlerocket and bottlerocket-core-kit repositiories #4457

Answered by cbgbt
rajivr asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

I believe the entirety of this duplication is caused by the migration system used during Bottlerocket's in-place update process.

To make a long story short, the authoritative code is in bottlerocket-core-kit, and you can likely disregard the duplicated bottlerocket sources if you are not using the in-place update system.

To elaborate a bit:

Migrations run arbitrary signed binaries which are useful for making changes during the update process that can't be fixed by simply replacing the root partition. Most often they are used to update users' settings values when we make changes to the shape of settings objects, or modify default values.

In these cases, migrations inspect the runnin…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rajivr
Comment options

Answer selected by rajivr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants