1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 10:51:20 +03:00
Commit Graph

11973 Commits

Author SHA1 Message Date
WANG Chao
01264ad1cc fstab-generator: log_oom() if automount_name is null 2013-08-14 22:38:09 -04:00
William Giokas
ca08063781 zsh_completion: Correctly display journal fields
Show equals and field values when used with _journal_none, don't show
anything if we're not using _journal_none.
2013-08-14 22:23:08 -04:00
Zbigniew Jędrzejewski-Szmek
087a30417d bootchart: remove +x permissions on .c file 2013-08-14 21:47:38 -04:00
Zbigniew Jędrzejewski-Szmek
960787ae27 hostnamectl: show only specific hostname when requested
Existing --pretty, --transient, --static options, used previously
for 'set-hostname' verb, are reused for the 'status' verb. If one
of them is given, only the specified hostname is printed. This
way there's no need to employ awk to get the hostname in a script.
2013-08-14 19:06:54 -04:00
Kay Sievers
85424725d1 README: update list of used LICENSEs 2013-08-14 22:59:55 +02:00
Kay Sievers
0228a7e56a test: add licence header and switch to LGPL
Checked with and got OK from Martin.
2013-08-14 22:55:40 +02:00
Kay Sievers
03e2264261 selinux-access: move GPL to LGPL licence
On Wed, Aug 14, 2013 at 10:31 PM, Daniel J Walsh <dwalsh@redhat.com> wrote:
> On 08/14/2013 04:17 PM, Kay Sievers wrote:
> >
> > this patch added GPL code to systemd, which otherwise is all LGPL. We need
> > to make sure we can always split out any code to a separate shared library
> > ...
> >
> > Mind if I switch your src/core/selinux-access.[ch] files to LGPL?

> I have no problem with it. Should be LGPL anyways.
2013-08-14 22:34:41 +02:00
Lennart Poettering
8410d73f06 man: document the GPT partition types gpt-auto-generator looks for 2013-08-13 22:09:45 +02:00
Lennart Poettering
ce17947045 random-seed: a few modernizations 2013-08-13 22:01:55 +02:00
Lennart Poettering
d67ca9ab84 man; document gpt-auto-generator 2013-08-13 21:57:43 +02:00
Lennart Poettering
22d0d443b6 man: document systemd-efi-boot-generator 2013-08-14 03:31:06 +02:00
Lennart Poettering
38e19f9350 man: add man page for systemd-backlight@.service 2013-08-14 03:11:30 +02:00
Lennart Poettering
875c6e1b48 backlight: instead of syspath use sysname for identifying backlight devices
This makes the description string of the backlight service a bit nicer.
2013-08-14 02:55:57 +02:00
Lennart Poettering
3731acf1ac backlight: add minimal tool to save/restore screen brightness across reboots
As many laptops don't save/restore screen brightness across reboots,
let's do this in systemd with a minimal tool, that restores the
brightness as early as possible, and saves it as late as possible. This
will cover consoles and graphical logins, but graphical desktops should
do their own per-user stuff probably.

This only touches firmware brightness controls for now.
2013-08-14 01:57:02 +02:00
Lennart Poettering
405e0255d5 logind: restore logic to kill user processes when session ends 2013-08-13 17:59:28 +02:00
Lennart Poettering
ee530d8b73 gpt-auto-generator: fix swap unit generation 2013-08-13 17:48:42 +02:00
Lennart Poettering
38563c1947 update TODO 2013-08-13 10:32:24 +02:00
Lennart Poettering
00aa179e39 build-sys: add two makefile symlinks 2013-08-13 10:22:02 +02:00
Lennart Poettering
4b1b14a6a6 gpt-auto-generator: Skip /home mounting if /home is not empty 2013-08-13 10:21:16 +02:00
Lennart Poettering
1a14a53cfd gpt-auto-generator: add basic auto-discovery of GPT partitions
This adds a simple generator that is capable of automatically
discovering certain GPT partitions by their type UUID and mount/enable
them. This currently covers swap partitions and /home partitions, but is
expected to grow more features soon.

This currently doesn't handle LUKS encrypted /home.

This enables all swap partitions of type
0657fd6da4ab43c484e50933c84b4f4f, if found.

