forked from voxpupuli/puppet-systemd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemd::escape: Also escape - (dash)
We also need to escape dashes in unit names, for instance for .swap services on device nodes with dashes in them. systemd-escape escapes dashes: # systemd-escape -p /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-ua-swap dev-disk-by\x2did-scsi\x2d0QEMU_QEMU_HARDDISK_drive\x2dua\x2dswap but this function does not (yet). In the long term, we may want to more closely match the behaviour of systemd's unit-name.c, but this is all I need for now. (Also cf. voxpupuli#242.)
- Loading branch information
Peter Palfrader
committed
Feb 8, 2022
1 parent
b1bdb2b
commit 5c04ec1
Showing
2 changed files
with
3 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters