Fixes 39365 - Update preseed_autoinstall_cloud_init.erb#11005
Fixes 39365 - Update preseed_autoinstall_cloud_init.erb#11005JeanFrancois38 wants to merge 1 commit into
Conversation
Since Ubuntu 26, the root password is not set with "hashed_passwd", but the chpasswd method still works.
|
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? |
|
I tried it with Ubuntu 24 and it works. |
Is it compatible with 22.04? |
|
I've not tested. I don't use foreman for this version. |
|
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. |
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).