Skip to content

install: add --no-sshd argument

Oliver Smith requested to merge install-no-sshd into master

Allow to disable the sshd service in the target OS, and note at the end of the installation whether sshd is enabled or not. Find the details in each commit's message.

Output

[12:50:31] *** (4/4) FILL INSTALL BLOCKDEVICE ***
[12:50:31] (native) copy rootfs_qemu-amd64 to /mnt/install/
[12:50:36]
[12:50:36] *** FLASHING INFORMATION ***
[12:50:36] Refer to the installation instructions of your device, or the generic install instructions in the wiki.
[12:50:36] https://wiki.postmarketos.org/wiki/Installation_guide#pmbootstrap_flash
[12:50:36]
[12:50:36] *** SSH DAEMON INFORMATION ***
[12:50:36] SSH daemon is disabled (--no-sshd).
[12:50:36]
[12:50:36] NOTE: chroot is still active (use 'pmbootstrap shutdown' as necessary)
[12:50:36] Done

When enabled:

[13:11:37] *** SSH DAEMON INFORMATION ***
[13:11:37] SSH daemon is enabled (disable with --no-sshd).
[13:11:37] Login as 'user' with the password given during installation.

Test plan

$ pmbootstrap config device qemu-amd64
$ pmbootstrap config ui none
$ yes | pmbootstrap install
$ pmbootstrap qemu
(now login via sshd, should work)
$ yes | pmbootstrap install --no-sshd
$ pmbootstrap qemu
(now login via sshd, should not work)

Merge request reports