Skip to content
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

Fix Preseed late_command #94

Merged
merged 53 commits into from
Mar 22, 2024
Merged

Fix Preseed late_command #94

merged 53 commits into from
Mar 22, 2024

Conversation

xeluior
Copy link
Owner

@xeluior xeluior commented Mar 8, 2024

This PR fixes a number of small bugs preventing the genisys-firstboot.service from running.

  1. Adds an alias for the genisys host as genisys.internal in DNSMasq so that SSL can use a hostname
  2. Updates the entrypoint script for using the new hostname and fixing some commands
  3. Adds a block to chown the SSL cert to the server user if it was generated by the install subcommand (which expects to be ran as root)
  4. Concatenates the SSL pubkey, SSH pubkey, and firstboot FTP logic into a single command string since preseed can only accept one value for the late_command directive
  5. When dropping server priviledges, take up all groups of the server user, in addition to the specified group, to allow file acls on auxiliary files (like the config file) to function as expected
  6. Add the "inventory" test case to the VirtualBox testing scripts

xeluior and others added 30 commits February 26, 2024 14:27
We first check for vboxmanage then VBoxManage if it is not found. The user can directly set the path with an environment variable.
@xeluior xeluior linked an issue Mar 8, 2024 that may be closed by this pull request
@xeluior xeluior marked this pull request as draft March 8, 2024 19:48
@xeluior xeluior marked this pull request as ready for review March 18, 2024 21:11
@xeluior xeluior merged commit 518cebf into main Mar 22, 2024
10 checks passed
@xeluior xeluior deleted the robert/inventory-test branch March 22, 2024 16:57
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.

Preseed late_command is failling to grab the first-boot file
4 participants