-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exclude /var/lib/dbus/machine-id from basefiles t… #14
Conversation
…o allow uniq builds
We already create an empty machine-id in the basefile. IIRC an empty file is needed (and better than excluding the machine-id file from the tar file) for the boot process to regenerate a new id during the first boot. I cannot see that /var/lib/dbus/machine-id is included into the base files I create, so I wonder why this patch is needed. |
yes, the empty file looks like the right answer in the end (if you want a refresher on the question here was a good summary). currently i'll try to look further into the question of |
apologies for the extended delay. i have looked into this further and it appears that for an ubuntu run as part of since |
if excluding from the tarball isn't desired, an alternative is adding |
or a more aggressive approach in |
Unlike the other CI nodes in the trial run, the node faiproject#14 has 16 cores (instead of 8). So this allows to test the priortized wakeup of CI nodes, which is essentially based on their core count. Thanks to Jonas for fixing iPXE for the i4cinode14.
If I get it correct, the best solution is to empty the /etc/machine-id file instead of excluding it from the tar in fai-make-nfsroot as I do in mk-basefiles. So, FAI should always create an empty /etc/machine-id but not exlcude it. Is this correct? |
yes, i believe that is correct:
thank you! |
I added the changes now to the master branch. |
this change updates the
mk-basefile
script to exclude/etc/machine-id
and/var/lib/dbus/machine-id
from basefiles to allow unique builds. in testing it appears that removing both is necessary (cf.SYSTEMD-MACHINE-ID-SETUP(1)
"If a valid D-Bus machine ID is already configured [...]"). tested on a FOCAL64 basefile.it is worth noting that the
create_base
function inbin/fai-make-nfsroot
currently only excludes/etc/machine-id
. likely this should be updated as well.