-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
cloud-utils: fix dependency on gnused in $PATH #15737
Conversation
The cloud-utils package was extracted from inline use in `amazon-grow-partition` where it used `gnused` in the initrd, probably for legacy reasons. Now that it can be used separately, it should use just `sed` which is provided by the stdenv. Also, `amazon-grow-partition` can now do away with the `gnused` alias.
By analyzing the blame information on this pull request, we identified @edolstra and @domenkozar to be potential reviewers |
Note that this assumes nothing in amazon-grow-partition depends on |
@martijnvermaat looks good. If you can test this still works deploying to EC2, I'm happy to merge. |
@domenkozar Thanks. I haven't used this on EC2 myself actually, but would be happy to explore that. Might be a while, but I'll ping you when I got the chance. |
@martijnvermaat great. I'd like to check we don't break EC2 as it's very important. Otherwise I will run my tests for OpenStack to be sure this works here. |
@domenkozar Could you give me a hint on how best to test this PR? Just took my first baby steps with NixOS/NixOps on EC2. If you want to do it faster, pleas go ahead, but I'm willing to learn. I now know how to deploy from a custom nixpkgs tree to EC2 using NixOps, but of course Perhaps another (easier) way would be to just start an EC2 instance and install NixOS in it manually with I feel like you had an easier way in mind I have yet to learn about. |
@martijnvermaat you can pass |
@domenkozar yes, but |
@martijnvermaat indeed it would be easier to first deploy a NixOS machine and then resize it. But correcting |
Steps I took to try and test the auto resizing codepath with a minimal
Am I wrong expecting the partition to grow on boot? When I deploy the same network with Unrelated note: |
I'm moving over the weekend so I'll take a look next week. Sorry :) |
No problem! |
@domenkozar Did you have a chance to look at this PR? |
@ttuegel not really. I don't use EC2 so for me it's a bit of work also to get it all going. Anyone willing to help? |
I have created another PR (#17015) to update cloud-utils to 0.29, where I remove the old patch and substitute the proper awk and sed paths to the growpart script. I have verified the execution of |
@jokogr your PR supplants this one? |
@joachifm I think so, yes. This PR removes the symbolic link to gnused. I am unsure if it can find a My PR updates the package and requires the gawk and gnused packages explicitly. |
@Mic92 why is this closed? |
@domenkozar because @jokogr said this pull request was replaced by #17015. |
@domenkozar sorry for interfering, feel free to re-open it, but in any way, I am updating #17015 this week, so hopefully this PR won't be needed. |
Motivation for this change
Fixes #15736
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)The cloud-utils package was extracted from inline use in
amazon-grow-partition
where it usedgnused
in the initrd, probablyfor legacy reasons. Now that it can be used separately, it should use
just
sed
which is provided by the stdenv.Also,
amazon-grow-partition
can now do away with thegnused
alias.