]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix installing multiple packages given with '--packages'
authorReto Gantenbein <reto.gantenbein@linuxmonk.ch>
Fri, 6 Jan 2017 06:06:03 +0000 (07:06 +0100)
committerReto Gantenbein <reto.gantenbein@linuxmonk.ch>
Sat, 7 Jan 2017 01:47:22 +0000 (02:47 +0100)
Signed-off-by: Reto Gantenbein <reto.gantenbein@linuxmonk.ch>
templates/lxc-fedora.in

index c94940c129e4444cd8fea5f79babd86de6a1ce0b..05a3b65063dfe630b119bc7312c9c971aeee7d86 100644 (file)
@@ -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 ... "