summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* shared/util: use signed printf format for PIDsZbigniew Jędrzejewski-Szmek2015-01-22
| | | | gcc 5 started warning about this.
* import: introduce new mini-daemon systemd-importd, and make machinectl a ↵Lennart Poettering2015-01-22
| | | | | | | | | | | | | | client to it The old "systemd-import" binary is now an internal tool. We still use it as asynchronous backend for systemd-importd. Since the import tool might require some IO and CPU resources (due to qcow2 explosion, and decompression), and because we might want to run it with more minimal priviliges we still keep it around as the worker binary to execute as child process of importd. machinectl now has verbs for pulling down images, cancelling them and listing them.
* impot: minor cleanupsLennart Poettering2015-01-22
|
* log: add new log output mode, that prints to console, but prefixes with ↵Lennart Poettering2015-01-22
| | | | | | | syslog priority This is useful when we execute our own programs, reading output from its STDERR, and want to retain priority information.
* networkd: plug lldp leakTom Gundersen2015-01-21
|
* network: dhcp - split out dhcp_identifier_set_{iaid,duid_en} from dhcp6-clientTom Gundersen2015-01-21
| | | | This will also be used in dhcp4-client.
* network: dhcp - split out the duid structure into a new header fileTom Gundersen2015-01-21
| | | | We will use the same in both dhcp4 and dhcp6.
* import: simplify dkr importer, by making use of generic import-job logic, ↵Lennart Poettering2015-01-21
| | | | | | used by the raw and tar importers This gets us progress output as well xz/bzip2 support.
* import: minor cleanups for the tar and raw importersLennart Poettering2015-01-21
|
* sysv-generator: Replace Provides: symlinks with real unitsMartin Pitt2015-01-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit b7e7184 the SysV generator creates symlinks for all "Provides:" in the LSB header. However, this is too greedy; there are cases where the creation of a unit .service file fails because of an already existing symlink with the same name: - Backup files such as /etc/init.d/foo.bak still have "Provides: foo", and thus get a foo.service -> foo.bak.service link. foo.bak would not be enabled in rcN.d/, but we (deliberately) create units for all executables in init.d/ so that a manual "systemctl start" works. If foo.bak is processed before, the symlink already exists. - init.d/bar has "Provides: foo", while there also is a real init.d/foo. The former would create a link foo.service -> bar.service, while the latter would fail to create the real foo.service. If we encounter an existing symlink, just remove it before writing a real unit. Note that two init.d scripts "foo" and "bar" which both provide the same name "common" already work. The first processed init script wins and creates the "common.service" symlink, and the second just fails to create the symlink again. Thus create an additional test case for this to ensure that it keeps working sensibly. https://bugs.debian.org/775404
* util: Add some missing hidden_file() suffixesMartin Pitt2015-01-21
| | | | | dpkg itself also uses *.dpkg-dist, while .dpkg-{bak,backup,remove} are being used by dpkg-maintscript-helper.
* sysv-generator: Handle .sh suffixes when translating Provides:Martin Pitt2015-01-21
| | | | | | | | | | | | | | | When deciding whether the provided name equals the file name in sysv_translate_facility(), also consider them equal if the file name has a ".sh" suffix. This was uncovered by commit b7e7184 which then created a symlink "<name>.service" to itself for ".sh" suffixed init.d scripts. For additional robustness, refuse to create symlinks to itself in add_alias(). Add test case which reproduces the bug. https://bugs.debian.org/775889
* import: support downloading bzip2-encoded imagesLennart Poettering2015-01-21
| | | | This way, we can import CoreOS images unmodified.
* journal: Fix syslog forwarding without CAP_SYS_ADMINChristian Seiler2015-01-21
| | | | | | | | | | | | | | In case CAP_SYS_ADMIN is missing (like in containers), one cannot fake pid in struct ucred (uid/gid are fine if CAP_SETUID/CAP_SETGID are present). Ensure that journald will try again to forward the messages to syslog without faking the SCM_CREDENTIALS pid (which isn't guaranteed to succeed anyway, since it also does the same thing if the process has already exited). With this patch, journald will no longer silently discard messages that are supposed to be sent to syslog in these situations. https://bugs.debian.org/775067
* import: also add verification support to tar importerLennart Poettering2015-01-21
|
* import: make verification code generic, in preparation for using it pull-tarLennart Poettering2015-01-21
|
* import: improve loggingLennart Poettering2015-01-21
|
* import: show download speed while downloadingLennart Poettering2015-01-21
|
* import: add image verification using gpgLennart Poettering2015-01-21
| | | | | | This also adds an initial keyring for the verification, that contains Ubuntu's and Fedora's key. We should probably add more entries sooner or later.
* nspawn: work around kernel bug with partition table probing on loopback devicesLennart Poettering2015-01-20
| | | | | | | | | | | | | | | | | When we set up a loopback device with partition probing, the udev "change" event about the configured device is first passed on to userspace, only the the in-kernel partition prober is started. Since partition probing fails with EBUSY when somebody has the device open, the probing frequently fails since udev starts probing/opening the device as soon as it gets the notification about it, and it might do so earlier than the kernel probing. This patch adds a (hopefully temporary) work-around for this, that compares the number of probed partitions of the kernel with those of blkid and synchronously asks for reprobing until the numebrs are in sync. This really deserves a proper kernel fix.
* import: add a couple of additional suffixes to remove from raw imagesLennart Poettering2015-01-20
|
* import: make image verification optionalLennart Poettering2015-01-20
|
* sd-dhcp6-client: Remove unnecessary debug printoutPatrik Flykt2015-01-20
|
* import: add a simple scheme for validating the SHA256 sums of downloaded raw ↵Lennart Poettering2015-01-20
| | | | files
* import: be less aggressive when allocating memory for downloaded payloadLennart Poettering2015-01-20
|
* import: improve logging a bitLennart Poettering2015-01-20
|
* import: port pull-raw to helper tools implemented for pull-tarLennart Poettering2015-01-20
| | | | | This allows us to reuse a lot more code, and simplify pull-raw drastically.
* import: add support for pulling raw tar balls as containersLennart Poettering2015-01-20
| | | | | Ubuntu provides their cloud images optionally as tarball, hence also support downloading those.
* util: make http url validity checks more generic, and move them to util.cLennart Poettering2015-01-20
|
* networkd: fix a typo in networkd-wait-online-manager.Rami Rosen2015-01-20
| | | | subscibe->subscribe
* man: add networkctl(1)Zbigniew Jędrzejewski-Szmek2015-01-19
|
* nspawn: add ipvlan supportTom Gundersen2015-01-20
|
* networkd: netdev - add ipvlan supportTom Gundersen2015-01-19
|
* systemctl: do not show dots with --plainZbigniew Jędrzejewski-Szmek2015-01-19
| | | | | | | | Plain implies a ... "plain" output. Also do not say "No jobs" with --no-legend. We skip reporting the number of jobs with --no-legend if there are any, and 0 is also a number, and should be skipped.
* nspawn: support dissecting GPT images that contain only a single generic ↵Lennart Poettering2015-01-19
| | | | | | | linux partition This should allow running Ubuntu UEFI GPT Images with nspawn, unmodified.
* import: clarify when we are unpacking the qcow2 deviceLennart Poettering2015-01-19
|
* inspawn: wait until udev has probed a loopback device before making us of itLennart Poettering2015-01-19
|
* import: make sure don't leak the LZMA contextLennart Poettering2015-01-19
|
* machined: refer to the disk space allocated for an image to "usage" rather ↵Lennart Poettering2015-01-19
| | | | | | | than "size" After all, it's closer to the "du"-reported value than to the file sizes...
* qcow2: when dissecting qcow2, use btrfs clone ioctls for reflinking blocks ↵Lennart Poettering2015-01-19
| | | | to target
* import: when downloading raw files, show simple progress reportsLennart Poettering2015-01-19
|
* import: simplify the code a bitLennart Poettering2015-01-19
|
* import-raw: when downloading raw images, generate sparse files if we canLennart Poettering2015-01-19
|
* import-raw: set NOCOW flag on all raw images we createLennart Poettering2015-01-19
|
* systemctl: fix import-environment description, trim help to 80 colsZbigniew Jędrzejewski-Szmek2015-01-19
|
* journalctl: trim --help to fit in 80 columnsZbigniew Jędrzejewski-Szmek2015-01-19
| | | | | | | Terminals tend to be 80 columns wide by default, and the help text is only supposed to be a terse reminder anyway. https://bugzilla.redhat.com/show_bug.cgi?id=1183771
* cgroup: fix typoDaniel Mack2015-01-19
|
* Move DEFINE_TRIVIAL_CLEANUP_FUNC to macro.hZbigniew Jędrzejewski-Szmek2015-01-18
| | | | | This remove the need for various header files to include the (relatively heavyweight) util.h.
* Add initialization helper for file_handle_unionZbigniew Jędrzejewski-Szmek2015-01-18
|
* bus: drop systemd.kdbus_attach_flags_mask= cmdlineDavid Herrmann2015-01-18
| | | | | | | There is no reason to provide our own attach_flags_mask. We can simply rely on kdbus.attach_flags_mask= which is read by the kernel *and* kmod. If it's set, we assume the user wants to override our setting, so we simply skip setting it.