postmarketos-mkinitfs: don't fail without deviceinfo [skip ci] (#1269)
When building device packages, the postmarketos-mkinitfs package gets installed as dependency of postmarketos-base. It must not try to create an initramfs at this point, when there is not deviceinfo file. We build the initramfs during the installation, so it's fine. Added [skip ci] because linux kernels and KDE updates are currently getting built for the binary repository (so Travis couldn't finish anyway).
This commit is contained in:
parent
6cd310a2e2
commit
76ed56905a
2 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
pkgname=postmarketos-mkinitfs
|
||||
pkgver=0.5.10
|
||||
pkgver=0.5.11
|
||||
pkgrel=0
|
||||
pkgdesc="Tool to generate initramfs images for postmarketOS"
|
||||
url="https://github.com/postmarketOS"
|
||||
|
@ -24,4 +24,4 @@ package() {
|
|||
}
|
||||
sha512sums="500c1e903ca9cf5dfe0102414b086643379d51d848e15eeed89da8ba9f3a286dfba139a29b8312a0df005e159a54ad08c84e078b7d70e6873cabb7d0abda4807 init.sh.in
|
||||
eca1e4647494556be52b3eecffe2db75735006a6c53e8778630949808aabc464281ffa75a8744e22a5512c2de1eb5f92f9eb377a55ca4a7402ba8cc0705df83d init_functions.sh
|
||||
0a4a157f6d314f4c9e6e6feb7144c5bf83af48762fa3649007a84cb25736b03248f9dcf928c1653aee72df9e3f87a26d084226b4a754804867f387bdf6768e48 mkinitfs.sh"
|
||||
c9b6dd04413509185f74b3d97bc01c97f8b9392e2f0dbccbd9c968efb7d375236b30337bd1637c467816c44d1c40feb354fe7206ac99faed0e1b207a30758cd0 mkinitfs.sh"
|
||||
|
|
|
@ -3,8 +3,10 @@
|
|||
source_deviceinfo()
|
||||
{
|
||||
if [ ! -e "/etc/deviceinfo" ]; then
|
||||
echo "ERROR: Missing /etc/deviceinfo!"
|
||||
exit 1
|
||||
echo "NOTE: deviceinfo (from device package) not installed yet," \
|
||||
"not building the initramfs now (it should get built later" \
|
||||
"automatically.)"
|
||||
exit 0
|
||||
fi
|
||||
. /etc/deviceinfo
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue