This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/scripts/switch b/scripts/switch | |
index 0c97424..f0a488c 100755 | |
--- a/scripts/switch | |
+++ b/scripts/switch | |
@@ -22,6 +22,7 @@ | |
# /log: File where logs are piped to | |
set -u | |
+set -x | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stopping the following units: systemd-modules-load.service, systemd-udevd-control.socket, systemd-udevd-kernel.socket, systemd-udevd.service | |
activating the configuration... | |
reloading user units for bemeurer... | |
setting up tmpfiles | |
starting the following units: systemd-modules-load.service, systemd-udevd-control.socket, systemd-udevd-kernel.socket | |
Waiting for confirmation.. | |
Success confirmation received, activating system |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[goethe] Connecting to host... | |
[goethe] Copying closure to host... | |
[goethe] Copying secrets... | |
[goethe] Triggering system switcher... | |
[goethe] + [[ 8888 -ne 0 ]] | |
[goethe] + exec sudo /nix/store/jmxryxkpvjpcxaxkw1zx7qvvkfmkj573-switch/bin/switch start /nix/store/67bjaqlk8maa1wsnnrpgpj4zls56az80-nixos-system-goethe-20.09pre-git | |
[goethe] + [[ 0 -ne 0 ]] | |
[goethe] + mkdir -p /var/lib/system-switcher | |
[goethe] + chmod 770 /var/lib/system-switcher | |
[goethe] + cd /var/lib/system-switcher |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[goethe] Connecting to host... | |
[goethe] Copying closure to host... | |
[goethe] Copying secrets... | |
[goethe] Triggering system switcher... | |
[goethe] + [[ 8888 -ne 0 ]] | |
[goethe] + exec sudo /nix/store/1bkbbyypdvfaqrq946vw2s0mjm6bssbv-switch/bin/switch start /nix/store/67bjaqlk8maa1wsnnrpgpj4zls56az80-nixos-system-goethe-20.09pre-git | |
[goethe] + [[ 0 -ne 0 ]] | |
[goethe] + mkdir -p /var/lib/system-switcher | |
[goethe] + chmod 770 /var/lib/system-switcher | |
[goethe] + cd /var/lib/system-switcher |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
activating the configuration... | |
reloading user units for bemeurer... | |
setting up tmpfiles | |
the following new units were started: libvirtd.service | |
Waiting for confirmation.. | |
Success confirmation received, activating system |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
activating the configuration... | |
reloading user units for bemeurer... | |
setting up tmpfiles | |
the following new units were started: libvirtd.service | |
Waiting for confirmation.. | |
Success confirmation received, activating system |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ ./result/bin/deploy-goethe | |
[goethe] Connecting to host... | |
[goethe] Copying closure to host... | |
[goethe] Copying secrets... | |
[goethe] Triggering system switcher... | |
[goethe] Trying to confirm success... | |
[goethe] ssh: connect to host goethe.meurer.org port 22: Connection refused | |
[goethe] ssh: connect to host goethe.meurer.org port 22: Connection refused | |
[goethe] Failed to activate new system! Rolled back to previous one | |
[goethe] See /var/lib/system-switcher/system-5/log for logs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! This module only exists to force rustc to actually link these libraries and avoid them getting | |
//! stripped later on. This way we can avoid the `dlopen` that some of our dependencies seem to | |
//! love so much. | |
//! This is also in part needed because `--as-needed` is hardcoded in rustc, c.f. https://github.com/rust-lang/rust/blob/7f3b3df9e2f2efe3434b4f6fc76462d2c8ad332f/src/librustc_target/spec/linux_base.rs#L7-L18 | |
use paste; | |
macro_rules! link_hack { | |
($lib:expr, $symbol:ident) => { | |
#[link(name = $lib)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nix-config on nixus [⇕!] | |
❯ nix build -f deployment.nix config.nodes.cantor.combinedDeployScript | |
nix-config on nixus [⇕!] | |
❯ ./result/bin/deploy-cantor | |
[cantor] Connecting to host... | |
[cantor] Copying closure to host... | |
[cantor] copying path '/nix/store/1zkmjbvinn03kh65fprji92miqc5bq8g-etc-machines' from 'https://nix-config.cachix.org'... | |
[cantor] copying path '/nix/store/wz77v55d86cd7fm144kpabb3l0yvml1k-etc-ssh_known_hosts' from 'https://nix-config.cachix.org'... | |
[cantor] copying 6 paths... | |
[cantor] copying path '/nix/store/6mfbkz78kcxnp9p8668kxhbnfgcig1rp-switch' to 'ssh://10.0.5.217'... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nix-config on nixus [⇕!] via ❄️ nix-config (impure) | |
❯ nix build -f deployment.nix config.nodes.cantor.combinedDeployScript | |
[7 built, 0.0 MiB DL] | |
nix-config on nixus [⇕!] via ❄️ nix-config (impure) | |
❯ ./result/bin/deploy-cantor | |
[cantor] Connecting to host... | |
[cantor] /usr/bin/env: ‘sh’: No such file or directory | |
[cantor] kex_exchange_identification: Connection closed by remote host | |
[cantor] Unable to connect to host! |