[arch-commits] Commit in mkinitcpio-systemd-tool/trunk (2 files)
David Runge
dvzrv at archlinux.org
Fri Mar 20 14:07:23 UTC 2020
Date: Friday, March 20, 2020 @ 14:07:22
Author: dvzrv
Revision: 601677
upgpkg: mkinitcpio-systemd-tool 22-2: Adding a warning message for users upgrading from <=22 (as the unit and config locations have changed).
Added:
mkinitcpio-systemd-tool/trunk/mkinitcpio-systemd-tool.install
Modified:
mkinitcpio-systemd-tool/trunk/PKGBUILD
---------------------------------+
PKGBUILD | 3 ++-
mkinitcpio-systemd-tool.install | 7 +++++++
2 files changed, 9 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-20 14:07:17 UTC (rev 601676)
+++ PKGBUILD 2020-03-20 14:07:22 UTC (rev 601677)
@@ -2,7 +2,7 @@
pkgname=mkinitcpio-systemd-tool
pkgver=22
-pkgrel=1
+pkgrel=2
pkgdesc="Provisioning tool for systemd in initramfs (systemd-tool)"
arch=('any')
url="https://github.com/random-archer/mkinitcpio-systemd-tool"
@@ -19,6 +19,7 @@
"etc/${pkgname}/config/fstab"
"etc/${pkgname}/network/initrd-network.network" )
source=("$pkgname-$pkgver.tar.gz::https://github.com/random-archer/${pkgname}/archive/v${pkgver}.tar.gz")
+install="${pkgname}.install"
sha512sums=('1f9f15807bd605e98031787d004c132903b11a218b46d9889edfeaf6beacd85a26421a16a0e87513f121420c5e0f5b676b312931866725eb084691f240a1fd0a')
package() {
Added: mkinitcpio-systemd-tool.install
===================================================================
--- mkinitcpio-systemd-tool.install (rev 0)
+++ mkinitcpio-systemd-tool.install 2020-03-20 14:07:22 UTC (rev 601677)
@@ -0,0 +1,7 @@
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ if [ "$(vercmp "$2" 22)" -le 0 ]; then
+ echo -e "WARNING: Changes were introduced to the systemd units and configuration locations.\nRefer to upstream to create a working initrd and before rebooting."
+ fi
+}
More information about the arch-commits
mailing list