premount script fails with $RELEASE not defined

Bug #1241021 reported by Martin Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Otto
New
Undecided
Unassigned

Bug Description

Current otto (r256) on saucy final.

$ sudo bin/otto create saucy-otto ~/download/ubuntu/saucy-desktop-amd64.iso

"sudo bin/otto start" fails without a meaningful error message. Running lxc-start directly shows the reason:

$ sudo lxc-start -n saucy-otto
[...]
+ APT_ARCHIVE=http://archive.ubuntu.com/ubuntu
/var/lib/lxc/saucy-otto/tools/scripts/pre-mount.sh: 105: /var/lib/lxc/saucy-otto/tools/scripts/pre-mount.sh: RELEASE: parameter not set
+ cat
lxc-start: Script exited with status 2
lxc-start: failed to run pre-mount hooks for container 'saucy-otto'.
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'saucy-otto'
[...]

I worked around that by adding "export RELEASE=saucy" to /var/lib/lxc/saucy-otto/tools/scripts/pre-mount.sh

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.