Merge pull request #130388 from oxalica/fix/etc-nixos-tag-in-activation

authored by Maciej Krüger and committed by GitHub f37f1b2d a9d2ce62

+6
+6
nixos/modules/system/etc/setup-etc.pl
··· 138 138 # Rewrite /etc/.clean. 139 139 close CLEAN; 140 140 write_file("/etc/.clean", map { "$_\n" } @copied); 141 + 142 + # Create /etc/NIXOS tag if not exists. 143 + # When /etc is not on a persistent filesystem, it will be wiped after reboot, 144 + # so we need to check and re-create it during activation. 145 + open TAG, ">>/etc/NIXOS"; 146 + close TAG;