Commit Graph
9318 Commits
Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek db2241b525 manager: do not print timing when running in test mode
(cherry picked from commit 56dacdbc1c)
2014-11-02 16:40:30 -05:00
Zbigniew Jędrzejewski-Szmek b5404292de Raise level of 'Found dependency...' lines
This way they always show up together with 'Found ordering cycle...'.
Ordering cycles are a serious error and a major pain to debug. If
quiet is enabled, only the first and the last line of output are
shown:

systemd[1]: Found ordering cycle on basic.target/start
systemd[1]: Breaking ordering cycle by deleting job timers.target/start
systemd[1]: Job timers.target/start deleted to break ordering cycle starting with basic.target/start

which isn't particularly enlightening. So just show the whole message
at the same level.

https://bugzilla.redhat.com/show_bug.cgi?id=1158206
(cherry picked from commit 14fe721b5f)
2014-11-02 16:40:30 -05:00
Colin Walters 5a9b149c96 libudev: Use correct free function
FILE * wants cleanup_fclose().

Spotted by udev hwdb segfaulting in gnome-continuous' buildroot
construction.

(cherry picked from commit ea55caa60c)
2014-11-02 16:40:30 -05:00
Joe Lawrence 3db8a5d1b3 scsi_id: fix usage spelling
s/threat/treat/g

(cherry picked from commit 85f13fce32)
2014-11-02 16:40:30 -05:00
Michael Chapman b464167132 kernel-install/90-loaderentry.install: fix cmdline parsing
A recent commit (2f3a215) changed the parsing of /proc/cmdline to use a
shell array. Unfortunately, this introduced a bug: "read -ar line"
populates the shell variable $r, not $line. This breaks installation of
new loader entries:

  # kernel-install add 3.17.1-304.fc21.x86_64 \
      /boot/vmlinuz-3.17.1-304.fc21.x86_64
  Could not determine the kernel command line parameters.
  Please specify the kernel command line in /etc/kernel/cmdline!

This commit alters the read command to correctly populate the $line
array instead.

(cherry picked from commit c008f6ee8d)
2014-11-02 16:40:30 -05:00
Jan Synacek 896050eeb3 core: improve error message when machine id is missing
(cherry picked from commit 86fb9ca7ae)
2014-11-02 16:40:29 -05:00
Zbigniew Jędrzejewski-Szmek 6c2d3f2467 libudev: do not accept invalid log levels
Invalid log levels lead to a assert failure later on.

https://bugs.freedesktop.org/show_bug.cgi?id=85657
(cherry picked from commit ee7122c0ec)
2014-11-02 16:40:29 -05:00
Zbigniew Jędrzejewski-Szmek e63854bf94 libudev: modernization
This brings udev logging style a bit closer to normal systemd convention.

(cherry picked from commit fe756ed9ec)
2014-11-02 16:40:29 -05:00
Lennart Poettering 860e33966a units: don't order journal flushing afte remote-fs.target
Instead, only depend on the actual file systems we need.

This should solve dep loops on setups where remote-fs.target is moved
into late boot.

(cherry picked from commit 919699ec30)
2014-11-02 16:40:28 -05:00
Lennart Poettering c986f1e5ff nspawn: don't make up -1 as error code
(cherry picked from commit fddbb89c46)
2014-11-02 16:40:28 -05:00
Dave Reisner deb5897054 shared/install: avoid prematurely rejecting "missing" units
f7101b7368 copied some logic to prevent enabling masked units, but
also added a check which causes attempts to enable templated units to
fail. Since we know the logic beyond this check will properly handle
units which truly do not exist, we can rely on the unit file state
comparison to suffice for expressing the intent of f7101b7368.

ref: https://bugs.archlinux.org/task/42616
(cherry picked from commit 0ffce503cd)
2014-11-02 16:40:28 -05:00
Dan Williams b994526e7f sd-dhcp-client: clean up raw socket sd_event_source when creating new UDP socket
The raw socket sd_event_source used for DHCP server solicitations
was simply dropped on the floor when creating the new UDP socket
after a lease has been acquired.  Clean it up properly so we're
not still listening and responding to events on it.

(cherry picked from commit affaa94fc3)
2014-11-02 16:40:28 -05:00
Zbigniew Jędrzejewski-Szmek 3db5ad126f snapshot: return error when snapshot exists
(cherry picked from commit 7cabba0774)
2014-11-02 16:40:27 -05:00
Colin Guthrie c3a8638cf4 sysusers: Preserve ownership and mode on /etc/passwd and friends
When running sysusers we would clobber file ownership and permissions
on the files /etc/passwd, /etc/group and /etc/[g]shadow.

