[arch-commits] Commit in mkinitcpio/trunk (PKGBUILD mkinitcpio.install)

Dave Reisner dreisner at archlinux.org
Mon May 21 17:23:59 UTC 2012


    Date: Monday, May 21, 2012 @ 13:23:59
  Author: dreisner
Revision: 159336

upgpkg: mkinitcpio 0.9.0-2

- add phony udev dep to ensure proper ordering on upgrade
- add install scriptlet to warn about new usr hook

Added:
  mkinitcpio/trunk/mkinitcpio.install
Modified:
  mkinitcpio/trunk/PKGBUILD

--------------------+
 PKGBUILD           |    5 +++--
 mkinitcpio.install |    8 ++++++++
 2 files changed, 11 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-05-21 16:28:07 UTC (rev 159335)
+++ PKGBUILD	2012-05-21 17:23:59 UTC (rev 159336)
@@ -4,19 +4,20 @@
 
 pkgname=mkinitcpio
 pkgver=0.9.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Modular initramfs image creation utility"
 arch=('any')
 url="http://www.archlinux.org/"
 license=('GPL')
 depends=('mkinitcpio-busybox>=1.19.4-2' 'kmod>=3' 'util-linux>=2.21' 'libarchive' 'coreutils'
-         'bash' 'findutils' 'sed' 'grep' 'filesystem>=2011.10-1' 'file' 'gzip')
+         'bash' 'findutils' 'sed' 'grep' 'filesystem>=2011.10-1' 'file' 'gzip' 'udev>=182-3')
 optdepends=('xz: Use lzma or xz compression for the initramfs image'
             'bzip2: Use bzip2 compression for the initramfs image'
             'lzop: Use lzo compression for the initramfs image'
             'mkinitcpio-nfs-utils: Support for root filesystem on NFS')
 backup=('etc/mkinitcpio.conf')
 source=("ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz")
+install=mkinitcpio.install
 md5sums=('cbe4783c39e48dff91385f443d300103')
 sha256sums=('e4a58ccb3b5293931fbc28de6b48df7e9e6fe63b41ef7b5038ea33a2e01dc878')
 

Added: mkinitcpio.install
===================================================================
--- mkinitcpio.install	                        (rev 0)
+++ mkinitcpio.install	2012-05-21 17:23:59 UTC (rev 159336)
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+post_upgrade() {
+  if [ "$(vercmp 0.9.0 "$2")" -eq 1 ]; then
+    printf '==> If your /usr is on a separate partition, you must add the "usr" hook\n'
+    printf '    to /etc/mkinitcpio.conf and regenerate your images before rebooting\n'
+  fi
+}




More information about the arch-commits mailing list