update-grub-legacy-ec2 fails if no /etc/fstab causing install or upgrade fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned | ||
Yakkety |
Fix Released
|
Medium
|
Unassigned | ||
Zesty |
Fix Released
|
Medium
|
Unassigned | ||
Artful |
Fix Released
|
Medium
|
Unassigned |
Bug Description
=== Begin SRU Template ===
[Impact]
update-
Cannot determine root device. Assuming /dev/hda1
This error is probably caused by an invalid /etc/fstab
awk: fatal: cannot open file `/etc/fstab' for reading (No such file or directory)
[Test Case]
Mimic missing /etc/fstab config using lxc-proposed-
https:/
It publishes an image to lxd with proposed enabled and cloud-init upgraded.
$ name=proposed-test
$ for release in xenial yakkety zesty; do
$ ref=$release-
$ lxc-proposed-
$ lxc init $ref $name
$ 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
# Ensure error message does not exist "This error is probably caused by an invalid /etc/fstab"
[Regression Potential]
Low. oneliner in a script
[Other Info]
Upstream commit:
https:/
=== End SRU Template ===
Changed in cloud-init (Ubuntu): | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
description: | updated |
This is fix-committed in ubuntu/devel branch at /git.launchpad. net/cloud- init/commit/ ?id=fd9f3626754 1 /git.launchpad. net/cloud- init/commit/ ?id=e4169135e8f a6b /git.launchpad. net/cloud- init/commit/ ?id=3d6dbbbfe2f 4
ubuntu/devel: https:/
ubuntu/xenial: https:/
ubuntu/yakkety: https:/