mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 15:41:40 +00:00
Merge pull request #130388 from oxalica/fix/etc-nixos-tag-in-activation
This commit is contained in:
commit
f37f1b2d01
|
@ -138,3 +138,9 @@ foreach my $fn (@oldCopied) {
|
|||
# Rewrite /etc/.clean.
|
||||
close CLEAN;
|
||||
write_file("/etc/.clean", map { "$_\n" } @copied);
|
||||
|
||||
# Create /etc/NIXOS tag if not exists.
|
||||
# When /etc is not on a persistent filesystem, it will be wiped after reboot,
|
||||
# so we need to check and re-create it during activation.
|
||||
open TAG, ">>/etc/NIXOS";
|
||||
close TAG;
|
||||
|
|
Loading…
Reference in a new issue