'symlinks' : ['sockets.target.wants/']
},
{ 'file' : 'systemd-mute-console@.service' },
- { 'file' : 'system-systemd\\x2dmute\\x2dconsole.slice' },
+ {
+ 'file' : 'system-systemd-mute-console.slice',
+ 'name' : 'system-systemd\\x2dmute\\x2dconsole.slice',
+ },
{ 'file' : 'network-online.target' },
{ 'file' : 'network-pre.target' },
{ 'file' : 'network.target' },
{ 'file' : 'syslog.socket' },
{ 'file' : 'system-install.target' },
{
- 'file' : 'system-systemd\\x2dcryptsetup.slice',
+ 'file' : 'system-systemd-cryptsetup.slice',
+ 'name' : 'system-systemd\\x2dcryptsetup.slice',
'conditions' : ['HAVE_LIBCRYPTSETUP'],
},
{
- 'file' : 'system-systemd\\x2dveritysetup.slice',
+ 'file' : 'system-systemd-veritysetup.slice',
+ 'name' : 'system-systemd\\x2dveritysetup.slice',
'conditions' : ['HAVE_LIBCRYPTSETUP'],
},
{ 'file' : 'system-update-cleanup.service' },
needs_jinja = false
name = source
endif
+ # Unit names that contain characters which are awkward in source file names (e.g. the
+ # backslash in \x2d escapes) are stored under a sanitized file name and renamed on install.
+ name = unit.get('name', name)
source = files(source)
install = true
endif
elif install
install_data(source,
+ rename : name,
install_dir : systemunitdir,
install_tag : unit.get('install_tag', ''))
endif