Skip to content
Snippets Groups Projects
Unverified Commit a1ee7890 authored by Clayton Craft's avatar Clayton Craft :speech_balloon: Committed by Newbyte
Browse files

main/postmarketos-mkinitfs: only run if deviceinfo exists (MR 4263)

In some situations, like when building a device package with pmb,
deviceinfo may not exist in the rootfs. mkinitfs 2.2's behavior changed
slightly to fail if it can't find a deviceinfo, and this avoids calling
it in those cases.

[ci:skip-build]: Already built successfully in CI
parent 440e57fa
Branches
No related tags found
No related merge requests found
Pipeline #207408 passed
......@@ -2,7 +2,7 @@
# Co-Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=postmarketos-mkinitfs
pkgver=2.2
pkgrel=0
pkgrel=1
pkgdesc="Tool to generate initramfs images for postmarketOS"
url="https://postmarketos.org"
depends="
......
#!/bin/sh -e
/usr/sbin/mkinitfs
# only invoke mkinitfs if the deviceinfo exists in the rootfs
{ [ -f /etc/deviceinfo ] || [ -f /usr/share/deviceinfo/deviceinfo ]; } && /usr/sbin/mkinitfs
exit 0
  • Administrator @root

    mentioned in merge request !4422 (merged)

    By clayton craft on 2023-09-26T06:28:51

    · Imported

    mentioned in merge request !4422 (merged)

    By clayton craft on 2023-09-26T06:28:51

    Edited by Ghost User
    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment