-if [ -d /root/etc/gdm3 ]; then
- sed -i '/^[UG]ID_MIN/s/\<1000$/ 999/' /root/etc/login.defs
+# Delete the password for the live user on volatile systems
+sed -i '/^[UG]ID_MIN/s/\<1000$/ 999/' /root/etc/login.defs
This is unrelated to the stated purpose of blanking the password; and should probably remain gdm-specific?
+#inject a systemd unit to update AccountsService properties during boot
Per Adam's comment, there's no obvious reason why this should be done via a systemd unit, vs simply calling 'chroot passwd -d' from the initramfs. Have you tried that?
-if [ -d /root/etc/gdm3 ]; then ID_MIN/ s/\<1000$ / 999/' /root/etc/ login.defs ID_MIN/ s/\<1000$ / 999/' /root/etc/ login.defs
- sed -i '/^[UG]
+# Delete the password for the live user on volatile systems
+sed -i '/^[UG]
This is unrelated to the stated purpose of blanking the password; and should probably remain gdm-specific?
+#inject a systemd unit to update AccountsService properties during boot
Per Adam's comment, there's no obvious reason why this should be done via a systemd unit, vs simply calling 'chroot passwd -d' from the initramfs. Have you tried that?