PINE64
postmarketos-mkinitfs upgrade failing - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: PostmarketOS on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=124)
+---- Thread: postmarketos-mkinitfs upgrade failing (/showthread.php?tid=10252)



postmarketos-mkinitfs upgrade failing - HL34n - 06-14-2020

Hello,

Today, a new version of postmarketos-mkinitfs tried to install when I ran apk upgrade.
However, the trigger script errored out, so it couldn't install the upgrade. I ran apk fix to try and redo the installation, but it failed again.
Code:
pinephone:~$ sudo apk fix
(1/1) Reinstalling postmarketos-mkinitfs (0.12.1-r1)
Executing busybox-1.31.1-r20.trigger
Executing postmarketos-mkinitfs-0.12.1-r1.trigger
==> initramfs: creating /boot/initramfs-postmarketos-allwinner
Scanning kernel module dependencies...
NOTE: ** modprobe warnings below can be ignored ** if your device does not run the
mainline kernel yet (most devices!) or if the related kernel options are enabled
with 'y' instead of 'm' (module).
- deviceinfo: sun6i_mipi_dsi sun4i_drm pwm_sun4i sun8i_mixer
- 00-default.modules: dm_crypt ext4 usb_f_rndis
==> kernel: device-tree blob operations
==> kernel: copying dtb allwinner/sun50i-a64-pinephone-1.1 to boot partition
==> initramfs: creating uInitrd
Image Name:   uInitrd
Created:      Sun Jun 14 23:09:53 2020
Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
Data Size:    1427565 Bytes = 1394.11 KiB = 1.36 MiB
Load Address: 00000000
Entry Point:  00000000
==> kernel: creating uImage
mkimage: Can't open /boot/vmlinuz-postmarketos-allwinner: No such file or directory
ERROR: postmarketos-mkinitfs-0.12.1-r1.trigger: script exited with error 1
Executing postmarketos-base-3-r34.trigger
Configuring a getty on port ttyS0 with baud rate 115200
OK: 1420 MiB in 583 packages
pinephone:~$ ls /boot/
initramfs-postmarketos-allwinner  uImage-postmarketos-allwinner
sun50i-a64-pinephone-1.1.dtb      uInitrd-postmarketos-allwinner

Running apk fix, it gets picked up as improperly installed again.
The file it is looking for does not exist, there is an ls output at the bottom.
Any ideas? It'd be much appreciated.

Thanks in advance!


RE: postmarketos-mkinitfs upgrade failing - PureTryOut - 06-16-2020

Please make sure the kernel package is installed. "/boot/vmlinuz-postmarketos-allwinner" is provided by linux-postmarketos-allwinner so "apk add linux-postmarketos-allwinner" should do the trick. I wonder why it got uninstalled for you, that will break booting.


RE: postmarketos-mkinitfs upgrade failing - HL34n - 06-16-2020

(06-16-2020, 12:25 AM)PureTryOut Wrote: Please make sure the kernel package is installed. "/boot/vmlinuz-postmarketos-allwinner" is provided by linux-postmarketos-allwinner so "apk add linux-postmarketos-allwinner" should do the trick. I wonder why it got uninstalled for you, that will break booting.
Looks like this was indeed the package with issues, however it was already installed. Solution was:
Code:
sudo apk fix linux-postmarketos-allwinner
...to reinstall it. Then I ran:
Code:
sudo apk fix
...and the original trigger executed properly.
Thanks for the help.
Just a quick aside - if these are kernel updates, does that mean there's no difference (from a hardware support perspective) between flashing a new image and simply running "apk upgrade" on an existing install?


RE: postmarketos-mkinitfs upgrade failing - PureTryOut - 06-18-2020

Yes there is no different between "apk upgrade -a" and a new install. We never told anyone to reflash when a new image goes live so I wonder where people got the idea from that it would be required. It's just a regular Linux distribution after all.