update-initramfs: Silence lsb_release output
authorOzan Çağlayan <ozancag@gmail.com>
Sat, 22 Dec 2012 11:04:12 +0000 (13:04 +0200)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Fri, 28 Dec 2012 15:35:33 +0000 (07:35 -0800)
Silence lsb_release output to avoid command not found errors
on distributions not having lsb_release like Fedora.

Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
scripts/update-initramfs

index fdfb8fc27f0a0b8a0c02388608e583d340470168..82127836df9b3422cc3846fe3e797a11f2375920 100755 (executable)
@@ -6,7 +6,7 @@
 # of their distribution. This can also help people who may
 # want to wireless-boot their systems.
 
-LSB_RED_ID=$(/usr/bin/lsb_release -i -s)
+LSB_RED_ID=$(/usr/bin/lsb_release -i -s &> /dev/null)
 
 KLIB=/lib/modules/$(uname -r)/build
 ver=$(echo $KLIB | awk -F "/lib/modules/" '{print $2}' | awk -F"/" '{print $1}')