diff --git a/modules/system/activation/switch-to-configuration.sh b/modules/system/activation/switch-to-configuration.sh index 62af63ec39f..0256100f4ec 100644 --- a/modules/system/activation/switch-to-configuration.sh +++ b/modules/system/activation/switch-to-configuration.sh @@ -59,16 +59,16 @@ fi # Activate the new configuration. if [ "$action" != switch -a "$action" != test ]; then exit 0; fi -oldVersion=$(cat /run/current-system/upstart-interface-version 2> /dev/null || echo 0) -newVersion=$(cat @out@/upstart-interface-version 2> /dev/null || echo 0) +oldVersion="$(cat /run/current-system/init-interface-version 2> /dev/null || echo "")" +newVersion="$(cat @out@/init-interface-version)" -if test "$oldVersion" -ne "$newVersion"; then +if [ "$oldVersion" != "$newVersion" ]; then cat < $out/kernel-params echo -n "$configurationName" > $out/configuration-name - #echo -n "${toString config.system.build.upstart.interfaceVersion}" > $out/upstart-interface-version + echo -n "systemd ${toString config.system.build.systemd.interfaceVersion}" > $out/init-interface-version echo -n "$nixosVersion" > $out/nixos-version mkdir $out/fine-tune