diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-06-26 14:30:22 +0300 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-06-26 14:30:22 +0300 |
commit | 2bd6189575c2687287fdf584061f7d7ab35d5f41 (patch) | |
tree | 0d3269c6cb51925aa4c118b9f2bd193bc205089c | |
parent | adb3e86d99cdcc8918c15f76154c718998ecca1a (diff) | |
download | setup-efi-ivi-2bd6189575c2687287fdf584061f7d7ab35d5f41.tar.gz setup-efi-ivi-2bd6189575c2687287fdf584061f7d7ab35d5f41.tar.bz2 setup-efi-ivi-2bd6189575c2687287fdf584061f7d7ab35d5f41.zip |
setup-gummiboot-conf: use INSTALLERFW_MOUNT_PREFIX
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
-rwxr-xr-x | setup-gummiboot-conf | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/setup-gummiboot-conf b/setup-gummiboot-conf index 93b3443..fb21f8b 100755 --- a/setup-gummiboot-conf +++ b/setup-gummiboot-conf @@ -19,8 +19,12 @@ # 4. The 'default' entry name does not have wildcards ("*") # 5. Kernels binaries are placed in the root of ESP # -# May be there are few more implicit assumption. This all can be improved and -# made to be more flexible if needed. +# May be there are few more implicit assumption. +# +#This script requires a number of environment variables to be defined. Namely: +# +# 1. INSTALLERFW_MOUNT_PREFIX - where the target partitions are mounted (the +# "root" directory of the file-system we install gummiboot to) PROG="setup-gummiboot-conf" @@ -31,10 +35,16 @@ fatal() exit 1 } -# Right now we assume that ESP is always in "/boot", but later we can add a -# command line option for this. -esp="/home/dedekind/tmp/boot" +# Make sure the installer framework variables are defined +[ "${INSTALLERFW_MOUNT_PREFIX:+x}" == "x" ] || + fatal "installer framework environment variables not found" + +# Get the ESP location +esp="$INSTALLERFW_MOUNT_PREFIX/boot" + +# The gummiboot configuration file conf_file="$esp/loader/loader.conf" +# The gummiboot kernel entries directory entries_dir="$esp/loader/entries" # Make sure the gummiboot configuration file exists |