From 59752f1667c56f7d26243797433507bfe795ff89 Mon Sep 17 00:00:00 2001 From: Will Drewry Date: Thu, 4 Nov 2010 21:58:02 -0500 Subject: [PATCH] create_legacy_bootloader_templates.sh: ensure grub escapes quotes Evidently no one has tested the grub.cfg since verified boot landed. Grub eats double quotes which breaks verified boot. This changes adds the escapes. No other code changes should be needed in build and install code since they replace DMTABLEA and DMTABLEB and not the quotes. TEST=nsanders escaped the quotes in his build :); I am doing a new build to ensure the output is escaped now. BUG=chrome-os-partner:1603 Change-Id: I55e823347c91493caf3b5b2e4577a4e4616df7f0 Review URL: http://codereview.chromium.org/4529002 --- create_legacy_bootloader_templates.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create_legacy_bootloader_templates.sh b/create_legacy_bootloader_templates.sh index 955da4826d..8bfa761617 100755 --- a/create_legacy_bootloader_templates.sh +++ b/create_legacy_bootloader_templates.sh @@ -191,11 +191,11 @@ menuentry "local image B" { } menuentry "verified image A" { - linux \$grubpartA/boot/vmlinuz ${common_args} ${verity_common} i915.modeset=1 cros_efi root=/dev/dm-0 dm="DMTABLEA" + linux \$grubpartA/boot/vmlinuz ${common_args} ${verity_common} i915.modeset=1 cros_efi root=/dev/dm-0 dm=\\"DMTABLEA\\" } menuentry "verified image B" { - linux \$grubpartB/boot/vmlinuz ${common_args} ${verity_common} i915.modeset=1 cros_efi root=/dev/dm-0 dm="DMTABLEB" + linux \$grubpartB/boot/vmlinuz ${common_args} ${verity_common} i915.modeset=1 cros_efi root=/dev/dm-0 dm=\\"DMTABLEB\\" } # FIXME: usb doesn't support verified boot for now