Red Hat Bugzilla – Bug 1311877
Asterisks in provisioning templates subject to shell-expansion
Last modified: 2018-02-21 11:51:07 EST
Description of problem:
There are several occurrences in the provisioning templates and snippets on the satellite where asterisks are used. One example is in the subscription_manager_registration snippet where the following line is executed
subscription-manager repos --enable rhel-*-satellite-tools-*-rpms
This is subject to shell-expansion, i.e. if a file matching the pattern above would exist for one reasons or another, the asterisks would be expanded and the provisioning would fail with a very hard-to-debug reason.
To make the line safe, the asterisks could e.g. be protected by backslash characters
Version-Release number of selected component (if applicable):
I fully agree with David, and it is a simple fix:
subscription-manager repos --enable='rhel-*-satellite-tools-*-rpms'
Good catch David :-)
Moving 6.2 bugs out to sat-backlog.
Verified in Sat 6.3 snap 13
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> For information on the advisory, and where to find the updated files, follow the link below.
> If the solution does not work for you, open a new bug report.