From 66b26a20d2ae8c6f47edf6de27e4af1fd896e544 Mon Sep 17 00:00:00 2001 From: langfingaz Date: Mon, 3 May 2021 13:34:00 +0200 Subject: [PATCH] mkinitcpio: improve .install --- pkg/de-p1st-mkinitcpio/.install | 5 ++++- pkg/de-p1st-mkinitcpio/PKGBUILD | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/de-p1st-mkinitcpio/.install b/pkg/de-p1st-mkinitcpio/.install index d8f272c..4e8faec 100644 --- a/pkg/de-p1st-mkinitcpio/.install +++ b/pkg/de-p1st-mkinitcpio/.install @@ -8,7 +8,10 @@ pre_install() { ## arg 1: the new package version post_install() { holo apply - mkinitcpio -P + if ! mkinitcpio -P; then + echo "The previous error can be ignored on initial system installation. One should however execute 'mkinitcpio -P' after the kernel was installed."; + return 1; + fi } ## arg 1: the new package version diff --git a/pkg/de-p1st-mkinitcpio/PKGBUILD b/pkg/de-p1st-mkinitcpio/PKGBUILD index 59d7922..69ae8d3 100644 --- a/pkg/de-p1st-mkinitcpio/PKGBUILD +++ b/pkg/de-p1st-mkinitcpio/PKGBUILD @@ -2,7 +2,7 @@ _pkgname=mkinitcpio _reponame=arch pkgname="de-p1st-$_pkgname" -pkgver=0.0.2 +pkgver=0.0.3 pkgrel=1 pkgdesc="mkinitcpio configuration" arch=('any')