diff --git a/package/gluon-legacy/files/lib/gluon/upgrade/lock-password/legacy/010-lock-password b/package/gluon-legacy/files/lib/gluon/upgrade/lock-password/legacy/010-lock-password
deleted file mode 100755
index ce6d59ac412fb4c27718ebfc37929ea4deaa9fc3..0000000000000000000000000000000000000000
--- a/package/gluon-legacy/files/lib/gluon/upgrade/lock-password/legacy/010-lock-password
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-
-has_root_pwd() {
-	local pwd=$([ -f "$1" ] && cat "$1")
-	pwd="${pwd#*root:}"
-	pwd="${pwd%%:*}"
-
-	test -n "${pwd#[\!x]}"
-}
-
-
-has_root_pwd /etc/passwd || has_root_pwd /etc/shadow || passwd -l root
diff --git a/package/gluon-lock-password/files/lib/gluon/upgrade/lock-password/initial/010-lock-password b/package/gluon-lock-password/files/lib/gluon/upgrade/lock-password/initial/010-lock-password
deleted file mode 100755
index 6e67fc4c5a6962f5cc2ea56f0b483d10a6895f83..0000000000000000000000000000000000000000
--- a/package/gluon-lock-password/files/lib/gluon/upgrade/lock-password/initial/010-lock-password
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-passwd -l root
diff --git a/package/gluon-lock-password/files/lib/gluon/upgrade/lock-password/invariant/010-lock-password b/package/gluon-lock-password/files/lib/gluon/upgrade/lock-password/invariant/010-lock-password
new file mode 100755
index 0000000000000000000000000000000000000000..3204f638b7a5fa12a84d26d1ba84d3185647c4e1
--- /dev/null
+++ b/package/gluon-lock-password/files/lib/gluon/upgrade/lock-password/invariant/010-lock-password
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+has_root_pwd() {
+	local pwd
+
+	pwd=$([ -f "$1" ] && cat "$1")
+	pwd="${pwd#*root:}"
+	pwd="${pwd%%:*}"
+
+	test -n "${pwd}"
+}
+
+has_root_pwd /etc/shadow || passwd -l root