lxc debian-templates copy_configuration not supplied with $name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Stéphane Graber |
Bug Description
== Rationale ==
A missing parameter to copy_configuration in lxc-debian is preventing the hostname from being written in quite a few files.
The fix is simply to pass the missing parameter.
== Test case ==
1) lxc-create -t debian -n p1
2) lxc-start -n p1
3) Observe the login prompt " login:" instead of "p1 login:"
4) Stop and remove the container
5) Upgrade lxc
6) Try again and observe "p1 login:"
== Regression potential ==
Can't think of any, we're really just passing the right value instead of an empty string.
------ original bug report -------
Although this bug looks very similar to #1046684 , it is not the same.
With the installed version 0.7.5-3ubuntu66 , I still find the bug existing.
The file, located at /usr/lib/
Assuming this as a source code: https:/
The bug is present at /lxc-0.
# line 185
copy_configurat
{
path=$1
rootfs=$2
name=$3
...
#line 310
copy_configuration $path $rootfs
# the fix / line 310
copy_configuration $path $rootfs $name
My system Details:
Description: Ubuntu 12.04.1 LTS
Release: 12.04
lxc:
Installed: 0.7.5-3ubuntu66
Just that should do the job
Thanks in advance,
Francisco
Changed in lxc (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in lxc (Ubuntu Precise): | |
assignee: | nobody → Stéphane Graber (stgraber) |
status: | Confirmed → In Progress |
description: | updated |
Steps to reproduce:
sudo lxc-create -n my_machine -t debian
sudo lxc-start -n my_machine
Expected:
#booting
...
Debian GNU/Linux 6.0 my_machine console
my_machine login:
....
Happens:
#booting
...
Debian GNU/Linux 6.0 console
login:
....
The fix above fixes the problem.