summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #3220 from keszybz/install-fixesLennart Poettering2016-05-1016-131/+157
|\ \ | | | | | | Fix "preset-all" with dangling symlinks and install-section hint emitted too eagerly
| * | locale-util: mark special_glyph() as _const_Zbigniew Jędrzejewski-Szmek2016-05-092-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | _const_ means that the caller can assume that the function will return the same result every time (and will not modify global memory). special_glyph() meets this: even though it depends on global memory, that part of global memory is not expected to change. This allows the calls to special_glyph() to be optimized, even if -flto is not used.
| * | tree-wide: rename draw_special_char to special_glyphZbigniew Jędrzejewski-Szmek2016-05-0914-84/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | That function doesn't draw anything on it's own, just returns a string, which sometimes is more than one character. Also remove "DRAW_" prefix from character names, TREE_* and ARROW and BLACK_CIRCLE are unambigous on their own, don't draw anything, and are always used as an argument to special_glyph(). Rename "DASH" to "MDASH", as there's more than one type of dash.
| * | shared/install: use "→" instead of "pointing to" for a symlinkZbigniew Jędrzejewski-Szmek2016-05-091-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's quite a bit shorter and just as readable. (The full sentence with "pointing to" was added to replace a text that used "ln -s %s %s". Using the "ln" syntax is indeed unclear, because it's not obvious which is the source and which is the target, and because symlink(2) uses the opposite order to ln(1). But with the unicode arrow there should be no ambiguity.)
| * | shared/install: do not print warning when a unit is already enabledZbigniew Jędrzejewski-Szmek2016-05-091-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | Executing 'systemctl enable' on the same unit twice would cause a warning about a missing [Install] section to be printed. To avoid this, count all symlinks that "would" be created, and return 1 no matter if we actually created a symlink or skipped creation because it already exists.
| * | shared/install: handle dangling aliases as an explicit case, report nicelyZbigniew Jędrzejewski-Szmek2016-05-092-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes 'preset-all' with a unit that is a dangling symlink. $ systemctl --root=/ preset-all Unit syslog.service is an alias to a unit that is not present, ignoring. Unit auditd.service is masked, ignoring. Unit NetworkManager.service is masked, ignoring.
| * | shared/install: add some more debug messages and commentsZbigniew Jędrzejewski-Szmek2016-05-091-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ systemctl --root=/ preset foobar.service Cannot find unit foobar.service. Failed to preset: No such file or directory. $ systemctl --root=/ preset foobar@.service Cannot find unit foobar@.service. Failed to preset: No such file or directory. $ systemctl --root=/ preset foobar@blah.service Cannot find unit foobar@blah.service or foobar@.service. Failed to preset: No such file or directory.
| * | shared/install: simplify error handling conditionals in a few placesZbigniew Jędrzejewski-Szmek2016-05-071-18/+10
| | |
| * | core/mount: add helper function for mount statesZbigniew Jędrzejewski-Szmek2016-05-071-21/+16
| | |
* | | man: document the nfs mount option bg as unsupported (#3231)tblume2016-05-101-0/+5
| | | | | | | | | | | | | | | | | | The nfs mount option bg will not be supported with systemd. Reasons are discussed here: https://github.com/systemd/systemd/pull/3169
* | | units: make sure that fsck is executed before quotachecktblume2016-05-101-1/+1
| | | | | | | | | | | | fsck determines wheter an automatic quotacheck should be executed. Hence fsck service needs to run before quotacheck service.
* | | catalog: update French translation (#3228)Sylvain Plantefève2016-05-091-5/+65
| | |
* | | Merge pull request #3209 from poettering/nspawn-network-zonesZbigniew Jędrzejewski-Szmek2016-05-0930-197/+650
|\ \ \ | | | | | | | | introduce simple "network zones" concept to nspawn
| * | | update TODOLennart Poettering2016-05-091-3/+2
| | | |
| * | | nspawn: only remove veth links we created ourselvesLennart Poettering2016-05-091-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Let's make sure we don't remove veth links that existed before nspawn was invoked. https://github.com/systemd/systemd/pull/3209#discussion_r62439999
| * | | network: Make sure we log about parse errors for ifname listsLennart Poettering2016-05-091-2/+4
| | | | | | | | | | | | | | | | Fix-up for 93e2822684b37a4eeef03775a7a1f44a3055d7b2
| * | | network: allow LLDP packets to cross non-customer bridges for container ↵Lennart Poettering2016-05-093-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | network interfaces This changes the default .network files we ship for nspawn containers to set EmitLLDP=customer-bridge in order to allow propagation of the LLDP packets across bridges. This is useful so that "networkctl status" shows all peers connected to a virtual container network, collecting this data via LLDP. This is safe since the default configuration for these interfaces does not bridge these links to external interfaces, but relies on IP routing for this.
| * | | networkd: reworkd LLDP emission to allow control of propagation levelLennart Poettering2016-05-097-41/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows selecting the propagation level of emitted LLDP packets (specifically: the destination MAC address of the packets). This is useful because it allows generating LLDP packets that optionally cross certain types of bridges. See 802.11ab-2009, Table 7-1 for details.
| * | | tree-wide: port more code to use ifname_valid()Lennart Poettering2016-05-098-85/+83
| | | |
| * | | man: add documentation for the new --network-zone= concept of nspawnLennart Poettering2016-05-092-1/+40
| | | |
| * | | network: add automatic configuration for the networks created by nspawn ↵Lennart Poettering2016-05-094-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | --network-zone= This way, they "just work", similar to --network-veth behaves, as long as networkd is enabled and running on all involved nodes.
| * | | nspawn: add new --network-zone= switch for automatically managed bridge devicesLennart Poettering2016-05-096-43/+235
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new concept of network "zones", which are little more than bridge devices that are automatically managed by nspawn: when the first container referencing a bridge is started, the bridge device is created, when the last container referencing it is removed the bridge device is removed again. Besides this logic --network-zone= is pretty much identical to --network-bridge=. The usecase for this is to make it easy to run multiple related containers (think MySQL in one and Apache in another) in a common, named virtual Ethernet broadcast zone, that only exists as long as one of them is running, and fully automatically managed otherwise.
| * | | util-lib: add new ifname_valid() call that validates interface namesLennart Poettering2016-05-095-2/+93
| | | | | | | | | | | | | | | | | | | | Make use of this in nspawn at a couple of places. A later commit should port more code over to this, including networkd.
| * | | man: document that nspawn's host0 and ve-* interfaces have default config in ↵Lennart Poettering2016-05-091-15/+21
|/ / / | | | | | | | | | networkd
* | | Merge pull request #3222 from keszybz/tests-workLennart Poettering2016-05-096-7/+26
|\ \ \ | | | | | | | | Some small fixes to make it easier to run tests and fix failure in TEST-{02,08}
| * | | TEST-08: make sure / is remounted rwZbigniew Jędrzejewski-Szmek2016-05-081-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In this test /etc/fstab is replaced by -.mount unit. This causes systemd-remount-fs.service to not remount / rw, which in turn causes various failures becuase /var is not writable. In particular systemd-tmpfiles-setup.service reports many failures. This is something to possibly fix on its own (see https://github.com/systemd/systemd/issues/791); in the meanwhile let's fix this test so that it doesn't fail, since the point of the test is to check aliases on mount units, and not a ro root.
| * | | tests: enable logging for pid1, disable for other systemd servicesZbigniew Jędrzejewski-Szmek2016-05-081-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | systemd-udev generated an insane amount of log output at debug level. It would break TEST-02-CRYPTSETUP by filling the overflowing the disk (which seems to be a bug in itself!).
| * | | tests: allow root to login with empty password to test imagesZbigniew Jędrzejewski-Szmek2016-05-081-0/+3
| | | |
| * | | tree-wide: remove uses of --failedZbigniew Jędrzejewski-Szmek2016-05-084-5/+4
| | | | | | | | | | | | | | | | It has been replaced by --state=failed.
| * | | tests: specify format=raw for qemu to avoid warningZbigniew Jędrzejewski-Szmek2016-05-081-1/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | WARNING: Image format was not specified for '/var/tmp/systemd-test.tGi3od/rootdisk.img' and probing guessed raw. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions. Also use unsafe caching mode, we don't care about data integrity here.
* | | Merge pull request #3202 from poettering/socket-fixesMartin Pitt2016-05-084-58/+161
|\ \ \ | | | | | | | | don't reopen socket fds when reloading the daemon
| * | | core: rework how we flush incoming traffic when a socket unit goes downLennart Poettering2016-05-064-20/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, we'd simply close and reopen the socket file descriptors. This is problematic however, as we won't transition through the SOCKET_CHOWN state then, and thus the file ownership won't be correct for the sockets. Rework the flushing logic, and actually read any queued data from the sockets for flushing, and accept any queued messages and disconnect them.
| * | | core: don't implicit open missing socket fds on daemon reloadLennart Poettering2016-05-061-8/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, when the daemon was reloaded and the configuration of a socket unit file was changed so that a different set of socket ports was defined for the socket we'd simply reopen the socket fds not yet open. This is problematic however, as this means the SOCKET_CHOWN state is not run for them, and thus their UID/GID is not corrected. With this change, don't open the missing file descriptors, but log about this issue, and ask the user to restart the socket explicit, to make sure all missing fds are opened. Fixes: #3171
| * | | core: split out selinux label retrieval logic into a function of its ownLennart Poettering2016-05-061-30/+49
| | | | | | | | | | | | | | | | This should bring no behavioural change.
* | | | NEWS: typo fix and american english (#3219)Thomas H. P. Andersen2016-05-071-2/+2
| |/ / |/| |
* | | Merge pull request #3205 from poettering/iaidZbigniew Jędrzejewski-Szmek2016-05-072-16/+16
|\ \ \ | | | | | | | | more dhcp fixes
| * | | man: link the part about [DHCP] to the DHCP= explanationLennart Poettering2016-05-061-0/+3
| | | |
| * | | man: move IPv6 note to the right sectionLennart Poettering2016-05-061-9/+5
| | | | | | | | | | | | | | | | Make the XML validate again.
| * | | networkd: move the IAID configuration option into the [DHCP] sectionLennart Poettering2016-05-062-7/+8
| | | | | | | | | | | | | | | | It's only relevant to DHCP, and it should be where the DUID is configured too.
* | | | Merge pull request #3160 from htejun/cgroup-fixes-rev2Zbigniew Jędrzejewski-Szmek2016-05-073-7/+11
|\ \ \ \ | | | | | | | | | | Cgroup fixes.
| * | | | core: fix segfault on "systemctl --set-property UNIT BlockIODeviceWeight=WEIGHT"Tejun Heo2016-05-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bus_append_unit_property_assignment() was missing an argument for sd_bus_message_append() when processing BlockIODeviceWeight leading to segfault. Fix it. Signed-off-by: Tejun Heo <htejun@fb.com>
| * | | | core: make unit_has_mask_realized() consider controller enable stateTejun Heo2016-04-302-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unit_has_mask_realized() determines whether the specified unit has its cgroups set up properly given the desired target_mask; however, on the unified hierarchy, controllers need to be enabled explicitly for children and the mask of enabled controllers can deviate from target_mask. Only considering target_mask in unit_has_mask_realized() can lead to false positives and skipping enabling the requested controllers. This patch adds unit->cgroup_enabled_mask to track which controllers are enabled and updates unit_has_mask_realized() to also consider enable_mask. Signed-off-by: Tejun Heo <htejun@fb.com>
| * | | | core: bus_append_unit_property_assignment() was using the wrong parse functionTejun Heo2016-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was incorrectly using cg_cpu_weight_parse() to parse BlockIOWeight. Update it to use cg_blkio_weight_parse() instead. Signed-off-by: Tejun Heo <htejun@fb.com>
* | | | | Merge pull request #3215 from keszybz/news-and-other-small-cleanupsLennart Poettering2016-05-072-12/+12
|\ \ \ \ \ | | | | | | | | | | | | News and other small cleanups
| * | | | | NEWS: machinectl and loginctl also support --valueZbigniew Jędrzejewski-Szmek2016-05-071-7/+8
| | | | | |
| * | | | | systemctl: do not print header if no units will be listedZbigniew Jędrzejewski-Szmek2016-05-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | "0 units listed." is still printed.
| * | | | | systemctl: rewrite code to explicitly take care of n_units==0 caseZbigniew Jędrzejewski-Szmek2016-05-071-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Coverity was complaing, but it was a false positive (CID #1354669). Nevertheless, it's better to rewrite the code so that units is never null.
* | | | | | Merge pull request #3191 from poettering/cgroups-agent-dgramEvgeny Vereshchagin2016-05-0726-161/+302
|\ \ \ \ \ \ | |/ / / / / |/| | | | | core: use an AF_UNIX/SOCK_DGRAM socket for cgroup agent notification
| * | | | | journald: stack allocation cannot failLennart Poettering2016-05-051-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | No need to check whether alloca() failed...
| * | | | | tree-wide: introduce new SOCKADDR_UN_LEN() macro, and use it everywhereLennart Poettering2016-05-0523-75/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The macro determines the right length of a AF_UNIX "struct sockaddr_un" to pass to connect() or bind(). It automatically figures out if the socket refers to an abstract namespace socket, or a socket in the file system, and properly handles the full length of the path field. This macro is not only safer, but also simpler to use, than the usual offsetof() + strlen() logic.