← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1682160] Re: update-grub-legacy-ec2 fails if no /etc/fstab causing install or upgrade fail

 

** Also affects: cloud-init (Ubuntu Artful)
   Importance: Medium
       Status: Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1682160

Title:
  update-grub-legacy-ec2 fails if no /etc/fstab causing install or
  upgrade fail

Status in cloud-init package in Ubuntu:
  Fix Released
Status in cloud-init source package in Xenial:
  Confirmed
Status in cloud-init source package in Yakkety:
  Confirmed
Status in cloud-init source package in Zesty:
  Fix Committed
Status in cloud-init source package in Artful:
  Fix Released

Bug description:
  === Begin SRU Template ===
  [Impact]
  update-grub-legacy-ec2 fails on system with missing /etc/fstab with error message:
  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-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.

  $ name=proposed-test
  $ 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 ===

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1682160/+subscriptions