Red Hat Bugzilla – Bug 1311877
Asterisks in provisioning templates subject to shell-expansion
Last modified: 2017-08-31 04:34:03 EDT
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