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

[Question] Offline package installation #30

Closed
meraj-kashi opened this issue Mar 30, 2023 · 2 comments
Closed

[Question] Offline package installation #30

meraj-kashi opened this issue Mar 30, 2023 · 2 comments
Assignees
Labels
Community Advice Resources from the community question Further information is requested

Comments

@meraj-kashi
Copy link
Contributor

Hi!
This is a question and not an issue!

Is there any way to install debian packages before creating the ISO? Ubuntu cloud-init needs access to the Internet to install packages, so I am looking for a solution to inject packages during image creation.

Downloading debian packages and injecting through extras file could be a solution, but managing package dependecies is not easy!

The another possible solution could be chroot, but in which step of the script I should do?

Br,
Meraj

@cloudymax
Copy link
Owner

PXEless doesn't support this at the moment, but if that feature were to be included the location would be here

I would recommend following this guide as it was the source material i followed while writing the squashfs part of the script.

I hope that helps! 👋

@cloudymax cloudymax self-assigned this Mar 31, 2023
@cloudymax cloudymax added question Further information is requested Community Advice Resources from the community labels Mar 31, 2023
@meraj-kashi
Copy link
Contributor Author

Thank you for your clarification.

The issue resolved. For those who are interested to install packages during image creation:

  • Create a bash script (for example offline-config.sh) including all package installation and pre-installed configuration.
  • Put the script in extras directory (Directory includes extra files to be added to the image)
  • Add the below line to here:
log " - Step 3.5. Package customizing..."
sudo chroot squashfs-root/ /bin/bash /media/offline-config.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Advice Resources from the community question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants