Merge fixes from rcj.

ubuntu/zesty
Mathieu Trudel-Lapierre 8 years ago
commit 6272f60665

@ -78,7 +78,7 @@ install_grub() {
esac esac
cat << EOF >> mountpoint/etc/default/grub.d/50-cloudimg-settings.cfg cat << EOF >> mountpoint/etc/default/grub.d/50-cloudimg-settings.cfg
${CLOUD_IMG_STR} ${IMAGE_STR}
# For Cloud Image compatability # For Cloud Image compatability
GRUB_PRELOAD_MODULES="${grub_modules}" GRUB_PRELOAD_MODULES="${grub_modules}"
EOF EOF
@ -93,7 +93,7 @@ EOF
if [ -f mountpoint/boot/efi/EFI/BOOT/grub.cfg ]; then if [ -f mountpoint/boot/efi/EFI/BOOT/grub.cfg ]; then
sed -i "s| root| root hd0,gpt1|" mountpoint/boot/efi/EFI/BOOT/grub.cfg sed -i "s| root| root hd0,gpt1|" mountpoint/boot/efi/EFI/BOOT/grub.cfg
sed -i "1i${CLOUD_IMG_STR}" mountpoint/boot/efi/EFI/BOOT/grub.cfg sed -i "1i${IMAGE_STR}" mountpoint/boot/efi/EFI/BOOT/grub.cfg
# For some reason the grub disk is looking for /boot/grub/grub.cfg on # For some reason the grub disk is looking for /boot/grub/grub.cfg on
# part 15.... # part 15....
chroot mountpoint mkdir -p /boot/efi/boot/grub chroot mountpoint mkdir -p /boot/efi/boot/grub

@ -36,7 +36,7 @@ install_grub() {
# set the kernel commandline to use hvc0 # set the kernel commandline to use hvc0
mkdir -p mountpoint/etc/default/grub.d mkdir -p mountpoint/etc/default/grub.d
cat << EOF > mountpoint/etc/default/grub.d/50-cloudimg-settings.cfg cat << EOF > mountpoint/etc/default/grub.d/50-cloudimg-settings.cfg
${CLOUD_IMG_STR} ${IMAGE_STR}
# Set the recordfail timeout # Set the recordfail timeout
GRUB_RECORDFAIL_TIMEOUT=0 GRUB_RECORDFAIL_TIMEOUT=0

Loading…
Cancel
Save