You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating an Alpine container on some systems, extra packages are not installed.
For instance, on Ubuntu 16.04, the following command won't actually install squid package.
lxc-create -t alpine -n mycontainer -- squid
My understanding of the reason of this behavior is the following.
On Ubuntu, /bin/sh points to /bin/dash. With dash (POSIX shell), assigning "$@" to a variable is not working as with bash. Only the first element of the array is actually assigned.
However, in file lxc-alpine.in, line 267, such an assignment is done.
local packages="$@"
Actually, as install_packages function is called with exactly 2 arguments, I propose to replace the first 2 lines of this function
local arch="$1"; shift
local packages="$@"
by
local arch="$1"
local packages="$2"
I will submit a pull request very soon
Regards
Vincent
The text was updated successfully, but these errors were encountered:
When creating an Alpine container on some systems, extra packages are not installed.
For instance, on Ubuntu 16.04, the following command won't actually install squid package.
lxc-create -t alpine -n mycontainer -- squid
My understanding of the reason of this behavior is the following.
On Ubuntu, /bin/sh points to /bin/dash. With dash (POSIX shell), assigning "$@" to a variable is not working as with bash. Only the first element of the array is actually assigned.
However, in file lxc-alpine.in, line 267, such an assignment is done.
local packages="$@"
Actually, as install_packages function is called with exactly 2 arguments, I propose to replace the first 2 lines of this function
by
I will submit a pull request very soon
Regards
Vincent
The text was updated successfully, but these errors were encountered: