$ release=xenial $ ref=$release-proposed $ ./lxc-proposed-snapshot --proposed --publish $release $ref Creating xenial-proposed-99518881 $ lxc init $ref $name Creating proposed-test ... $ lxc start $name $ sleep 10 $ lxc exec $name apt install grub-legacy-ec2 $ lxc exec $name mv /etc/fstab /etc/fstab.orig $ lxc exec $name dpkg-reconfigure grub-legacy-ec2 Searching for GRUB installation directory ... found: /boot/grub Cannot determine root device. Assuming /dev/hda1 This error is probably caused by an invalid /etc/fstab Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Updating /boot/grub/menu.lst ... done
$ lxc exec $name dpkg-reconfigure grub-legacy-ec2 Searching for GRUB installation directory ... found: /boot/grub Cannot determine root device. Assuming /dev/hda1 This error is probably caused by an invalid /etc/fstab Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Updating /boot/grub/menu.lst ... done $ lxc exec $name dpkg-reconfigure grub-legacy-ec2 2>&1 | grep fatal $ echo $? 0 $ lxc exec $name -- dpkg -l grub-legacy-ec2 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-====================================-=======================-=======================-============================================================================= ii grub-legacy-ec2 0.7.9-113-g513e99e0-0ub all Handles update-grub for ec2 instances ** Tags added: verification-done-xenial -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1682160 Title: update-grub-legacy-ec2 fails if no /etc/fstab causing install or upgrade fail To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1682160/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs