install --ondev: don't ask for user password (MR 1954)
With postmarketos-ondev 0.2.0, the password is set in the on-device installer.
This commit is contained in:
parent
90f57bbbcc
commit
324ea788ba
|
@ -190,9 +190,10 @@ def setup_login(args):
|
|||
Loop until the password for user has been set successfully, and disable root
|
||||
login.
|
||||
"""
|
||||
suffix = "rootfs_" + args.device
|
||||
if not args.on_device_installer:
|
||||
# User password
|
||||
logging.info(" *** SET LOGIN PASSWORD FOR: '" + args.user + "' ***")
|
||||
suffix = "rootfs_" + args.device
|
||||
while True:
|
||||
try:
|
||||
pmb.chroot.root(args, ["passwd", args.user], suffix,
|
||||
|
|
Loading…
Reference in New Issue