pmbootstrap sideload fails with doas as a sudo replacement
Ever since postmarketOS edge switched to doas
instead of sudo
pmboostrap sideload
no longer works:
$ pmbootstrap sideload linux-lenovo-cd-18781y
[23:01:59] Querying architecture of felix@172.16.42.1
[23:02:00] Copying packages to felix@172.16.42.1
[23:02:01] Installing packages at felix@172.16.42.1
sudo: unrecognized option: p
Usage:
sudo (-i | -s) [-n] [-u <user>] [<command> [--] [<args>...]]
sudo [-ins] [-u <user>] <command> [--] [<args>...]
sudo [-h]
Execute a command as another user using doas(1).
This is not the original sudo, but the doas shim for sudo. It supports only
a subset of the sudo options (both short and long) that have an equivalent in
doas, plus option -i (--login). Refer to sudo(1) for more information.
If you need some sudo features that are not supported in doas, replace
package 'doas-sudo-shim' with 'sudo': apk add sudo !doas-sudo-shim.
Please report bugs at <https://github.com/jirutka/doas-sudo-shim/issues>.
Connection to 172.16.42.1 closed.
[23:02:02] NOTE: The failed command's output is above the ^^^ line in the log file: /home/felix/.local/var/pmbootstrap/log.txt
[23:02:02] ERROR: Command failed (exit code 1): % ssh -t -p 22 felix@172.16.42.1 sh -c 'sudo -p '"'"'[sudo] password for %u@%h: '"'"' -S apk --wait 30 add /tmp/linux-lenovo-cd-18781y-6.11_p20240914230147-r0.apk ; rc=$?; rm /tmp/linux-lenovo-cd-18781y-6.11_p20240914230147-r0.apk ; exit $rc'
[23:02:02] See also: <https://postmarketos.org/troubleshooting>