[Bug 1466099] [NEW] tools/maas2roottar doesn't exit non-zero if mount-image-callback is not installed
Ryan Harper
1466099 at bugs.launchpad.net
Wed Jun 17 13:56:14 UTC 2015
Public bug reported:
I'm using maas2roottar to unpack the maas image in a script like so:
curtin/tools/maas2roottar $ephimg $roottar
[ "$?" != "0" ] && {
log "ERROR: Failed to convert ephemeral to roottar";
return 1;
}
But on a system that didn't have mount-image-callback from cloud-image-utils package, maas2roottar did not exit zero:
/home/adam/download/curtin/tools/maas2roottar /home/adam/download/maas/daily/wily/amd64/20150612/root-image.gz /home/adam/download/maas/daily/wily/amd64/20150612/root.tar.gz
sudo: mount-image-callback: command not found
+ '[' 0 '!=' 0 ']'
looking at the call in maas2roottar; it just needs a check on the return
code of mount-image-callback
$sudo mount-image-callback "$img" -- "$0" create-tgz \
${vflags} "${pt[@]}" _MOUNTPOINT_ "$output"
1. % lsb_release -rd
Description: Ubuntu 14.04.2 LTS
Release: 14.04
2. % bzr info
Standalone tree (format: 2a)
Location:
branch root: .
Related branches:
parent branch: bzr+ssh://bazaar.launchpad.net/+branch/curtin/
(foudres) curtin % bzr revno
214
3. maas2roottar return non-zero if mount-image-callback command is not
available
4. maas2roottar did not exit non-zero on system witout mount-image-
callback installed.
** Affects: curtin (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to curtin in Ubuntu.
https://bugs.launchpad.net/bugs/1466099
Title:
tools/maas2roottar doesn't exit non-zero if mount-image-callback is
not installed
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1466099/+subscriptions
More information about the Ubuntu-server-bugs
mailing list