This simply preserves the ownership and mode if existing files are
found.

(cherry picked from commit e3c72c21d6)
2014-11-02 16:40:27 -05:00
Zbigniew Jędrzejewski-Szmek ff0c10038b systemctl: obey --state in list-unit-files
(cherry picked from commit fec1530e6b)
2014-11-02 16:40:26 -05:00
Zbigniew Jędrzejewski-Szmek 4ffc217225 systemctl: let list-{units,unit-files } honour --type
The docs don't clarify what is expected, but I don't see any reason
why --type should be ignored.

Also restucture the compund conditions into separate clauses for
easier reading.

(cherry picked from commit 6c71341aee)
2014-11-02 16:40:26 -05:00
Kay Sievers c96c14e1f5 udev: path_id - update comments
(cherry picked from commit a42cdff19f)
2014-11-02 16:40:26 -05:00
Dave Reisner 5b6b524662 nspawn: ignore EEXIST when creating mount point
A combination of commits f3c80515c and 79d80fc14 cause nspawn to
silently fail with a commandline such as:

  # systemd-nspawn -D /build/extra-x86_64 --bind=/usr

strace shows the culprit:

  [pid 27868] writev(2, [{"Failed to create mount point /build/extra-x86_64/usr: File exists", 82}, {"\n", 1}], 2) = 83

(cherry picked from commit 1ab19cb167)
2014-11-02 16:40:26 -05:00
Lennart Poettering 8207682d7a sd-bus: properly handle removals of non-existing matches
(cherry picked from commit ef7b6c0190)
2014-11-02 16:40:25 -05:00
Zbigniew Jędrzejewski-Szmek d5cd1a02f0 Revert "core: send sigabrt on watchdog timeout to get the stacktrace"
This reverts commit db2cb23b5b.
2014-11-02 16:40:25 -05:00
Zbigniew Jędrzejewski-Szmek 9bbe7b209c Revert "service: add missing state table entry"
This reverts commit 1378a3b5a1.
2014-11-02 16:40:25 -05:00
Zbigniew Jędrzejewski-Szmek 32e659e2d7 Revert "login: remove multi-seat-x"
This reverts commit 3769415e65.

Conflicts:
	NEWS
2014-11-02 16:40:25 -05:00
Zbigniew Jędrzejewski-Szmek a8caf8eaba Revert "timedated: manage systemd-timesyncd directly instead of lists of alternatives"
This reverts commit b72ddf0f4f.

Conflicts:
	Makefile.am
	NEWS
2014-11-02 16:40:24 -05:00
Zbigniew Jędrzejewski-Szmek 1c5d3c9230 Revert "readahead: wipe out readahead"
This reverts commit d6bc8348d5.

Conflicts:
	units/systemd-firstboot.service.in
2014-11-02 16:40:13 -05:00
Lennart Poettering 288c0991d5 test: use assert_se() when testing tables so that we get a useful error when something fails 2014-10-28 18:07:23 +01:00
Lennart Poettering 1378a3b5a1 service: add missing state table entry 2014-10-28 18:06:58 +01:00
Umut Tezduyar Lindskog db2cb23b5b core: send sigabrt on watchdog timeout to get the stacktrace
if sigabrt doesn't do the job, follow regular shutdown
routine, sigterm > sigkill.
2014-10-28 17:37:39 +01:00
Lennart Poettering f10af76de5 swap: don't add too many deps for swap files form /proc/swap 2014-10-28 17:37:06 +01:00
Kay Sievers cc821d02a3 udev: path_id - set supported_parent for well-known SCSI setups 2014-10-28 16:51:36 +01:00
Lennart Poettering f2288cc63f polkit: actually generate new InteractiveAuthorizationRequired error on the right occasions 2014-10-28 15:11:39 +01:00
Lennart Poettering 1b3a797f6f sd-bus: add support for new InteractiveAuthorizationRequired error from dbus spec 2014-10-28 14:59:48 +01:00
WaLyong Cho 8a188de9e0 mac: add mac_ prefix to distinguish origin security apis 2014-10-28 14:31:48 +01:00
Lennart Poettering ddb7d6b942 swap: drop noauto/nofail bools from Swap structure
We nowadays always set them to "false" anyway, hence let's get rid of
them entirely.
2014-10-28 14:31:25 +01:00
Lennart Poettering 47cb901e38 swap: replace Discard= setting by a more generic Options= setting
For now, it's systemd itself that parses the options string, but as soon
as util-linux' swapon can take the option string directly with -o we
should pass it on unmodified.
2014-10-28 14:31:25 +01:00
Martin Pitt 33488f1979 udev hwdb: Support shipping pre-compiled database in system images
In some cases it is preferable to ship system images with a pre-generated
binary hwdb database, to avoid having to build it at runtime, avoid shipping
the source hwdb files, or avoid storing large binary files in /etc.

So if hwdb.bin does not exist in /etc/udev/, fall back to looking for it in
UDEVLIBEXECDIR. This keeps the possibility to add files to /etc/udev/hwdb.d/
and re-generating the database which trumps the one in /usr/lib.

Add a new --usr flag to "udevadm hwdb --update" which puts the database
into UDEVLIBEXECDIR.

Adjust systemd-udev-hwdb-update.service to not generate the file in /etc if we
already have it in /usr.
2014-10-28 14:28:18 +01:00
Lennart Poettering 090771492f sd-login: let's not needlessly yell at users
While GNOME/KDE are generally capitalized, systemd tools generally are
not, hence let's not start doing so in the XDG_CURRENT_SESSION
environment variable.
2014-10-28 12:31:11 +01:00
Zbigniew Jędrzejewski-Szmek ebc5788e88 manager: print warning on console before reboot
It will be printed even if a prompt is blocking other messages.
2014-10-27 23:17:49 -04:00
Zbigniew Jędrzejewski-Szmek 127d5fd156 manager: convert ephemeral to enum
In preparation for subsequent changes.
2014-10-27 23:02:54 -04:00
Zbigniew Jędrzejewski-Szmek 7c67f0f71a rpm: add user macros 2014-10-27 22:34:09 -04:00
Zbigniew Jędrzejewski-Szmek e46b13c8c7 manager: do not print anything while passwords are being queried
https://bugs.freedesktop.org/show_bug.cgi?id=73942
2014-10-27 22:33:14 -04:00
Zbigniew Jędrzejewski-Szmek 3fcd09602c cdrom_id: do not attempt to read past end of buffer
CID #1238437
2014-10-27 22:30:43 -04:00
Zbigniew Jędrzejewski-Szmek dec23413ec selinux: make sure we do not try to print missing fields
UID or GID of 0 is valid, so we cannot use that to distinguish whether
calls to sd_bus_creds_get_* succeeded, and the return value from the
function is the only way to know about missing fields. Print "n/a" if
the fields are missing.

CID #1238779
2014-10-27 22:30:43 -04:00
Timofey Titovets 3769415e65 login: remove multi-seat-x 2014-10-28 02:24:46 +01:00
Lennart Poettering f189ab18de job: optionally, when a job timeout is hit, also execute a failure action 2014-10-28 02:19:55 +01:00
Lennart Poettering fa1b91632c core: remove system start timeout logic again
The system start timeout as previously implemented would get confused by
long-running services that are included in the initial system startup
transaction for example by being cron-job-like long-running services
triggered immediately at boot. Such long-running jobs would be subject
to the default 15min timeout, esily triggering it.

Hence, remove this again. In a subsequent commit, introduce per-target
job timeouts instead, that allow us to control these timeouts more
finegrained.
2014-10-28 01:42:13 +01:00
Lennart Poettering 294330896d journald: be nice to coverity, add an extra assert
coverity otherwise assumes that the chain object might be NULL.
2014-10-27 23:50:53 +01:00
Lennart Poettering dbfd41e2df calendarspec: parse 'quarterly' and 'semi-annually' as shortcuts 2014-10-27 18:09:26 +01:00
Tom Gundersen a2a85a22b3 networkd: network - if no prefixlength is given, try to deduce one from the address class
In case of a class E or F address, ignore the address.
2014-10-27 17:40:24 +01:00
Tom Gundersen df40eee8ed shared: in-addr-utils - add default_subnet_mask and default_prefixlen methods
These use the (deprecated) IPv4 address classes to deduce the corresponding subnet masks. This is useful when addresses
without subnet masks and prefix lengths are given.

Make use of these new functions from sd-dhcp-lease.
2014-10-27 17:40:24 +01:00
Daniel Mack 5ebe2ce782 sd-bus: sync kdbus.h (ABI break)
Some comment fixes and header cleanups in kdbus.h, and the task capability
meta information has been factored out to its own struct.
2014-10-27 17:02:31 +01:00