-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
minimal installer: support cloud-init #39088
Conversation
@@ -7,4 +7,7 @@ | |||
imports = | |||
[ ./installation-cd-base.nix | |||
]; | |||
|
|||
# Enable cloud-init so the image can also be used for cloud providers | |||
services.cloud-init.enable = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds python + libraries to the iso. How much does this increase the image size?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python 2.7 is already in the minimal image, so I'm hoping not much. I hope I can find out via ofBorg :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ouch, running nix-shell -p cloud-init
on the minimal ISO turns into a 60MB download and 500MB unpacked :-/
Not sure if that is the best way to test though.
We have |
Another approach would be to have a minimal script like the one @copumpkin wrote for AWS. Parse at least the ssh stuff and expect a nix expression for the rest. User data is free-form… |
@GrahamcOfBorg build nixos.iso_minimal.x86_64-linux |
No attempt on x86_64-linux (full log) The following builds were skipped because they don't evaluate on x86_64-linux: nixos.iso_minimal.x86_64-linux Partial log (click to expand)
|
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: nixos.iso_minimal.x86_64-linux Partial log (click to expand)
|
@GrahamcOfBorg build iso_minimal.x86_64-linux |
No attempt on x86_64-linux (full log) The following builds were skipped because they don't evaluate on x86_64-linux: iso_minimal.x86_64-linux Partial log (click to expand)
|
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: iso_minimal.x86_64-linux Partial log (click to expand)
|
Doesn't cloud-init block bootup until it manages to reach the metadata server? I can't recall exactly where I encountered that but IIRC it does. |
Hmm that would make sense. In that case rolling our own would definitely be
the best option.
…On Wed, Apr 18, 2018, 2:26 AM Tuomas Tynkkynen, ***@***.***> wrote:
Doesn't cloud-init block bootup until it manages to reach the metadata
server? I can't recall exactly where I encountered that but IIRC it does.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#39088 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AADWlvDs8o1fn8NLslX5EfqTyMh_1U1Iks5tpogzgaJpZM4TZEmQ>
.
|
I'm closing this, I'll continue the conversation in #39076 to come up with something better suited to NixOS. |
Fixes #39076
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)