[PATCH 2/3] update-initramfs: Silence lsb_release output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 scripts/update-initramfs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/update-initramfs b/scripts/update-initramfs
index dcc1ee6..f926eeb 100755
--- a/scripts/update-initramfs
+++ b/scripts/update-initramfs
@@ -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}')
-- 
1.8.0.2

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux