From afe452a29514ae32503630095341172403256bd6 Mon Sep 17 00:00:00 2001 From: Fathi Boudra Date: Fri, 13 Dec 2013 11:03:04 +0200 Subject: Refactor the code to detect rootfs distribution Change-Id: Ib158ae468f3010cb49eef3b1453d20c5115bbca4 Signed-off-by: Fathi Boudra --- linaro-hwpack-install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'linaro-hwpack-install') diff --git a/linaro-hwpack-install b/linaro-hwpack-install index 4a37d3f..f64e33b 100755 --- a/linaro-hwpack-install +++ b/linaro-hwpack-install @@ -1,8 +1,7 @@ #!/bin/sh # linaro-hwpack-install - Install a Linaro Hardware Pack. -# This script is meant to run inside a chroot containing nothing other than -# ubuntu-minimal, so it must not depend on anything that's not in -# there. +# This script is meant to run inside a chroot. It must not depend on anything +# that's not in there. # TODO: When upgrading to a newer hwpack, make sure packages and apt sources # that are no longer needed are removed. @@ -44,6 +43,7 @@ APT_GET_OPTIONS="Dir::Etc::SourceList=${SOURCES_LIST_FILE}" SUPPORTED_FORMATS="1.0 2.0 3.0" # A space-separated list of hwpack formats. FLASH_KERNEL_SKIP="true" export FLASH_KERNEL_SKIP # skip attempting to run flash-kernel-hooks +DISTRIBUTION=`grep '^ID=' /etc/os-release | sed 's/ID=//'` sudo="sudo" if [ $(id -u) -eq 0 ]; then -- cgit v1.2.3