diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-02-04 22:12:52 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-02-04 22:12:52 +0000 |
commit | c9fd12b255d17343ff85fdc9d7e9439eb0c30ecf (patch) | |
tree | eedcec5e786222eaa0a91ff6ac7e0e3703fecb39 /sys-apps/debianutils/files | |
parent | x86 stable, bug #208749 (diff) | |
download | gentoo-2-c9fd12b255d17343ff85fdc9d7e9439eb0c30ecf.tar.gz gentoo-2-c9fd12b255d17343ff85fdc9d7e9439eb0c30ecf.tar.bz2 gentoo-2-c9fd12b255d17343ff85fdc9d7e9439eb0c30ecf.zip |
Send which error output to /dev/null.
(Portage version: 2.1.4.1)
Diffstat (limited to 'sys-apps/debianutils/files')
-rw-r--r-- | sys-apps/debianutils/files/debianutils-2.28.2-mkboot-quiet.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sys-apps/debianutils/files/debianutils-2.28.2-mkboot-quiet.patch b/sys-apps/debianutils/files/debianutils-2.28.2-mkboot-quiet.patch new file mode 100644 index 000000000000..7b1d64002b90 --- /dev/null +++ b/sys-apps/debianutils/files/debianutils-2.28.2-mkboot-quiet.patch @@ -0,0 +1,22 @@ +http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=438443 + +--- mkboot ++++ mkboot +@@ -20,7 +20,7 @@ + if mount | grep -q "^proc " && [ -e /proc/cmdline ]; then + rootpart=$(grep -o "root=[^ ]*" /proc/cmdline | cut -d \= -f 2) + else +- which rdev >/dev/null && rootpart=$(rdev | cut -d ' ' -f 1) ++ which rdev >/dev/null 2>&1 && rootpart=$(rdev | cut -d ' ' -f 1) + fi + # temporary directory + tmpdir=${TMPDIR-/tmp} +@@ -49,7 +49,7 @@ + + # check whether GRUB is installed + grubcheck () { +- if ! which update-grub >/dev/null && ! which grub-install >/dev/null; then return 1; fi ++ if ! which update-grub >/dev/null 2>&1 && ! which grub-install >/dev/null 2>&1 ; then return 1; fi + } + + # check whether Yaboot is installed |