`pmbootstrap install` fails for device `amazon-biscuit`
Describe your issue
What's the expected behaviour?
pmbootstrap install
works with amazon-biscuit
What's the current behaviour?
pmbootstrap install
fails with message:
ERROR: Command failed (exit code 1): (rootfs_amazon-biscuit) % apk --no-progress add -u --virtual .pmbootstrap /mnt/pmbootstrap/packages/armv7/postmarketos-initramfs-3.1.0-r2.apk --no-interactive
the log reports:
ERROR: 'deviceinfo_bootimg_mtk_mkimage' is set, but the package 'mtk-mkimage' was not
installed!
19:41:01.038742 boot-deploy completed in: 0.38s
19:41:01.038874 exit status 1
19:41:01.039361 boot-deploy failed
19:41:01.041177 mkinitfs completed in: 1.82s
ERROR: postmarketos-mkinitfs-2.5.0-r0.trigger: script exited with error 1
Executing postmarketos-base-32-r5.trigger
Executing fontconfig-2.15.0-r1.trigger
Executing dbus-1.14.10-r1.trigger
Executing mkfontscale-1.2.2-r6.trigger
Executing glib-2.80.3-r0.trigger
Executing ca-certificates-20240226-r0.trigger
OK: 268 MiB in 311 packages
(042475) [21:41:02] (rootfs_amazon-biscuit) % apk --no-progress add -u --virtual .pmbootstrap /mnt/pmbootstrap/packages/armv7/postmarketos-initramfs-3.1.0-r2.apk --no-interactive
(1/1) Installing .pmbootstrap (20240619.194104)
1 error; 268 MiB in 312 packages
How to reproduce your issue?
pmbootstrap init
for device amazon-biscuit
with default settings
pmbootstrap install
What device are you using?
amazon-biscuit
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v24.06
-
v23.12
(supported until 2024-07-16) -
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
What's the build date of the image? (in yyyy-mm-dd format)
Additional information
I've been able to fix the issue by running:
pmbootstrap chroot apk fix --rootfs
(fails)
pmbootstrap chroot apk add mtk-mkimage --rootfs
(fails)
pmbootstrap chroot apk fix --rootfs
(succeeds)
After that, pmbootstrap install
works as expected.