-# Copyright 2013 Intel Corporation
+# Copyright 2013-2014 Intel Corporation
# Author: Artem Bityutskiy
# License: GPLv2
# EFI System Partition PARTUUID
__esp_ptypeid="C12A7328-F81F-11D2-BA4B-00A0C93EC93B"
-# Mount prefix is assumed to be "/" if it is not defined
-[ -n "${INSTALLERFW_MOUNT_PREFIX:-}" ] || export INSTALLERFW_MOUNT_PREFIX="/"
-
__fatal()
{
IFS= printf "%s\n" "$__PROG: error: $*" 1>&2
# tripple "/" in the resulting path.
installerfw_mnt_prefix()
{
- installerfw_verify_defined "INSTALLERFW_MOUNT_PREFIX"
-
- local path="$INSTALLERFW_MOUNT_PREFIX/$1"
+ local path="${INSTALLERFW_MOUNT_PREFIX:-}/$1"
printf "%s" "$path" | LC_ALL=C sed -e 's/\/\+/\//g'
}
-e '^INSTALLERFW_PART[[:digit:]]\+_UUID=' \
-e '^INSTALLERFW_PART_COUNT=' \
-e '^INSTALLERFW_PTABLE_FORMAT=' \
+-e '^INSTALLERFW_INSTALLER_NAME=' \
"
local variables="$(printenv | eval "LC_ALL=C grep $opts")"