[Bug 1604011] [NEW] mount-image-callback getopt short_options misconfigured

Launchpad Bug Tracker 1604011 at bugs.launchpad.net
Mon Jul 18 16:27:54 UTC 2016


You have been subscribed to a public bug by Ubuntu Foundations Team Bug Bot (crichton):

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

** Affects: cloud-utils
     Importance: Medium
     Assignee: Ryan Harper (raharper)
         Status: Fix Committed

** Affects: cloud-utils (Ubuntu)
     Importance: Medium
         Status: Confirmed


** Tags: apport-bug patch ppc64el uec-images xenial
-- 
mount-image-callback getopt short_options misconfigured
https://bugs.launchpad.net/bugs/1604011
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list