boot-deploy can fail if /bin/sh is provided by something that strictly follows POSIX (i.e. no "local")
Describe your issue
What's the expected behaviour?
When running the upgrade script, the device upgrades with no errors and boots afterwards.
What's the current behaviour?
During the upgrade, I get:
19:31:53.667895 == Using boot-deploy to finalize/install files ==
/bin/sh: local: non-portable built-in is not supported in the POSIXly-correct mode
19:31:53.679153 boot-deploy completed in: 0.01s
19:31:53.679167 exit status 127
19:31:53.679175 boot-deploy failed
19:31:53.679644 mkinitfs completed in: 1.09s
ERROR: postmarketos-mkinitfs-2.6.1-r0.trigger: script exited with error 1
After this error, the laptop doesnt reboot
I can reproduce this error after I ssh in and chroot.
How to reproduce your issue?
What device are you using?
lenovo-21bx
On what postmarketOS version did you encounter the issue?
-
edge (
master
branch) -
v24.06
-
v24.12
-
I confirm that the issue still is present after running
sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
- GNOME Shell on Mobile
- Phosh
- Plasma Mobile
-
Sxmo (Wayland/Sway) Please post the output of
sxmo_version.sh
- Other: console
How did you get postmarketOS image?
- from https://images.postmarketos.org
- I built it using pmbootstrap
- It was preinstalled on my device