Branch: refs/heads/master
Home: https://github.com/NixOS/nixops
Commit: 60622c49cebb1e841574fa3b8fd2983191c1ca33
https://github.com/NixOS/nixops/commit/60622c49cebb1e841574fa3b8fd2983191c1ca33
Author: aszlig <[email protected]>
Date: 2015-10-30 (Fri, 30 Oct 2015)
Changed paths:
M nix/hetzner-bootstrap.nix
Log Message:
-----------
hetzner-bootstrap: Fix wrapping Nix inside chroot.
So far we've made wrappers for the store paths used for building the
bootstrap installer. But those paths aren't necessarily available in the
store of the live system after the first deploy (especially after a GC).
We now check whether the "true" command can be executed within the
system path of the chrooted target system and if that really returns
true, we use the system profile link to get to the correct store paths.
That way it's still possible to deploy and/or rollback while the machine
is in rescue state no matter if there was a GC in-between.
We also now directly execve() the wrapped file so we won't do more forks
than necessary (we already have one additional fork for the execution of
"true").
Signed-off-by: aszlig <[email protected]>
Commit: 7dcb3f7985ee149bb0ac521bbdd799e759757b13
https://github.com/NixOS/nixops/commit/7dcb3f7985ee149bb0ac521bbdd799e759757b13
Author: aszlig <[email protected]>
Date: 2015-10-30 (Fri, 30 Oct 2015)
Changed paths:
M nix/hetzner-bootstrap.nix
Log Message:
-----------
hetzner-bootstrap: Replace ensureDir with mkdir.
Using ensureDir is deprecated since NixOS/nixpkgs@b3b9c51.
Signed-off-by: aszlig <[email protected]>
Commit: 16420e1cff27e7331035b31389e89d9c43537e7c
https://github.com/NixOS/nixops/commit/16420e1cff27e7331035b31389e89d9c43537e7c
Author: aszlig <[email protected]>
Date: 2015-10-30 (Fri, 30 Oct 2015)
Changed paths:
M nixops/backends/hetzner.py
Log Message:
-----------
backends/hetzner: Fix PEP8 compliance.
Fixes the following errors from the PEP8 checking tool:
160:11: E121 continuation line under-indented for hanging indent
230:80: E501 line too long (80 > 79 characters)
702:80: E501 line too long (80 > 79 characters)
Signed-off-by: aszlig <[email protected]>
Commit: 100c82a942ee428216c76ef31a4a8a78d6f75d83
https://github.com/NixOS/nixops/commit/100c82a942ee428216c76ef31a4a8a78d6f75d83
Author: aszlig <[email protected]>
Date: 2015-10-30 (Fri, 30 Oct 2015)
Changed paths:
M nix/hetzner-bootstrap.nix
M nixops/backends/hetzner.py
Log Message:
-----------
hetzner-bootstrap: Allow to easily enter chroot.
So far entering the chroot always has been a bit awkward:
chroot /mnt /nix/var/nix/profiles/system/sw/bin/bash
And this worked only in a very limited way, because we also would need
to set a proper $PATH like /nix/var/nix/profiles/system/sw/bin.
But even that will still only enter the BASH shell and doesn't respect
the preference of the root user of the target system.
So we now create a wrapper called nixos-enter that essentially uses su
to change to the root user using the right login shell.
But in order to use the real user's environment we also need to make
sure that we have things such as /run/current-system, for which the
method _bootstrap_rescue_for_existing_system() has just been introduced.
It also adds a small banner to /etc/motd so that the user will be aware
of the existence of the nixos-enter command.
Signed-off-by: aszlig <[email protected]>
Compare: https://github.com/NixOS/nixops/compare/d6631b6ea733...100c82a942ee_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits