Skip to content

Conversation

@djsly
Copy link
Collaborator

@djsly djsly commented Dec 16, 2025

What type of PR is this?
/kind bug

What this PR does / why we need it:
fixing repodepot support for azlinux3 and ubuntu2404 as well as PMC on Ubuntu

Requirements:

  • uses conventional commit messages
  • includes documentation
  • adds unit tests
  • tested upgrade from previous version
  • commits are GPG signed and Github marks them as verified

Special notes for your reviewer:

Release note:

none

cloud-init status --wait

function init_mariner_repo_depot {
local repodepot_endpoint=$1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this copied from somewhere? Can you please add the source?

IS_MARINER=1
elif [[ $NAME == *"Microsoft Azure Linux"* ]]; then
IS_AZURELINUX=1
else
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i see that below you have mentioned

no customization

Can we keep the behaviour consistent, like log a error message/warning that we cannot determine the distribution and customization may not be applied. i feel exit 1 is a bit extreme


cloud-init status --wait

function init_mariner_repo_depot {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add documentation of source of this script.

elif [[ $ID == *"flatcar"* ]]; then
IS_FLATCAR=1
else
echo "Unknown Linux distribution"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here rather log a warning instead of exit 1

fi

if [ "$IS_FLATCAR" -eq 0 ]; then
function init_ubuntu_main_repo_depot {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i feel all the repo depot customizations can be moved to a separate file, its ok to defer to another PR, but seems like lot of code here :(

# Disable systemd-timesyncd and install chrony and uses local time source
chrony_conf="/etc/chrony/chrony.conf"
if [ "$IS_FLATCAR" -eq 0 ]; then
if [ "$IS_UBUNTU" -eq 1 ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Azure linux doesnt require this?

EOF

if [ "$IS_FLATCAR" -eq 0 ]; then
if [ "$IS_UBUNTU" -eq 1 ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here doesnt other OS require it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants