pmbootstrap/pmb/install
Oliver Smith 1b67c11396
install --ondev: run setup_login for installer OS (MR 2026)
Run setup_login() while creating the installer OS too, in order to
disable passwordless root login.

Note that this may sound like a security flaw, but it isn't.
* setup_login already ran for the target OS, meaning after the
  installation is done, one is not be able to login as root without
  password
* root login without password was only possible via serial console (or by
  attaching a keyboard), not via SSH
* getting root rights via serial in the installer OS is actually desired
  for debugging, we add a debug user with sudo set up by default:
  https://wiki.postmarketos.org/wiki/On-device_installer#Debug_user

So even though this isn't a problem, disable it to avoid confusion.
2021-02-12 11:15:25 +01:00
..
__init__.py treewide: bump copyright to 2021 2021-01-07 23:30:47 +01:00
_install.py install --ondev: run setup_login for installer OS (MR 2026) 2021-02-12 11:15:25 +01:00
blockdevice.py treewide: bump copyright to 2021 2021-01-07 23:30:47 +01:00
format.py pmb/install/format.py: fix too long line (MR 2008) 2021-01-27 15:01:57 +01:00
losetup.py treewide: bump copyright to 2021 2021-01-07 23:30:47 +01:00
partition.py install: add comments: logic in postmarketos-ondev (MR 2008) 2021-01-27 15:01:56 +01:00
recovery.py treewide: bump copyright to 2021 2021-01-07 23:30:47 +01:00
ui.py pmbootstrap install: support _pmb_groups (MR 2010) 2021-01-27 08:38:53 +03:00