diff options
-rwxr-xr-x | scripts/image_signing/make_dev_ssd.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/image_signing/make_dev_ssd.sh b/scripts/image_signing/make_dev_ssd.sh index 992d89c9..d9df52a5 100755 --- a/scripts/image_signing/make_dev_ssd.sh +++ b/scripts/image_signing/make_dev_ssd.sh @@ -106,8 +106,9 @@ remove_legacy_boot_rootfs_verification() { debug_msg "Removing rootfs verification for legacy boot configuration." mount_image_partition "$image" 12 "$mount_point" || return $FLAGS_FALSE config_file="$mount_point/efi/boot/grub.cfg" - [ ! -f "$config_file" ] || - sudo sed -i 's/^ *set default=2 *$/set default=0/g' "$config_file" + [ ! -f "${config_file}" ] || + sudo sed -i -e 's/^ *defaultA=2 *$/defaultA=0/g' \ + -e 's/^ *defaultB=3 *$/defaultB=1/g' "${config_file}" config_file="$mount_point/syslinux/default.cfg" [ ! -f "$config_file" ] || sudo sed -i 's/-vusb/-usb/g; s/-vhd/-hd/g' "$config_file" |