From 304cf3c9c2492c99413772e16686623de416dcce Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 6 May 2010 02:36:18 +0200 Subject: [PATCH] initramfs-tools: update to 0.98.1. Simply check if /usr/sbin/grub-mkconfig exists and run it if -B not set. --- srcpkgs/initramfs-tools/files/update-initramfs | 5 ++--- srcpkgs/initramfs-tools/template | 8 +++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/srcpkgs/initramfs-tools/files/update-initramfs b/srcpkgs/initramfs-tools/files/update-initramfs index b167344a7d..8b3d7909e4 100755 --- a/srcpkgs/initramfs-tools/files/update-initramfs +++ b/srcpkgs/initramfs-tools/files/update-initramfs @@ -180,9 +180,8 @@ run_bootloader() echo "update-initramfs: please run 'grub-install ${dev}'." fi - if [ -x "$(which grub-mkconfig 2>/dev/null)" ]; then - echo "Updating GRUB2 configuration file..." - grub-mkconfig -o /boot/grub/grub.cfg + if [ -x /usr/sbin/grub-mkconfig ]; then + /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg fi } diff --git a/srcpkgs/initramfs-tools/template b/srcpkgs/initramfs-tools/template index 11e1c1fc96..0ede9d1f60 100644 --- a/srcpkgs/initramfs-tools/template +++ b/srcpkgs/initramfs-tools/template @@ -1,6 +1,6 @@ # Template file for 'initramfs-tools' pkgname=initramfs-tools -version=0.98 +version=0.98.1 build_style=custom-install short_desc="Tools for generating an initramfs" maintainer="Juan RP " @@ -17,8 +17,10 @@ noextract=yes noarch=yes keep_empty_dirs=yes triggers="initramfs-tools" -conf_files="/etc/$pkgname/initramfs.conf /etc/$pkgname/update-initramfs.conf - /etc/$pkgname/modules" +conf_files=" +/etc/$pkgname/initramfs.conf +/etc/$pkgname/update-initramfs.conf +/etc/$pkgname/modules" Add_dependency full glibc Add_dependency full cpio