Ubuntu Pastebin

Paste from csmith at Fri, 28 Apr 2017 18:47:01 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1682160
http://pad.lv/1674766
    
=== Begin SRU Template ===
[Impact]
update-grub-legacy-ec2 fails on system with missing /etc/fstab.

[Test Case]

Mimic missing /etc/fstab config using lxc-proposed-snapshot from 
  https://git.launchpad.net/~smoser/cloud-init/+git/sru-info/tree/bin/lxc-proposed-snapshot

It publishes an image to lxd with proposed enabled and cloud-init upgraded.

$ for release in xenial yakkety zesty; do
$ ref=$release-proposed
$ lxc-proposed-snapshot --proposed --publish $release $ref
$ 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://git.launchpad.net/cloud-init/commit/?id=fd9f36267541

=== End SRU Template ===
Download as text