chiark / gitweb /
elogind.git
11 years agotime-util: also rename FORMAT_TIMESTAMP_PRETTY → _MAX
Lennart Poettering [Fri, 23 Nov 2012 21:51:55 +0000 (22:51 +0100)]
time-util: also rename FORMAT_TIMESTAMP_PRETTY → _MAX

11 years agoutil: teach parse_timestamp() to parse results of format_timestamp_relative()
Lennart Poettering [Fri, 23 Nov 2012 21:20:15 +0000 (22:20 +0100)]
util: teach parse_timestamp() to parse results of format_timestamp_relative()

11 years agoutil: rename format_timestamp_pretty() to format_timestamp_relative() because that...
Lennart Poettering [Fri, 23 Nov 2012 21:12:59 +0000 (22:12 +0100)]
util: rename format_timestamp_pretty() to format_timestamp_relative() because that describes much better what it does

11 years agoutil: split off time related calls from util.[ch] into time-util.[ch]
Lennart Poettering [Fri, 23 Nov 2012 21:07:24 +0000 (22:07 +0100)]
util: split off time related calls from util.[ch] into time-util.[ch]

11 years agotest: extend calendarspec test a bit
Lennart Poettering [Fri, 23 Nov 2012 20:50:51 +0000 (21:50 +0100)]
test: extend calendarspec test a bit

11 years agotimedatectl: improve english language DST change texts a bit
Lennart Poettering [Fri, 23 Nov 2012 20:38:42 +0000 (21:38 +0100)]
timedatectl: improve english language DST change texts a bit

11 years agoupdate TODO
Lennart Poettering [Fri, 23 Nov 2012 20:38:15 +0000 (21:38 +0100)]
update TODO

11 years agotimer: implement calendar time events
Lennart Poettering [Fri, 23 Nov 2012 20:37:58 +0000 (21:37 +0100)]
timer: implement calendar time events

11 years agoman: clarify why User=/Group= don't work with mount units
Lennart Poettering [Fri, 23 Nov 2012 17:44:49 +0000 (18:44 +0100)]
man: clarify why User=/Group= don't work with mount units

11 years agojournal: fix SO_PASSSEC invocation
Lennart Poettering [Fri, 23 Nov 2012 17:35:24 +0000 (18:35 +0100)]
journal: fix SO_PASSSEC invocation

Spotted by Lukas Nykryn

11 years agoupdate TODO
Lennart Poettering [Fri, 23 Nov 2012 17:35:09 +0000 (18:35 +0100)]
update TODO

11 years agotimedatectl: show both current actual timezone name and UTC distance in TImezone...
Lennart Poettering [Fri, 23 Nov 2012 15:33:39 +0000 (16:33 +0100)]
timedatectl: show both current actual timezone name and UTC distance in TImezone field

11 years agotimedatctl: bring manual strftime in sync with format_timestamp()
Lennart Poettering [Fri, 23 Nov 2012 15:29:35 +0000 (16:29 +0100)]
timedatctl: bring manual strftime in sync with format_timestamp()

11 years agoutil: drop "," between week day and date when formatting timestamps
Lennart Poettering [Fri, 23 Nov 2012 15:24:59 +0000 (16:24 +0100)]
util: drop "," between week day and date when formatting timestamps

The glibc default (as shown by the command line tool "date") doesn't put a comma there,
and so we shouldn't either.

11 years agoudev: net_id - read ACPI _SUN -- slot user number
Kay Sievers [Fri, 23 Nov 2012 14:01:43 +0000 (15:01 +0100)]
udev: net_id - read ACPI _SUN  -- slot user number

11 years agocryptsetup-generator: state file name in error messages
Michal Schmidt [Fri, 23 Nov 2012 13:16:39 +0000 (14:16 +0100)]
cryptsetup-generator: state file name in error messages

11 years agocryptsetup-generator: use log_oom() everywhere
Michal Schmidt [Fri, 23 Nov 2012 13:16:34 +0000 (14:16 +0100)]
cryptsetup-generator: use log_oom() everywhere