This mounts the first partition of type 933ac7e12eb44f13b8440e14e2aef915
as /home, if it is found.
2013-08-13 10:13:45 +02:00
Lennart Poettering
bed2e820db missing: use btrfs.h instead of defining our own btrfs structures 2013-08-13 10:12:35 +02:00
Kay Sievers
0b41bcec90 TODO: update 2013-08-13 00:00:32 +02:00
Zbigniew Jędrzejewski-Szmek
631c922c68 shell-completion: tell bash about --state 2013-08-12 12:04:49 -04:00
Zbigniew Jędrzejewski-Szmek
a6f0104a16 logs-show: limit to 3 lines and use dots if not showing full message
So far, we would show up to 128 bytes from a message, simply
cutting of the rest. With multiline messages, it is quite common
for a message to be longer than that, and this model doesn't really
work anymore.

A new limit is added: up to 3 lines will be shown, unless --full is
used (c.f. first line below).  The limit for bytes is extended to 300
bytes. An ellipsis will always be used, if some form of truncation
occurs. If the tail of the message is cut off, either because of
length or line limit, dots will be shown at the end of the last
line. If this last line is short, the dots will be simply appended. If
the last line is too long for that, it will be ellipsized with dots at
the very end.

Note that the limits are in bytes, not characters, and we suck at
outputting unicode strings (c.f. last three lines below).

Aug 11 10:46:21 fedora python[67]: test message
                                   line
                                   line...
Aug 11 10:50:47 fedora python[76]: test message word word word word word word word word word word word wor...
Aug 11 10:55:11 fedora python[83]: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
Aug 11 11:03:21 fedora python[90]: ąąąąąąąąąąąąąąąąąąąąąąąąąąąąąą...
Aug 11 11:03:53 fedora python[97]: aąąąąąąąąąąąąąąąąąąąąąąąąąąąąąą...
Aug 11 11:25:45 fedora python[121]: aąąąąąąąąąąąąąąąąąąąąąąąąąąąąąąąąąą�...
2013-08-11 18:10:34 -04:00
Zbigniew Jędrzejewski-Szmek
b4b02cbeec logs-show: fix indentation for 2nd and later lines, show lines in full
Now --full will show long fields in full, like it already did
with --all.
2013-08-11 18:10:34 -04:00
Zbigniew Jędrzejewski-Szmek
94e0bd7db1 systemctl: show hint about --full when lines don't fit 2013-08-11 18:10:34 -04:00
Lennart Poettering
f535088ef7 systemctl: add missing newline to --help output 2013-08-09 19:05:07 +02:00
Lennart Poettering
19c98efe17 hwdb: map logitech R400 presenter keys from powerpoint hotkeys to sensible KEY_ definitions 2013-08-09 19:05:07 +02:00
Lennart Poettering
94bbc9915a update TODO 2013-08-09 19:05:07 +02:00
WANG Chao
ef53700c20 fstab-generator: read rd.fstab=on/off switch correctly 2013-08-09 18:09:44 +02:00
Maciej Wereski
b0693d3086 service: prohibit Restart= set when Type=oneshot 2013-08-09 18:09:21 +02:00
Lennart Poettering
41efeaec03 service: always unwatch PIDs before forgetting old ones 2013-08-09 16:40:57 +02:00
WANG Chao
21d1a67863 fstab-generator: respect noauto/nofail when adding sysroot mount
Currently we don't respect noauto/nofail root mount options (from
rootflags kernel cmdline). We should map these two flags to the
corresponding boolean variable noauto and nofail when calling
add_mount().
2013-08-09 02:04:51 +02:00
Tom Gundersen
689a97f523 udevd: respect the log-level set in /etc/udev/udev.conf
A regression introduced when we moved to systemd's logging is that the only
way to adjust the log-level of the udev daemon is via the env var, kernel
commandline or the commandline.

This reintroduces support for specifying this in the configuration file.
2013-08-09 01:38:17 +02:00
Ronny Chevalier
68eda4bd16 dbus: use _cleanup_free_ instead of freeing ourself 2013-08-08 00:21:33 -04:00
Kay Sievers
f058ccf2cd hwdb: update 2013-08-07 16:49:18 +02:00
Kay Sievers
1fab57c209 TODO: add hwdb timestamp check 2013-08-07 16:47:31 +02:00
Kay Sievers
0238cf7cda udev: hwdb - try reading modalias for usb before falling back to the composed one 2013-08-07 16:47:31 +02:00
Zbigniew Jędrzejewski-Szmek
0787758d26 hwdb: add GIGABYTE U2442 mute key to the force-release list
https://bugs.freedesktop.org/show_bug.cgi?id=67651
2013-08-07 08:35:19 -04:00
Christoph Junghans
4a792f4676 keymap: add HP EliteBook 2570p's wlan switch to hwdb
https://bugs.freedesktop.org/show_bug.cgi?id=66178
2013-08-06 23:15:42 -04:00
Zbigniew Jędrzejewski-Szmek
ebec5783c4 systemd: fix segv in snapshot creation
https://bugs.freedesktop.org/show_bug.cgi?id=67848
2013-08-06 21:30:48 -04:00
Zbigniew Jędrzejewski-Szmek
608c3dc569 journald: remove unused variable 2013-08-06 21:02:47 -04:00
Kay Sievers
cff452c7e9 TODO: add weird instance unit enable behavior 2013-08-06 15:05:41 +02:00
Harald Hoyer
04fefcddb8 journal: handle multiline syslog messages
Since the journal can handle multiple lines just well natively,
and rsyslog can be configured to handle them as well, there is no need
to truncate messages from syslog() after the first newline.

Reproducer:

1. Add following four lines to /etc/rsyslog.conf

   ----------
   $EscapeControlCharactersOnReceive off
   $ActionFileDefaultTemplate RSYSLOG_SysklogdFileFormat
   $SpaceLFOnReceive on
   $DropTrailingLFOnReception off
   ----------

3. Restart rsyslog
  # service rsyslog restart

4. Compile and run the following program

   ----------
   #include <stdio.h>
   #include <syslog.h>

   int main()
   {
    syslog(LOG_INFO, "aaa%caaa", '\n');
    return 0;
   }
   ----------

Actual results:
Below message appears in /var/log/messages.

   ----------
   Sep  7 19:19:39 localhost test2: aaa
   ----------

Expected results:
Below message, which worked prior to systemd-journald
appears in /var/log/messages.

   ----------
   Sep  7 19:19:39 localhost test2: aaa aaa

https://bugzilla.redhat.com/show_bug.cgi?id=855313
2013-08-06 12:58:17 +02:00
Michael Scherer
9cfda96440 man: fix typo in documentation of systemd-machined 2013-08-04 21:47:14 -04:00
Jan Engelhardt
d6ee7fa24f man: wording and grammar updates
This includes regularly-submitted corrections to comma setting and
orthographical mishaps that appeared in man/ in recent commits.
2013-08-04 21:46:27 -04:00
Daniel Schaal
0b5a519c89 systemd-delta: Only print colors when on a tty
This make systemd-delta follow the behaviour of systemctl
and journalctl.

https://bugs.freedesktop.org/show_bug.cgi?id=67656

[zj: unify color query methods between those three programs.]
2013-08-04 08:33:02 -04:00
Zbigniew Jędrzejewski-Szmek
92d700dea6 gitignore: add test-journal-init 2013-08-04 08:33:02 -04:00
Zbigniew Jędrzejewski-Szmek
692ec7c998 build-sys: link with librt if linking with libsd-daemon-int
In fba1ea0 'build: do not link everything with -lrt (and
therefore -pthread)' librt was removed from the list of
libraries. But libsd-daemon-internal also uses symbols from
librt and librt must thus be added everywhere where
libsd-daemon-interal is used, or otherwise linking might
fail:

/usr/bin/ld: ./.libs/libudev-core.a(sd-daemon.o): undefined reference to symbol 'mq_getattr@@GLIBC_2.3.4'
/usr/bin/ld: note: 'mq_getattr@@GLIBC_2.3.4' is defined in DSO /lib64/librt.so.1 so try adding it to the linker command line
2013-08-03 10:18:21 -04:00
Daniel Wallace
7eb942c408 zsh completion: add _kernel-install 2013-08-03 09:20:12 -04:00