summaryrefslogtreecommitdiff
path: root/setup-gummiboot-conf
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2013-10-11 17:06:22 +0300
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2013-10-11 17:16:45 +0300
commitad939e1882a91ebe4ed479ba9abb5f6eb4bcac25 (patch)
tree22c785f5f56701bc53210deb0118182bb8343387 /setup-gummiboot-conf
parent0b616d8802d372c97b774bfbf4ea269d107434f4 (diff)
downloadsetup-efi-ivi-ad939e1882a91ebe4ed479ba9abb5f6eb4bcac25.tar.gz
setup-efi-ivi-ad939e1882a91ebe4ed479ba9abb5f6eb4bcac25.tar.bz2
setup-efi-ivi-ad939e1882a91ebe4ed479ba9abb5f6eb4bcac25.zip
Fix the default entry name
The default entry on loader.conf should _not_ contain the ".conf" suffix, so let's remove it. Amend the 'setup-gummiboot-conf' file accordingly. Change-Id: I25717a17e65e1c7c854a32651c344987f23a76dd Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'setup-gummiboot-conf')
-rwxr-xr-xsetup-gummiboot-conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-gummiboot-conf b/setup-gummiboot-conf
index 20b414f..8767f2f 100755
--- a/setup-gummiboot-conf
+++ b/setup-gummiboot-conf
@@ -62,7 +62,7 @@ entries="$(ls -1 "$entries_dir" | sed -e 's/\.conf$//g' | sort -r)"
fatal "no gummiboot entries found in \"$entries_dir\""
# Get the default entry name
-default_entry="$(cat "$conf_file" | sed -n -e 's/[ \t]*default[ \t]\+\(.\+\)[ \t]*/\1/p')"
+default_entry="$(cat "$conf_file" | sed -n -e 's/[ \t]*default[ \t]\+\(.\+\)[ \t]*/\1.conf/p')"
[ -n "$default_entry" ] || \
fatal "cannot find the default entry in \"$conf_file\""
[ "$(printf "%s\n" "$default_entry" | wc -l)" -eq "1" ] || \