11 years agoudev: path_id - handle Hyper-V devices
Hannes Reinecke [Fri, 23 Nov 2012 13:12:39 +0000 (14:12 +0100)]
udev: path_id - handle Hyper-V devices

Hyper-V has an abstract bus, which gets renumbered on guest
startup. So instead of the bus numbers we should be using
the device GUIDs, which can be retrieved from the 'device_id'
sysfs attribute.

11 years agoUpdate TODO to include splitting systemd-analyze.
David Strauss [Fri, 23 Nov 2012 09:51:41 +0000 (03:51 -0600)]
Update TODO to include splitting systemd-analyze.

The split should be into a lightweight collection tool that can run
with minimal dependencies and resources for server and embedded
systems. The analysis tool can pull in desktop-style dependencies
like Cairo and GTK.

11 years agoupdate TODO
Lennart Poettering [Thu, 22 Nov 2012 19:16:15 +0000 (20:16 +0100)]
update TODO

11 years agoupdate TODO
Lennart Poettering [Thu, 22 Nov 2012 00:56:24 +0000 (01:56 +0100)]
update TODO

11 years agotimedatectl: replace ",' with ':'
Kay Sievers [Thu, 22 Nov 2012 17:50:55 +0000 (18:50 +0100)]
timedatectl: replace ",' with ':'

11 years agotimedatectl: shorten output to print single < 80 char line
Kay Sievers [Thu, 22 Nov 2012 17:47:25 +0000 (18:47 +0100)]
timedatectl: shorten output to print single < 80 char line

11 years agoshared: FORMAT_TIMESTAMP_MAX +1
Kay Sievers [Thu, 22 Nov 2012 17:46:08 +0000 (18:46 +0100)]
shared: FORMAT_TIMESTAMP_MAX +1

5 is for weekday+comma+space, but week days in french have 4 digits

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

11 years agoreadahead: properly detect btrfs on SSD
Lennart Poettering [Thu, 22 Nov 2012 00:51:06 +0000 (01:51 +0100)]
readahead: properly detect btrfs on SSD

11 years agolocale: modernizations
Lennart Poettering [Thu, 22 Nov 2012 00:00:26 +0000 (01:00 +0100)]
locale: modernizations

11 years agodbus: introduce _cleanup_dbus_error_free_
Lennart Poettering [Wed, 21 Nov 2012 23:40:45 +0000 (00:40 +0100)]
dbus: introduce _cleanup_dbus_error_free_

11 years agomanager: introduce watch_init() initializer for watches
Lennart Poettering [Wed, 21 Nov 2012 23:38:55 +0000 (00:38 +0100)]
manager: introduce watch_init() initializer for watches

11 years agoautomount: modernizations
Lennart Poettering [Wed, 21 Nov 2012 02:10:49 +0000 (03:10 +0100)]
automount: modernizations

11 years agoupdate TODO
Lennart Poettering [Wed, 21 Nov 2012 02:10:26 +0000 (03:10 +0100)]
update TODO

11 years agonspawn: reset supplementary and main group id before entering nspawn
Lennart Poettering [Wed, 21 Nov 2012 01:58:55 +0000 (02:58 +0100)]
nspawn: reset supplementary and main group id before entering nspawn

11 years agocatalog: correct substitution
Lennart Poettering [Wed, 21 Nov 2012 17:54:46 +0000 (18:54 +0100)]
catalog: correct substitution

11 years agoupdate TODO
Lennart Poettering [Wed, 21 Nov 2012 17:54:28 +0000 (18:54 +0100)]
update TODO

11 years agocryptsetup: fix nofail support
Tom Gundersen [Wed, 21 Nov 2012 11:30:47 +0000 (12:30 +0100)]
cryptsetup: fix nofail support

This was documented in the man page and supported in the generator,
but systemd-cryptestup itself would fail with this option.

systemd-cryptsetup should ignore 'nofail', as it does with 'noauto'.

11 years agoAdd #ifdef guards around xattr usage
Henrik Grindal Bakken [Wed, 21 Nov 2012 09:36:56 +0000 (10:36 +0100)]
Add #ifdef guards around xattr usage

This adds #ifdef HAVE_ATTR_XATTR_H guards around all usage of xattr.
This unbreaks building with --disable-xattr when <attr/xattr.h> doesn't exist.
<attr/xattr.h> and usage of fsetxattr() without

11 years agomount: clarify that User= and Group= are useless with an explicit Type=
David Strauss [Wed, 21 Nov 2012 03:22:12 +0000 (19:22 -0800)]
mount: clarify that User= and Group= are useless with an explicit Type=

11 years agohwdb: fix usage
Tom Gundersen [Wed, 21 Nov 2012 01:47:48 +0000 (02:47 +0100)]
hwdb: fix usage

--create is not a valid option.

11 years agobuild-sys: add zsh completion bits to EXTRA_DIST v196
Lennart Poettering [Wed, 21 Nov 2012 01:19:20 +0000 (02:19 +0100)]
build-sys: add zsh completion bits to EXTRA_DIST

11 years agoupdate NEWS
Lennart Poettering [Wed, 21 Nov 2012 00:59:45 +0000 (01:59 +0100)]
update NEWS

11 years agobuild-sys: prepare 196
Lennart Poettering [Wed, 21 Nov 2012 00:37:11 +0000 (01:37 +0100)]
build-sys: prepare 196

11 years agoupdate TODO
Lennart Poettering [Tue, 20 Nov 2012 23:33:37 +0000 (00:33 +0100)]
update TODO

11 years agojournal: by default do not decompress dat objects larger than 64K
Lennart Poettering [Tue, 20 Nov 2012 23:28:00 +0000 (00:28 +0100)]
journal: by default do not decompress dat objects larger than 64K

This introduces a new data threshold setting for sd_journal objects
which controls the maximum size of objects to decompress. This is
relieves the library from having to decompress full data objects even
if a client program is only interested in the initial part of them.

This speeds up "systemd-coredumpctl" drastically when invoked without
parameters.

11 years agojournal: document new catalog APIs
Lennart Poettering [Tue, 20 Nov 2012 21:09:09 +0000 (22:09 +0100)]
journal: document new catalog APIs

11 years agojournal: add sd_journal_get_catalog_for_message_id() as API to get catalog entry...
Lennart Poettering [Tue, 20 Nov 2012 20:38:59 +0000 (21:38 +0100)]
journal: add sd_journal_get_catalog_for_message_id() as API to get catalog entry for any message ID without requiring an open journal file

11 years agoupdate TODO
Lennart Poettering [Tue, 20 Nov 2012 20:33:49 +0000 (21:33 +0100)]
update TODO

11 years agojournal-send: always send SYSLOG_IDENTIFIER, if we have it
Lennart Poettering [Tue, 20 Nov 2012 20:25:26 +0000 (21:25 +0100)]
journal-send: always send SYSLOG_IDENTIFIER, if we have it

https://bugzilla.redhat.com/show_bug.cgi?id=872193

11 years agojournal-send: unify a bit of code
Lennart Poettering [Tue, 20 Nov 2012 20:22:18 +0000 (21:22 +0100)]
journal-send: unify a bit of code

11 years agobuild-sys: add symlink Makefile to catalog/ too
Lennart Poettering [Tue, 20 Nov 2012 19:31:01 +0000 (20:31 +0100)]
build-sys: add symlink Makefile to catalog/ too

11 years agoupdate TODO
Lennart Poettering [Tue, 20 Nov 2012 19:30:30 +0000 (20:30 +0100)]
update TODO

11 years agounit: link up getty configuration from man page and unit files
Lennart Poettering [Tue, 20 Nov 2012 19:09:38 +0000 (20:09 +0100)]
unit: link up getty configuration from man page and unit files

