postmarketos-mkinitfs upgrade failing
#1
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!
#2
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.
#3
(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?
#4
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.


Possibly Related Threads…
Thread Author Replies Views Last Post
  PostmarketOS v22.06 Plasma Mobile on PinePhone Pro & WiFi Connect to SSID X0X0X0X0X0 3 1,862 11-18-2024, 02:23 AM
Last Post: linmob
  How to include desktop file and icon in a postmarketos package patrickMcDonald 0 913 07-27-2023, 12:34 PM
Last Post: patrickMcDonald
  installed postmarketos v23.06 no audio samlo 1 1,359 07-14-2023, 12:53 AM
Last Post: samlo
  Scanning with PostmarketOS AndyM 1 1,248 07-01-2023, 08:16 AM
Last Post: AndyM
  VPN for PostmarketOS publiclewdness 1 1,947 03-11-2023, 04:35 PM
Last Post: Kevin Kofler
  Pinephone 64 PostMarketOS edition Battery Issues, Not Hardware Issue X0X0X0X0X0 1 1,895 02-11-2023, 08:19 AM
Last Post: acid andy
  PostmarketOS v22.06 Plasma Mobile on PinePhone Pro & No MMS X0X0X0X0X0 1 1,915 11-07-2022, 10:34 PM
Last Post: X0X0X0X0X0
  no screen rotation on pinephone pro with postmarketOS + phosh elode 2 3,343 07-03-2022, 09:13 AM
Last Post: a.h.littorin
  Pinephone Keyboard Utilities on postmarketOS elof 2 3,937 06-20-2022, 01:33 PM
Last Post: elof
  Best Place To Learn PostmarketOS mw4jet 6 8,241 01-30-2022, 11:57 PM
Last Post: arcanemachine

Forum Jump:


Users browsing this thread: 1 Guest(s)