kexec-installer-test: fix eval on 22.11
This commit is contained in:
parent
3c28f1145f
commit
c81bcbc1a8
2 changed files with 9 additions and 5 deletions
|
@ -16,7 +16,7 @@ in {
|
|||
|
||||
# This is a variant of the upstream kexecScript that also allows embedding
|
||||
# a ssh key.
|
||||
system.build.kexecRun = lib.mkForce (pkgs.writeScript "kexec-run" ''
|
||||
system.build.kexecRun = pkgs.writeScript "kexec-run" ''
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
shopt -s nullglob
|
||||
|
@ -72,7 +72,7 @@ in {
|
|||
# We will kexec in background so we can cleanly finish the script before the hosts go down.
|
||||
# This makes integration with tools like terraform easier.
|
||||
nohup bash -c "sleep 6 && '$SCRIPT_DIR/kexec' -e" &
|
||||
'');
|
||||
'';
|
||||
|
||||
system.build.kexecTarball = pkgs.runCommand "kexec-tarball" {} ''
|
||||
mkdir kexec $out
|
||||
|
|
|
@ -93,9 +93,13 @@ in makeTest' {
|
|||
ipv6Prefixes = [
|
||||
{ ipv6PrefixConfig = { Prefix = "2001:db8::/64"; AddressAutoconfiguration = true; OnLink = true; }; }
|
||||
];
|
||||
ipv6RoutePrefixes = [
|
||||
{ ipv6RoutePrefixConfig = { Route = "::/0"; LifetimeSec = 3600; }; }
|
||||
];
|
||||
# does not work in 22.11
|
||||
#ipv6RoutePrefixes = [ { ipv6RoutePrefixConfig = { Route = "::/0"; LifetimeSec = 3600; }; }];
|
||||
extraConfig = ''
|
||||
[IPv6RoutePrefix]
|
||||
Route = ::/0
|
||||
LifetimeSec = 3600
|
||||
'';
|
||||
networkConfig = {
|
||||
DHCPServer = true;
|
||||
Address = "10.0.0.1/24";
|
||||
|
|
Loading…
Reference in a new issue