11 years agocatalog: add mission statement
Lennart Poettering [Tue, 20 Nov 2012 01:18:47 +0000 (02:18 +0100)]
catalog: add mission statement

11 years agobuild-sys: make loadable module support optional
Tom Gundersen [Tue, 20 Nov 2012 00:24:32 +0000 (01:24 +0100)]
build-sys: make loadable module support optional

kmod is unecessary if loadable module support is disabled in the kernel,
so make the dependency optional.

11 years agobuild-sys: fix sysvcompat handling in distcheck
Tom Gundersen [Tue, 20 Nov 2012 17:19:44 +0000 (18:19 +0100)]
build-sys: fix sysvcompat handling in distcheck

Distcheck would fail due to sysvinit dir being set,
but not sysvrcnd dir:

 # ./configure --enable-gtk-doc --with-sysvrcd-path=/etc/rc.d
 # --with-sysvinit-path=/etc/rc.d
 # make distcheck
 ...
 configure: error: *** You need both --with-sysvinit-path=PATH and
--with-sysvrcd-path=PATH to enable SysV compatibility support, or both
empty to disable it.
make: *** [distcheck] Error 1

This also allows sysvcompat support to be disabled from distcheck.

11 years agoupdate TODO
Lennart Poettering [Tue, 20 Nov 2012 18:13:54 +0000 (19:13 +0100)]
update TODO

11 years agoupdate TODO
Lennart Poettering [Tue, 20 Nov 2012 18:11:55 +0000 (19:11 +0100)]
update TODO

11 years agodbus-common: Add helper method to handle no-reply messages
Colin Walters [Tue, 30 Oct 2012 19:38:32 +0000 (15:38 -0400)]
dbus-common: Add helper method to handle no-reply messages

[Tested in latest gnome-ostree; if accepted, I'll look at a followup
 patch which fixes the other dbus_connection_send(reply, ...) calls
 besides logind]

DBus messages can have a flag NO_REPLY associated that means "I don't
need a reply".  This is for efficiency reasons - for one-off requests
that can't return an error, etc.

However, it's up to users to manually check
dbus_message_get_no_reply() from a message.  libdbus will happily send
out a reply if you don't.

Unfortunately, doing so is not just less efficient - it also triggers
a security error, for complex reasons.  This is something that will
eventually be fixed in dbus, but it's also correct to handle it in
client applications.

This new helper API is slightly nicer in that you don't have to pass
NULL to say you don't want a reply serial for your reply.

This patch also tweaks logind to use the API - there are more areas of
the code that need this treatment too.

11 years agoudev: net - add device naming properties
Kay Sievers [Tue, 20 Nov 2012 17:10:45 +0000 (18:10 +0100)]
udev: net - add device naming properties

11 years agoshell-completion: udev - add net_id
Kay Sievers [Tue, 20 Nov 2012 17:08:48 +0000 (18:08 +0100)]
shell-completion: udev - add net_id

11 years agolibudev: do not resolve $attr{device} symlinks
Kay Sievers [Tue, 20 Nov 2012 17:07:57 +0000 (18:07 +0100)]
libudev: do not resolve $attr{device} symlinks

11 years agoudev: fix whitespace
Kay Sievers [Tue, 20 Nov 2012 17:07:14 +0000 (18:07 +0100)]
udev: fix whitespace

11 years agohwdb: update
Kay Sievers [Tue, 20 Nov 2012 01:07:02 +0000 (02:07 +0100)]
hwdb: update

11 years agocatalog: Spell out microseconds
Nis Martensen [Sat, 17 Nov 2012 13:40:05 +0000 (14:40 +0100)]
catalog: Spell out microseconds

Also fix some English in a German translation

11 years agojournald: fix bad memory access
Lennart Poettering [Mon, 19 Nov 2012 23:19:27 +0000 (00:19 +0100)]
journald: fix bad memory access

https://bugzilla.redhat.com/show_bug.cgi?id=875653

11 years agosocket: improve error message when we cannot spawn the socket's service unit
Lennart Poettering [Mon, 19 Nov 2012 23:19:00 +0000 (00:19 +0100)]
socket: improve error message when we cannot spawn the socket's service unit

11 years agoupdate TODO
Lennart Poettering [Mon, 19 Nov 2012 23:18:22 +0000 (00:18 +0100)]
update TODO

11 years agoupdate TODO
Lennart Poettering [Sun, 18 Nov 2012 22:32:09 +0000 (23:32 +0100)]
update TODO

11 years agocore/load-fragment: fix (potential) bad memory access
Zbigniew Jędrzejewski-Szmek [Mon, 19 Nov 2012 15:36:38 +0000 (16:36 +0100)]
core/load-fragment: fix (potential) bad memory access

strncmp() could be used with size bigger then the size of the string,
because MAX was used instead of MIN.

If failing, print just the offending mount flag.

11 years agocore/load-fragment: be more precise in error messages
Zbigniew Jędrzejewski-Szmek [Mon, 19 Nov 2012 15:02:45 +0000 (16:02 +0100)]
core/load-fragment: be more precise in error messages

Whenever a message fails, mention the offending word, instead
of just giving the whole line. If one bad word causes just this
word to be rejected, print only the word. If one bad word causes
the whole line to be rejected, print the whole line too.

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

11 years agoshared/utils: systemd-cgls shows 'n/a' when piping output
Anders Olofsson [Mon, 19 Nov 2012 14:25:36 +0000 (15:25 +0100)]
shared/utils: systemd-cgls shows 'n/a' when piping output

-1 was used to signal failure, but the type was unsigned.

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

11 years agojournalctl: add option to forgo ellipsization
Zbigniew Jędrzejewski-Szmek [Sat, 17 Nov 2012 14:27:59 +0000 (15:27 +0100)]
journalctl: add option to forgo ellipsization

Sometimes it is better to see messages in full, and the existing
set of options didn't allow this easily. E.g. now

  journalctl -f --full

will behave like

  tail -f /var/log/messages

of yore.

Long option only for now, since small letters are becoming
scarce, and this doesn't feel like a capital-letter-option.
'-u' would be nice, and the above command would be spelled

  journalctl -fu

11 years agohwdb: revert hwdb.bin back to /etc/udev
Zbigniew Jędrzejewski-Szmek [Sat, 17 Nov 2012 00:48:06 +0000 (01:48 +0100)]
hwdb: revert hwdb.bin back to /etc/udev

> Kay:
udev is early boot without /var. /var is entirely taboo for udev.

This partially reverts commit ee623f0d0c04a9c8da4953ddc29862c8c4945458
(moving hwdb.bin is reverted, but the uninstall hook and cosmetic
changes remain).

11 years agocatalog: typo fixes
Thomas Hindoe Paaboel Andersen [Sat, 17 Nov 2012 00:31:47 +0000 (01:31 +0100)]
catalog: typo fixes

11 years agoshell-completion: add catalog options
Zbigniew Jędrzejewski-Szmek [Fri, 16 Nov 2012 22:41:58 +0000 (23:41 +0100)]
shell-completion: add catalog options

11 years agorpm: udevadm is actually in bindir
Zbigniew Jędrzejewski-Szmek [Fri, 16 Nov 2012 22:19:35 +0000 (23:19 +0100)]
rpm: udevadm is actually in bindir

11 years agohwdb: use $(localstatedir)/lib/udev/hwdb.bin for the binary database
Zbigniew Jędrzejewski-Szmek [Fri, 16 Nov 2012 22:10:13 +0000 (23:10 +0100)]
hwdb: use $(localstatedir)/lib/udev/hwdb.bin for the binary database

It's not configuration, so it doesn't belong in udev.

Also, remove the catalog when uninstalling udev.

11 years agojournal: use $(localstatedir)/lib/systemd/catalog for the catalog
Zbigniew Jędrzejewski-Szmek [Fri, 16 Nov 2012 22:08:27 +0000 (23:08 +0100)]
journal: use $(localstatedir)/lib/systemd/catalog for the catalog

The path doesn't change in the standard configuration.

Also, give full path to the journalctl binary in the hook,
since it might be installed outside of $PATH.

Also, add uninstall hook to remove the binary catalog.

11 years agojournal, shared: fix warnings during compilation on 32 bits
Zbigniew Jędrzejewski-Szmek [Fri, 16 Nov 2012 16:17:21 +0000 (17:17 +0100)]
journal, shared: fix warnings during compilation on 32 bits

Some filesystem magics are too big to fit in 31 bits,
and are wrapped to negative. f_type is an int on 32 bits, so
it is signed, and we get a warning on comparison.

11 years agoupdate TODO
Lennart Poettering [Fri, 16 Nov 2012 19:01:50 +0000 (20:01 +0100)]
update TODO

11 years agorpm: update RPM macros to include definitions for more drop-in directories and for...
Lennart Poettering [Fri, 16 Nov 2012 18:54:19 +0000 (19:54 +0100)]
rpm: update RPM macros to include definitions for more drop-in directories and for reloading/rebuilding configuration

More specifically this adds a number of macros that resolve to
directories for udev rules, hwdb entries, tmpfiles and sysctl.

Thsi also includes three new macros for rebuilding the hwbd/catalog
index when a package drops in new files

11 years agojournal: catalog - silent output, it's usually only called by package management
Kay Sievers [Fri, 16 Nov 2012 18:34:53 +0000 (19:34 +0100)]
journal: catalog - silent output, it's usually only called by package management

11 years agoservice: drop support for SysV scripts for the early boot
Lennart Poettering [Fri, 16 Nov 2012 17:46:36 +0000 (18:46 +0100)]
service: drop support for SysV scripts for the early boot

This remove distro-specific support for early-boot SysV init scripts.
(And leaves support for normal SysV scripts untouched).

If distributions wish to continue to allow early-boot SysV scripts in
their distribution-specific way they should either maintain this patch
downstream manually, or write a generator for them, or simply ship all
those scripts with a .service wrapper.

11 years agoumount: always remount read-only before unmounting in final shutdown loop
Lennart Poettering [Fri, 16 Nov 2012 17:36:28 +0000 (18:36 +0100)]
umount: always remount read-only before unmounting in final shutdown loop

11 years agoswitch-root: try pivot_root() before overmounting /
Lennart Poettering [Fri, 16 Nov 2012 17:15:30 +0000 (18:15 +0100)]
switch-root: try pivot_root() before overmounting /

We should always try to umount the old root dir if possible, instead of
overmounting it -- if that's possible.

The initial ("first") kernel rootfs can never be umounted, hence
for the usual nitrd case we never bothered using pivot_root() and
hence with fully unmounting it. However, fedup now tranisitions twice
during boot, and in that case it is highly desirable that the "second"
root dir is entirely unmounted when we switch to the "third". This patch
makes that possible.

The pivot_root() needs a directory in the "third" root dir, to move the
"second" root dir to. We use /mnt for that, under the assumption that
this directory is likely to exist, and is not itself a mount point.

11 years agobuild-sys: udev - create hwdb with make install
Kay Sievers [Fri, 16 Nov 2012 16:58:31 +0000 (17:58 +0100)]
build-sys: udev - create hwdb with make install

11 years agohwdb: update
Kay Sievers [Fri, 16 Nov 2012 16:08:20 +0000 (17:08 +0100)]
hwdb: update

11 years agoudev: firmware - disable firmware loading when firmware file is 0 byte
Umut Tezduyar [Fri, 16 Nov 2012 16:07:19 +0000 (17:07 +0100)]
udev: firmware - disable firmware loading when firmware file is 0 byte

If firmware file is not found in the file system, udev
terminates firmware loading. This is not the case if
firmware file exists in the file system but doesn't have
any data in it.

11 years agobuild-sys: fix catalog-update-hook with older systemd
Zbigniew Jędrzejewski-Szmek [Fri, 16 Nov 2012 12:53:32 +0000 (13:53 +0100)]
build-sys: fix catalog-update-hook with older systemd

The hook would fail if preexisting journalctl doesn't support
--update-catalog. Also, the catalog would be updated before new
catalog files were installed. Both issues are fixed by moving to
INSTALL_DATA_HOOK instead of INSTALL_EXEC_HOOK, since the hook is now
executed after both journalctl and catalog files are installed.

11 years agobuild-sys: update catalog on installation
Zbigniew Jędrzejewski-Szmek [Fri, 16 Nov 2012 10:00:49 +0000 (11:00 +0100)]
build-sys: update catalog on installation

11 years agojournalctl: better error messages for --update-catalog
Zbigniew Jędrzejewski-Szmek [Fri, 16 Nov 2012 09:28:06 +0000 (10:28 +0100)]
journalctl: better error messages for --update-catalog

Also add informational message about catalog size.

11 years agocatalog: fix typo
Lennart Poettering [Fri, 16 Nov 2012 02:04:56 +0000 (03:04 +0100)]
catalog: fix typo

11 years agoman: link up journalctl man page with developer documenation
Lennart Poettering [Fri, 16 Nov 2012 02:04:08 +0000 (03:04 +0100)]
man: link up journalctl man page with developer documenation

11 years agojournal: recommend journalctl -x more often
Lennart Poettering [Fri, 16 Nov 2012 02:03:54 +0000 (03:03 +0100)]
journal: recommend journalctl -x more often

11 years agoupdate TODO
Lennart Poettering [Fri, 16 Nov 2012 02:03:30 +0000 (03:03 +0100)]
update TODO

11 years agocatalog: add catalog entries for all of systemd's own journal messages
Lennart Poettering [Fri, 16 Nov 2012 02:03:22 +0000 (03:03 +0100)]
catalog: add catalog entries for all of systemd's own journal messages

11 years agoupdate TODO
Lennart Poettering [Fri, 16 Nov 2012 00:36:29 +0000 (01:36 +0100)]
update TODO

11 years agojournal: extend catalog header to 64bit for all fields, just to be safe and follow...
Lennart Poettering [Fri, 16 Nov 2012 00:34:53 +0000 (01:34 +0100)]
journal: extend catalog header to 64bit for all fields, just to be safe and follow the rest of the file formats

11 years agoshutdown: readd explicit sync() when shutting down
Lennart Poettering [Fri, 16 Nov 2012 00:30:29 +0000 (01:30 +0100)]
shutdown: readd explicit sync() when shutting down

As it turns out reboot() doesn't actually imply a file system sync, but
only a disk sync. Accordingly, readd explicit sync() invocations
immediately before we invoke reboot().

This is much less dramatic than it might sounds as we umount all
disks/read-only remount them anyway before going down.

11 years agoudev: make blkid optional
Anders Olofsson [Fri, 16 Nov 2012 00:17:18 +0000 (01:17 +0100)]
udev: make blkid optional

I'm building systemd for an embedded system and we would prefer not having
to include the entire util-linux package just to get a libblkid whose
functionality we don't need.

11 years agojournal: implement message catalog
Lennart Poettering [Thu, 15 Nov 2012 22:03:31 +0000 (23:03 +0100)]
journal: implement message catalog

The message catalog can be used to attach short help texts to log lines,
keyed by their MESSAGE_ID= fields. This is useful to help the
administrator understand the context and cause of a message, find
possible solutions and find further related documentation.

Since this is keyed off MESSAGE_ID= this will only work for native
journal messages.

The message catalog supports i18n, and is useful to augment english
language system messages with explanations in the local language.

This commit only includes short explanatory messages for a few example
message IDs, we'll add more complete documentation for the relevant
systemd messages later on.

11 years agohostnamectl: fix parsing of --no-ask-password
Lennart Poettering [Thu, 15 Nov 2012 21:47:04 +0000 (22:47 +0100)]
hostnamectl: fix parsing of --no-ask-password