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

Debian 12 packer template and some minor fixes #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mirwan
Copy link

@mirwan mirwan commented Aug 1, 2024

What this PR is about:

  • Packer template for Debian 12: Introduced user variables in order to, first, generate httpdir/user-data, then, use the vars in template, and at shutdown, remove the packer user
  • Adjust example_build/scripts/pre-install-baremetal.sh
    • For Debian 12 (non-free-firmware)
    • Change the kernel to the distrib default one (to mimic OVH standards apparently)
    • Remove apt-get clean which removes downloaded packages

Note to reviewers:

  • I used separate commits so that they can be dropped if judged unworthy (default kernel for example)
  • Despite the removal of apt-get clean I couldn't make the image work as is on a kimsufi without efi. I didn't have KVM to debug and ended up with installing grub-pc (without download-only) in example_build/scripts/pre-install-baremetal.sh and using dpkg-reconfigure grub-pc in example_build/files/make_image_bootable.sh

@sbraz
Copy link

sbraz commented Oct 17, 2024

Hello @mirwan,
Sorry for the delay, we completely missed your PR. I think we addressed some of the issues in #4, could you please try again and update the code if it's still required?

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.

2 participants