Project

General

Profile

Actions

Bug #22125

closed

systemctl commands use literal '*'

Added by Matthew Richardson over 6 years ago. Updated over 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
build
Target version:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Many systemd commands which are run in the rpm scripts use escaped asterisks, e.g.: https://github.com/ceph/ceph/blob/master/ceph.spec.in#L1004

/usr/bin/systemctl preset ceph-disk@\*.service ceph.target

This escaping causes systemd to escape it as a literal asterisk, resulting in files/links named e.g. 'ceph-disk@\x2a.service' which obviously doesn't work or do anything useful. (the process for escaping is documented in the systemd-escape man page). If globbing was intended, no escaping is necessary (globbing support was added in systemd 209).

Actions

Also available in: Atom PDF