[lxc-users] Using template lxc-opensuse: Error in line 266, too many arguments

Stéphane Graber stgraber at ubuntu.com
Fri May 2 15:02:20 UTC 2014


On Fri, May 02, 2014 at 03:44:31PM +0200, Johannes Kastl wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi everyone,
> 
> sorry for the cross-post, not sure where this belongs. Answers to
> devel list, please.
> 
> I tried to use the lxc-opensuse template, but had this error, which is
> easily fixed:
> 
> > Checking cache download in /var/cache/lxc/opensuse/rootfs-x86_64
> > ... Copy /var/cache/lxc/opensuse/rootfs-x86_64 to
> > /var/lib/lxc/openSUSE_lxc_Versuch4/rootfs ... Copying rootfs to
> > /var/lib/lxc/openSUSE_lxc_Versuch4/rootfs ... Please change
> > root-password ! BAD PASSWORD: it is too short BAD PASSWORD: is too
> > simple /usr/share/lxc/templates/lxc-opensuse: line 266: [: too many
> > arguments
> 
> The problematic line 266 is:
> > if [ ! grep -q "^lxc.network.*.gateway" $path/config ]; then
> 
> Apparently this creates an error of some kind, which makes trouble
> with the test-command.
> 
> Changing it to
> > if [ ! grep -q "^lxc.network.*.gateway" $path/config 2> /dev/null
> > ]; then
> solves the problem, at least the script runs without visible errors.
> 
> I have no clue what this line should do (had no time to dig...), just
> thought I should let you guys know.
> 
> System is openSUSE Tumbleweed 64bit, lxc is lxc-1.0.0-124.2.x86_64

Hi,

That's not the right fix for this issue, I commited the proper fix on
the 10th of March and it was part of the 1.0.2 bugfix release.

https://github.com/lxc/lxc/commit/1bc1269ba5f899ad764f89cb42fc5897198cbe20

> 
> Regards,
> Johannes
> - -- 
> When you say "I wrote a program that crashed Windows", people just
> stare at you blankly and say "Hey, I got those with the system, *for
> free*".
> (Linus Torvalds)
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/
> 
> iEYEARECAAYFAlNjoT8ACgkQzi3gQ/xETbKE6ACdEVKAySrX0PohIOrhgoCIwHve
> tuAAn2QYAUSTu4SxfRc/RdnFVPIKjdl5
> =uWWk
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140502/9d0bd519/attachment.sig>


More information about the lxc-users mailing list