1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00
systemd/src
Ronny Chevalier e9e310f8e9 systemctl: handle correctly template units for edit verb
Previously, if we provided getty@.service to systemctl edit it would
have failed when using the bus because it is an invalid unit name.
But it would have succeeded when searching in the filesystem.

Now, we check if we have a template, if we do we search in the
filesystem, if we don't have a templae and we can use the bus, we do.

Furthermore, if we provided getty@tty1.service it would not have worked
when searching the filesystem, but it would have worked with the bus.
So now, when using the filesystem we use the template name and not the
unit name, and the same when logging errors.

(Also did a refactoring to avoid a long function)
2014-12-13 15:29:47 +01:00
..
ac-power treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
activate treewide: another round of simplifications 2014-11-28 19:57:32 +01:00
analyze treewide: more log_*_errno + return simplifications 2014-11-28 18:24:30 +01:00
ask-password ask-password: Add --echo to enable echoing the user input 2014-10-05 15:29:41 -04:00
backlight treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
binfmt treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
boot Unify parse_argv style 2014-08-03 21:46:07 -04:00
bootchart bootchart: escape non printable process name 2014-12-04 02:10:41 +01:00
bus-proxyd bus-proxy: cloning smack label 2014-12-09 18:23:24 +01:00
cgls treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
cgroups-agent treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
cgtop treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
compat-libs build-sys: build compat libs from sources, avoiding the not generally available ifunc wrapping 2014-02-22 21:28:55 +01:00
console treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
core wrap a few *_FOREACH macros in curly braces 2014-12-12 21:57:44 +01:00
cryptsetup cryptsetup-generator: Add support for naming luks devices on kernel cmdline 2014-12-05 01:29:45 +01:00
dbus1-generator treewide: another round of simplifications 2014-11-28 19:57:32 +01:00
debug-generator treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
delta delta: Fix broken separator support 2014-11-30 12:24:49 +01:00
detect-virt treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
efi-boot-generator treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
escape Unify parse_argv style 2014-08-03 21:46:07 -04:00
firstboot treewide: another round of simplifications 2014-11-28 19:57:32 +01:00
fsck sd-bus: move common errors src/shared/bus-errors.h → src/libsystemd/sd-bus/bus-common-errors.h 2014-12-10 19:07:48 +01:00
fstab-generator fstab-generator: Allow mount.usr without mount.usrflags, honor rw/ro 2014-12-09 02:24:26 +01:00
getty-generator treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
gpt-auto-generator gpt-auto-generator: make use of new btrfs-util.h APIs 2014-12-12 13:35:32 +01:00
gudev gudev: replace regex with sym file 2014-06-21 16:25:15 +02:00
hibernate-resume treewide: another round of simplifications 2014-11-28 19:57:32 +01:00
hostname util: when using basename() for creating temporary files, verify the resulting name is actually valid 2014-12-12 13:35:32 +01:00
initctl treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
journal journal: replace contexts hashmap with a plain array 2014-12-13 00:47:23 +01:00
journal-remote wrap a few *_FOREACH macros in curly braces 2014-12-12 21:57:44 +01:00
kernel-install kernel-install/90-loaderentry.install: fix cmdline parsing 2014-11-01 14:39:48 -04:00
libsystemd bus: send attach flags on BUS_MAKE 2014-12-12 14:02:57 +01:00
libsystemd-network use correct format types 2014-12-11 21:47:06 +01:00
libsystemd-terminal tree-wide: use our memset() macros instead of memset() itself 2014-12-11 16:58:45 +01:00
libudev hwdb: FOREACH_HWDB_PROPERTY -> SD_HWDB_FOREACH_PROPERTY 2014-12-12 09:30:50 +01:00
locale util: when using basename() for creating temporary files, verify the resulting name is actually valid 2014-12-12 13:35:32 +01:00
login use correct format types 2014-12-11 21:47:06 +01:00
machine copy: use btrfs reflinking only whe we know we copy full files 2014-12-12 17:30:25 +01:00
machine-id-commit machine-id-commit: Introduce machine-id-commit binary 2014-12-03 03:41:19 +01:00
machine-id-setup Unify parse_argv style 2014-08-03 21:46:07 -04:00
modules-load treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
network networkctl: remove unused variable 2014-12-12 21:57:44 +01:00
notify treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
nspawn nspawn: when booting in ephemeral mode, append random token to machine name 2014-12-12 17:30:25 +01:00
nss-myhostname rtnl: when querying local addresses and gateways, take address family into account 2014-12-04 01:42:42 +01:00
nss-mymachines nss: remove dead code 2014-09-19 00:15:39 +02:00
nss-resolve sd-bus: move common errors src/shared/bus-errors.h → src/libsystemd/sd-bus/bus-common-errors.h 2014-12-10 19:07:48 +01:00
path treewide: yet more log_*_errno + return simplifications 2014-11-28 18:56:16 +01:00
python-systemd python-systemd: avoid hitting assert in __exit__ 2014-10-14 08:35:16 -04:00
quotacheck delta: diff returns 1 when files differ, ignore this 2014-11-29 11:10:51 -05:00
random-seed treewide: sanitize loop_write 2014-12-09 21:36:08 -05:00
rc-local-generator treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
remount-fs treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
reply-password treewide: another round of simplifications 2014-11-28 19:57:32 +01:00
resolve networkd/resolved: correct spacing near eol in code comments 2014-12-11 15:04:43 +01:00
resolve-host sd-bus: move common errors src/shared/bus-errors.h → src/libsystemd/sd-bus/bus-common-errors.h 2014-12-10 19:07:48 +01:00
rfkill rfkill: rework how we generate file names from rfkill devices 2014-12-03 02:04:55 +01:00
run run: introduce timer support option 2014-12-09 18:19:40 +01:00
shared configure.ac: add a generic --enable-debug, replace --enable-hashmap-debug 2014-12-13 00:46:16 +01:00
shutdownd treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
sleep sleep: drop redundant MESSAGE= prefix 2014-12-09 03:58:20 +01:00
socket-proxy treewide: another round of simplifications 2014-11-28 19:57:32 +01:00
sysctl treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
system-update-generator treewide: another round of simplifications 2014-11-28 19:57:32 +01:00
systemctl systemctl: handle correctly template units for edit verb 2014-12-13 15:29:47 +01:00
systemd journal: fix dangling 'else' ambiguity 2014-12-12 09:52:06 +01:00
sysusers copy: use btrfs reflinking only whe we know we copy full files 2014-12-12 17:30:25 +01:00
sysv-generator core: warn and ignore SysVStartPriority= 2014-11-30 19:10:40 -05:00
test test-unit-name: add more tests 2014-12-13 15:12:38 +01:00
timedate sd-bus: move common errors src/shared/bus-errors.h → src/libsystemd/sd-bus/bus-common-errors.h 2014-12-10 19:07:48 +01:00
timesync timesyncd: minor simplification 2014-11-30 22:58:55 +01:00
tmpfiles tmpfiles, man: Add xattr support to tmpfiles 2014-12-04 20:21:45 +01:00
tty-ask-password-agent treewide: sanitize loop_write 2014-12-09 21:36:08 -05:00
udev udev-builtin-btrfs: properly initialize ioctl struct to zeroes 2014-12-12 13:35:32 +01:00
update-done udev,update-done: more log_xyz_errno() conversions 2014-11-28 16:32:26 +01:00
update-utmp treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
vconsole treewide: sanitize loop_write 2014-12-09 21:36:08 -05:00
.gitignore Add test coverage and generate report with lcov 2013-07-13 21:56:33 -04:00
Makefile relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00