mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/activation, switch-to-configuration-ng, doc: improve NIXOS_LUSTRATE installation experience (#349049)
This commit is contained in:
commit
4b0caba2c5
3 changed files with 54 additions and 19 deletions
|
@ -41,10 +41,6 @@ use Fcntl ':flock';
|
|||
my $out = "@out@";
|
||||
# System closure path to switch to
|
||||
my $toplevel = "@toplevel@";
|
||||
# Path to the directory containing systemd tools of the old system
|
||||
my $cur_systemd = abs_path("/run/current-system/sw/bin");
|
||||
# Path to the systemd store path of the new system
|
||||
my $new_systemd = "@systemd@";
|
||||
|
||||
# To be robust against interruption, record what units need to be started etc.
|
||||
# We read these files again every time this script starts to make sure we continue
|
||||
|
@ -130,6 +126,12 @@ if ($action eq "boot") {
|
|||
exit(0);
|
||||
}
|
||||
|
||||
# Path to the directory containing systemd tools of the old system
|
||||
# Needs to be after the "boot" action exits, as this directory will not exist when doing a NIXOS_LUSTRATE install
|
||||
my $cur_systemd = abs_path("/run/current-system/sw/bin");
|
||||
# Path to the systemd store path of the new system
|
||||
my $new_systemd = "@systemd@";
|
||||
|
||||
# Check if we can activate the new configuration.
|
||||
my $cur_init_interface_version = read_file("/run/current-system/init-interface-version", err_mode => "quiet") // "";
|
||||
my $new_init_interface_version = read_file("$toplevel/init-interface-version");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue