andsens/ec2debian-build-ami — Issue #2: Required update initrd after grub is configured
Author: mpastor
Created: 2012-02-23 17:07:00+00:00
State: open

Required update initrd after grub is configured otherwise instance will not boot:

diff --git a/tasks/grub b/tasks/grub
index 452ce66..9df14c4 100755
--- a/tasks/grub
+++ b/tasks/grub
@@ -10,3 +10,5 @@ root (hd0)
kernel /boot/vmlinuz-2.6.32-5-xen-amd64 root=/dev/xvda1 ro
initrd /boot/initrd.img-2.6.32-5-xen-amd64
EOF
+
+update-initramfs -u -k 2.6.32-5-xen-amd64