From 3494498738ced4877a89d8b0a4a271571deee9b2 Mon Sep 17 00:00:00 2001 From: Sonny Rao Date: Wed, 5 Oct 2011 20:22:53 -0700 Subject: [PATCH] Add amd64 recognition create_legacy_bootloader_templates.sh This causes the script to treat amd64 the same as x86. BUG=chromium-os:21284 TEST=./build_image for amd64-generic shouldn't generate an invalid architecture error Change-Id: I37284def3cb2f0b16ece20a74d65bdb8e0116cff Reviewed-on: http://gerrit.chromium.org/gerrit/9962 Reviewed-by: Vince Laviano Commit-Ready: Sonny Rao Tested-by: Sonny Rao --- build_library/create_legacy_bootloader_templates.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_library/create_legacy_bootloader_templates.sh b/build_library/create_legacy_bootloader_templates.sh index 884f8e9647..3b8ff39694 100755 --- a/build_library/create_legacy_bootloader_templates.sh +++ b/build_library/create_legacy_bootloader_templates.sh @@ -55,7 +55,7 @@ verity_common="${verity_common} dm_verity.dev_wait=${dev_wait}" # Populate the x86 rootfs to support legacy and EFI bios config templates. # The templates are used by the installer to populate partition 12 with # the correct bootloader configuration. -if [[ "${FLAGS_arch}" == "x86" ]]; then +if [ "${FLAGS_arch}" = "x86" -o "${FLAGS_arch}" = "amd64" ]; then # TODO: For some reason the /dev/disk/by-uuid is not being generated by udev # in the initramfs. When we figure that out, switch to root=UUID=${UUID}. sudo mkdir -p ${FLAGS_to}