Skip to content

Fixes 39365 - Update preseed_autoinstall_cloud_init.erb#11005

Open
JeanFrancois38 wants to merge 1 commit into
theforeman:developfrom
JeanFrancois38:patch-1
Open

Fixes 39365 - Update preseed_autoinstall_cloud_init.erb#11005
JeanFrancois38 wants to merge 1 commit into
theforeman:developfrom
JeanFrancois38:patch-1

Conversation

@JeanFrancois38
Copy link
Copy Markdown

Since Ubuntu 26, the root password is not set with "hashed_passwd", but the chpasswd method still works.

With the current preseed, the root password is empty at the end of the installation of Ubuntu 26. Adding the chpasswd section solve the problem (and it works with Ubuntu 24 too).

Since Ubuntu 26, the root  password is not set with "hashed_passwd", but the chpasswd method still works.
@nadjaheitmann
Copy link
Copy Markdown
Contributor

Hi @JeanFrancois38 , thanks for submitting the patch. Can you create an issue in https://projects.theforeman.org/projects/foreman and reference it in the commit message with 'Fixes #xxxxx - ....' ? Also, the snapshot tests for the templates are failing because you adjusted the template. If you need help fixing those, please ask :)

About the code, is the fix compatible with older Ubuntu versions?

@JeanFrancois38 JeanFrancois38 changed the title Update preseed_autoinstall_cloud_init.erb Fixes 39365 - Update preseed_autoinstall_cloud_init.erb May 28, 2026
@JeanFrancois38
Copy link
Copy Markdown
Author

I tried it with Ubuntu 24 and it works.
But for now I don't have tryed to remove the "hashed_passwd" line, which seems to be useless now.

@nadjaheitmann
Copy link
Copy Markdown
Contributor

I tried it with Ubuntu 24 and it works. But for now I don't have tryed to remove the "hashed_passwd" line, which seems to be useless now.

Is it compatible with 22.04?

@JeanFrancois38
Copy link
Copy Markdown
Author

I've not tested. I don't use foreman for this version.

@JeanFrancois38
Copy link
Copy Markdown
Author

I don"t understand how works the snapshot tests and why my updates cause a failure. I'm not familiar with this process.

@nadjaheitmann
Copy link
Copy Markdown
Contributor

I don"t understand how works the snapshot tests and why my updates cause a failure. I'm not familiar with this process.

We can fix the tests once we figure out how the rest of the snippet should look like. In short: The tests render the template for a specific OS and compares it to some sort of snapshot. If you change something in the template, it does not match the snapshot anymore and you need to adapt it.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants