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:
Oliver Smith 2020-07-01 00:14:08 +02:00
parent 90f57bbbcc
commit 324ea788ba
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 12 additions and 11 deletions

View File

@ -190,9 +190,10 @@ def setup_login(args):
Loop until the password for user has been set successfully, and disable root Loop until the password for user has been set successfully, and disable root
login. login.
""" """
suffix = "rootfs_" + args.device
if not args.on_device_installer:
# User password # User password
logging.info(" *** SET LOGIN PASSWORD FOR: '" + args.user + "' ***") logging.info(" *** SET LOGIN PASSWORD FOR: '" + args.user + "' ***")
suffix = "rootfs_" + args.device
while True: while True:
try: try:
pmb.chroot.root(args, ["passwd", args.user], suffix, pmb.chroot.root(args, ["passwd", args.user], suffix,