Pinephone error system-generators/ostree-system-generator failed with exit status 127
#1
Pinephone is not booting up after system update
now during startup it shows error message:


usr/lib/systemd/system-generators/ostree-system-generator failed with exit status 127.

how to fix this error ?


https://www.facebook.com/permalink.php?s...23&__cft__[0]=AZWA9de5YTbxkmA1BTMgSunFzmlm-QsoT6fcmizoT75EYkOEWsaB1uRI5gZdzS8myne9baTCdf99eUtqu0sHy1DQuOACt2bLHMe1RZTfxOeKtw&__tn__=%2CO%2CP-R
  Reply
#2
Well, first you need to get the thing to boot at all, i.e., boot from a microSD card with a known working operating system image. (dd the image to an empty microSD card or one whose contents you can and will wipe through the dd, shut down the PinePhone, remove the battery, insert the microSD card, reinsert the battery, boot the PinePhone.)

Then in that image, open a terminal emulator (or alternatively, use the JumpDrive image, connect the PinePhone to your computer, and open a terminal emulator on that computer), and run:
1. sudo -i (to get root on the system you just booted or on the computer)
2. mkdir /mnt/pinephone-emmc (to create the mount point for the next command)
3. a suitable mount command to mount the eMMC contents to /mnt/pinephone-emmc (a command of the form mount /dev/… /mnt/pinephone-emmc, where you have to figure out the proper device name)
4. mkdir -p /mnt/pinephone-emmc/etc/systemd/system-generators (to create the directory for the next command on the mounted partition)
5. ln -sf /dev/null /mnt/pinephone-emmc/etc/systemd/system-generators/ostree-system-generator (to mask the offending generator on the mounted partition – the ostree-system-generator is entirely useless on Arch Linux, so it is safe to just mask it)
6. umount /mnt/pinephone-emmc (to cleanly unmount the partition now that you are done)

Then shut down the PinePhone, remove the battery, remove the microSD card, reinsert the battery, and it should boot from eMMC again.
  Reply
#3
Thank you for answer -I will check it.

In that case if ostree generator is not important
can I simply delete the file insead of masking it ?
  Reply
#4
If you delete the file, it will be restored on the next update of the package that ships it (probably systemd), so if the underlying bug is not fixed by then, it will reoccur.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  LibreOffice usable with Arch Linux on the Pinephone? Peter Gamma 2 682 07-28-2024, 05:12 AM
Last Post: Peter Gamma
  Pinephone with KDE Plasma stuck at K logo after update Daniello 0 318 06-20-2024, 01:52 AM
Last Post: Daniello
  error loading libsodium.so.26 for flatpak _radv_ 4 1,670 02-02-2024, 04:26 PM
Last Post: _radv_
  PinePhone AND/OR PinePhone Pro Arch Complete Install and Setup mikehenson 2 3,774 01-14-2024, 08:43 AM
Last Post: shifras
  How to upgrade Phosh on Pinephone? ibid 1 1,653 08-18-2022, 09:02 PM
Last Post: mikehenson
  error updating arch pohosh shulamy 3 2,951 08-03-2022, 02:30 AM
Last Post: shulamy
  Delta Chat on Pinephone Emulti 1 1,888 07-31-2022, 07:32 AM
Last Post: magdesign
  Customized Sway on Pinephone ragreenburg 2 2,671 05-22-2022, 12:20 PM
Last Post: ragreenburg
  Best Messaging client for pinephone? (arch-phosh) pineuser0 20 19,546 03-23-2022, 07:13 AM
Last Post: saba
  Arch image for Pinephone - where to get it? MikeMan 7 5,546 02-01-2022, 12:35 AM
Last Post: MikeMan

Forum Jump:


Users browsing this thread: 1 Guest(s)