mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 22:46:58 +02:00
build_gpt.sh: accept amd64 as a valid architecture
This change causes build_gpt to treat x86 and amd64 as the same. BUG=chromium-os:21284 TEST=./build_image for amd64-generic shouldn't generate an invalid architecture error Change-Id: I60424515e162a257b9c8d99885cac18f6bb013cd Reviewed-on: http://gerrit.chromium.org/gerrit/9705 Reviewed-by: Vince Laviano <vlaviano@chromium.org> Commit-Ready: Sonny Rao <sonnyrao@chromium.org> Tested-by: Sonny Rao <sonnyrao@chromium.org>
This commit is contained in:
parent
8bfc4b5247
commit
0c80dfb97d
@ -47,7 +47,7 @@ build_gpt() {
|
|||||||
local pmbr_img
|
local pmbr_img
|
||||||
if [ "$ARCH" = "arm" ]; then
|
if [ "$ARCH" = "arm" ]; then
|
||||||
pmbr_img=/dev/zero
|
pmbr_img=/dev/zero
|
||||||
elif [ "$ARCH" = "x86" ]; then
|
elif [ "$ARCH" = "x86" -o "$ARCH" = "amd64" ]; then
|
||||||
pmbr_img=$(readlink -f /usr/share/syslinux/gptmbr.bin)
|
pmbr_img=$(readlink -f /usr/share/syslinux/gptmbr.bin)
|
||||||
else
|
else
|
||||||
error "Unknown architecture: $ARCH"
|
error "Unknown architecture: $ARCH"
|
||||||
|
Loading…
Reference in New Issue
Block a user