[Bug 1604011] Re: mount-image-callback getopt short_options misconfigured

Launchpad Bug Tracker 1604011 at bugs.launchpad.net
Thu Sep 1 19:44:21 UTC 2016


** Branch linked: lp:~smoser/ubuntu/yakkety/cloud-utils/pkg

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1604011

Title:
  mount-image-callback getopt short_options misconfigured

Status in cloud-utils:
  Fix Committed
Status in cloud-utils package in Ubuntu:
  Fix Released

Bug description:
  1. % lsb_release -rd 
  Description:    Ubuntu 16.04 LTS
  Release:        16.04

  2. $ apt-cache policy cloud-image-utils
  cloud-image-utils:
    Installed: 0.27-0ubuntu24
    Candidate: 0.27-0ubuntu24
    Version table:
   *** 0.27-0ubuntu24 500
          500 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el Packages
          100 /var/lib/dpkg/status

  3. mount-image-callback should chroot into the second partition of the
  image with this command:

  mount-image-callback -P2 install_disk.img chroot _MOUNTPOINT_
  /bin/bash

  4. mount-image-callback fails to chroot into the second partition:

  
  mount-image-callback: invalid option -- '2'

  
  It looks like the short_opts passed to get_opt are incomplete:  One options (overlay) is missing, and two options (mount) and (partition) are missing indicators that they accept inputs (: after the short option name).

  One can workaround this by using --partition=X but the short options
  should work.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: cloud-image-utils 0.27-0ubuntu24
  ProcVersionSignature: User Name 4.4.0-24.43-generic 4.4.10
  Uname: Linux 4.4.0-24-generic ppc64le
  NonfreeKernelModules: zfs zunicode zcommon znvpair zavl
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: ppc64el
  Date: Mon Jul 18 13:46:19 2016
  PackageArchitecture: all
  ProcEnviron:
   TERM=screen
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcLoadAvg: 0.03 0.10 0.15 1/2778 3225
  ProcSwaps:
   Filename				Type		Size	Used	Priority
   /swap.img                               file		8388544	0	-1
  ProcVersion: Linux version 4.4.0-24-generic (buildd at bos01-ppc64el-023) (gcc version 5.3.1 20160413 (User Name/IBM 5.3.1-14ubuntu2.1) ) #43-User Name SMP Wed Jun 8 19:25:36 UTC 2016
  SourcePackage: cloud-utils
  UpgradeStatus: No upgrade log present (probably fresh install)
  cpu_cores: Number of cores present = 20
  cpu_coreson: Number of cores online = 20
  cpu_smt: SMT is off

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-utils/+bug/1604011/+subscriptions



More information about the Ubuntu-sponsors mailing list