Comment 2 for bug 1761644

Revision history for this message
Steve Langasek (vorlon) wrote :

-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?