-
-
Notifications
You must be signed in to change notification settings - Fork 498
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
keep networking packages for containers #6583
base: dev
Are you sure you want to change the base?
Conversation
The network packages are not installed/removed for container images intentionally at the moment. We will only add them in conjunction with a choice/flag or even a new hardware model for network-capable containers. Also, this change on the installer does not address the issue that network is not set up as part of the first boot setup. This is currently skipped on container images (with hardware ID 75). Please see the related request here: #5204 (comment) Handling the input/variable/flag would at best be added here just before or after the WiFi input: https://github.com/MichaIng/DietPi/blob/92c4963/.build/images/dietpi-installer#L458 The actual packages should then be added here where other container/non-container packages are added: https://github.com/MichaIng/DietPi/blob/92c4963/.build/images/dietpi-installer#L877 |
Yes maybe I misunderstood what the HW_Model "Container" really is.
I'm not quite sure what u like to achieve here. In my usecase i like to convert an existing debian lxc and all the networking stuff already happened after container creation on the host (proxmox) side, either with fixed or dhcp address. After convertion has completed you can still change or keep the configured address on first boot setup.
Was going through that but I think it's a different usecase, as i only like to convert from an existing, not building a new container.
good point, this would be a better place for keeping the necessary packages. If you like i would try to introduce next available HW-Model-ID (i think 81 should be free) or like you did here: DietPi/.build/images/dietpi-installer Lines 374 to 375 in 92c4963
something like 75.1 (docker) and 75.2 (lxc) |
We thought about a DietPi Docker image in past but did not found a real use case for it. |
I'm not sure whether Proxmox itself re-adds |
Yes, using |
3ce4ed1
to
4c6fb87
Compare
Thank you for your guidance! I've finally updated my PR 🎉 |
4c6fb87
to
8376cc5
Compare
Hi,
I wanted to use a default debian lxc container in proxmox and convert it to DietPi.
The main problem was that the container was losing network connectivity during the installation procedure and could not reinstall required packages.
This fix keeps the required packages and the convertion succeeds.
I have tested it with debian 11 with dhcp and fixed ip, both works well now ;)