From: Reto Gantenbein Date: Fri, 6 Jan 2017 06:06:03 +0000 (+0100) Subject: Fix installing multiple packages given with '--packages' X-Git-Tag: lxc-2.1.0~197^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c172e264de76648f60d5d8f85b2f3e7027f752b5;p=thirdparty%2Flxc.git Fix installing multiple packages given with '--packages' Signed-off-by: Reto Gantenbein --- diff --git a/templates/lxc-fedora.in b/templates/lxc-fedora.in index c94940c12..05a3b6506 100644 --- a/templates/lxc-fedora.in +++ b/templates/lxc-fedora.in @@ -679,7 +679,7 @@ install_fedora() cp /etc/resolv.conf "${rootfs}/etc/" echo "Installing user requested RPMs: ${packages}" - if ! chroot "${rootfs}" dnf install ${dnf_args[@]} ${packages} + if ! chroot "${rootfs}" dnf install ${dnf_args[@]} $(tr ',' ' ' <<< "${packages}") then echo "Error: Installation of user provided packages failed." echo "Cleaning up ... "