Lennart Poettering [Thu, 7 Mar 2013 19:46:35 +0000 (20:46 +0100)]
update TODO
Lennart Poettering [Thu, 7 Mar 2013 19:46:27 +0000 (20:46 +0100)]
update NEWS
Nathaniel Chen [Thu, 7 Mar 2013 19:09:16 +0000 (11:09 -0800)]
bootchart: use _cleanup_close_
use _cleanup_{close_,fclose_} to close streams and file descriptors
Nathaniel Chen [Thu, 7 Mar 2013 19:06:58 +0000 (11:06 -0800)]
core: mount and initialize Smack
SMACK is the Simple Mandatory Access Control Kernel, a minimal
approach to Access Control implemented as a kernel LSM.
The kernel exposes the smackfs filesystem API through which access
rules can be loaded. At boot time, we want to load the access rules
as early as possible to ensure all early boot steps are checked by Smack.
This patch mounts smackfs at the new location at /sys/fs/smackfs for
kernels 3.8 and above. The /smack mountpoint is not supported.
After mounting smackfs, rules are loaded from the usual location.
For more information about Smack see:
http://www.kernel.org/doc/Documentation/security/Smack.txt
Nathaniel Chen [Thu, 7 Mar 2013 19:06:57 +0000 (11:06 -0800)]
core: move mount_setup_early() to main.c
move mount_setup_early() call to main.c, before security module setup,
so there are no more repeat calls.
Kay Sievers [Thu, 7 Mar 2013 19:44:26 +0000 (20:44 +0100)]
NEWS: update
Kay Sievers [Thu, 7 Mar 2013 19:39:12 +0000 (20:39 +0100)]
TODO: update
Lennart Poettering [Thu, 7 Mar 2013 19:25:12 +0000 (20:25 +0100)]
update NEWS
Kay Sievers [Thu, 7 Mar 2013 18:42:51 +0000 (19:42 +0100)]
hwdb: update
Zbigniew Jędrzejewski-Szmek [Thu, 7 Mar 2013 18:04:17 +0000 (13:04 -0500)]
build-sys: check if manpage ids match file names
Commit ed1553a fixed current errors, but this error is easy to
make. A wrong id messes up the indexes and linking, so it is
better to catch this automatically.
Zbigniew Jędrzejewski-Szmek [Thu, 7 Mar 2013 17:41:22 +0000 (12:41 -0500)]
TODO: python stuff and freeze and standby
Lennart Poettering [Thu, 7 Mar 2013 17:39:06 +0000 (18:39 +0100)]
core: don't complain about systemd.journald.xxx kernel command line arguments in PID 1
https://bugzilla.redhat.com/show_bug.cgi?id=880025
Zbigniew Jędrzejewski-Szmek [Thu, 7 Mar 2013 16:29:01 +0000 (11:29 -0500)]
systemd-python: update documentation for new systemd-journal group
Zbigniew Jędrzejewski-Szmek [Thu, 7 Mar 2013 16:28:44 +0000 (11:28 -0500)]
systemd-python: refuse path and flags together in __init__
It's better to explictly check, instead of just documenting it.
The return value from init is changed from 1 to -1 on error.
Python seems to ignore 1 every second time. Looks like a bug
in Python, but the return value doesn't seem to be documented
anywhere, and -1 works as expected... so let's just use that.
Zbigniew Jędrzejewski-Szmek [Thu, 7 Mar 2013 15:15:20 +0000 (10:15 -0500)]
build-sys: force creation of symlink
For some reason make sometimes wants to rerun this, and
ln would refuse to recreate the link.
Lennart Poettering [Thu, 7 Mar 2013 15:48:14 +0000 (16:48 +0100)]
logind: don't hit an assert if an close() on an input device fd fails with ENODEV because the device is gone
https://bugzilla.redhat.com/show_bug.cgi?id=907890
Lukas Nykryn [Thu, 7 Mar 2013 15:09:20 +0000 (16:09 +0100)]
systemctl: mangle unit name in is-enabled
https://bugs.freedesktop.org/show_bug.cgi?id=56072
https://bugzilla.redhat.com/show_bug.cgi?id=880353
Harald Hoyer [Thu, 7 Mar 2013 15:19:38 +0000 (16:19 +0100)]
bootchart: document -C, --cmdline parameter
Harald Hoyer [Thu, 7 Mar 2013 07:52:56 +0000 (08:52 +0100)]
bootchart: use _cleanup_fclose_
Harald Hoyer [Thu, 7 Mar 2013 07:52:55 +0000 (08:52 +0100)]
bootchart: rename global len to samples_len
Harald Hoyer [Thu, 7 Mar 2013 07:52:54 +0000 (08:52 +0100)]
bootchart: add parameter "-C" to expand process names to the full cmdline
Jan Janssen [Thu, 7 Mar 2013 14:12:46 +0000 (15:12 +0100)]
util: Fix grammar in comment
Jan Janssen [Thu, 7 Mar 2013 14:12:45 +0000 (15:12 +0100)]
man: Unify title for configuration files
Jan Janssen [Thu, 7 Mar 2013 14:12:44 +0000 (15:12 +0100)]
man: Fix id attributes
Lennart Poettering [Thu, 7 Mar 2013 14:59:26 +0000 (15:59 +0100)]
virt: check for /sys/hypervisor/type for detecting xen PV
https://bugs.freedesktop.org/show_bug.cgi?id=61491
Lennart Poettering [Thu, 7 Mar 2013 12:34:07 +0000 (13:34 +0100)]
nspawn: create a separate devpts namespace for nspawn containers
Harald Hoyer [Thu, 7 Mar 2013 08:27:59 +0000 (09:27 +0100)]
man/kernel-install.xml: fix paths to reflect actual behaviour
Zbigniew Jędrzejewski-Szmek [Thu, 7 Mar 2013 05:40:30 +0000 (00:40 -0500)]
libsystemd-journal: return 0 on success in get_data()
The man page says so. Right now 0 would be returned if the data was encrypted,
1 otherwise.
Zbigniew Jędrzejewski-Szmek [Thu, 7 Mar 2013 05:35:28 +0000 (00:35 -0500)]
systemd-python: export sd_j_get_fd, sd_j_reliable_fd, sd_j_close
sd_journal_get_fd(j) is called j.fileno(), for compatiblity with
Python conventions for file-like objects.
More importantly, those new .seek_head() and .seek_tail() do not
call .get_next(). This is better, if one wants to skip before
retrieving an entry.
Zbigniew Jędrzejewski-Szmek [Thu, 7 Mar 2013 05:26:24 +0000 (00:26 -0500)]
systemd-python: split .seek() into .seek_head() and .seek_tail()
This way python code follows the original interface more closely.
Also, .seek(0, journal.SEEK_END) was just to much to type.
Zbigniew Jędrzejewski-Szmek [Thu, 7 Mar 2013 03:15:46 +0000 (22:15 -0500)]
systemd-python: catch only ValueErrors in conversion code
First of all, 'try: ... except: ...' (with no exception specified) is
always a no-no, since it catches all BaseExceptions, which includes ^C
and other stuff which should almost never be caught.
Now the conversion is stricter, and only one conversion is attempted,
and only a ValueEror is caught. It seems reasonable to catch ValueErrors,
since the entries in the journal are not verified, and any erroneous
application might log a field which cannot be converted. The consumer
of events must only check if a field is an instance of bytes and can
otherwise assume that the conversion was performed correctly.
Order of arguments in Reader.__init__ has been changed to match order
in _Reader.__init__.
Conversions have been updated to work under Python 2 and 3.
Zbigniew Jędrzejewski-Szmek [Wed, 6 Mar 2013 22:07:42 +0000 (17:07 -0500)]
man: fix compilation of example
Michael Biebl [Wed, 6 Mar 2013 22:24:31 +0000 (23:24 +0100)]
service: sysv - properly handle init scripts with .sh suffix
Dropping the distribution specific #ifdefs in
88516c0c952b9502e8ef1d6a1481af61b0fb422d broke the .sh suffix stripping
since we now always used the else clause of the rc. check.
We eventually want to drop the rc. prefix stripping, but for now we
assume that no sysv init script uses both an rc. prefix and .sh suffix,
so make the check for the .sh suffix and rc. prefix mutually exclusive.
Zbigniew Jędrzejewski-Szmek [Wed, 6 Mar 2013 18:19:45 +0000 (13:19 -0500)]
libsystemd-journal: export new function, increase library version
Since sd_journal_reliable_fd wasn't exported before, it is as if
it was added now. Library "current" number must be bumped.
michich> Someone links with the fixed version and produces a RPM with
his program. The RPM will happily install on a system with an
old systemd version (the deps will appear fine), but the
program will fail to run.
Kay Sievers [Wed, 6 Mar 2013 19:01:45 +0000 (20:01 +0100)]
README: more CONFIG_* updates
Kay Sievers [Wed, 6 Mar 2013 18:51:52 +0000 (19:51 +0100)]
README: remove CONFIG_HOTPLUG, add CONFIG_NET
Kay Sievers [Wed, 6 Mar 2013 18:36:39 +0000 (19:36 +0100)]
README: add kernel config options
Zbigniew Jędrzejewski-Szmek [Wed, 6 Mar 2013 17:17:37 +0000 (12:17 -0500)]
journal: properly advertise sd_journal_reliable_fd
sd_journal_reliable_fd was added in
85210bffd836, but it was
exported under the wrong name. Not too many users I guess.
Zbigniew Jędrzejewski-Szmek [Wed, 6 Mar 2013 17:01:59 +0000 (12:01 -0500)]
build-sys: add missing $
Fixup for
25ee45f99.
Lennart Poettering [Wed, 6 Mar 2013 16:48:42 +0000 (17:48 +0100)]
core: add missing comma for NonewPrivileges=
https://bugzilla.redhat.com/show_bug.cgi?id=917404
Simon McVittie [Thu, 7 Feb 2013 21:14:56 +0000 (21:14 +0000)]
bus: Escape environment-based D-Bus addresses properly
If XDG_RUNTIME_DIR contains a character like ":" (for instance if it's
formed from an X11 display name), then it isn't valid to substitute
it into a D-Bus address without escaping.
http://bugs.freedesktop.org/show_bug.cgi?id=60499
Enrico Scholz [Sat, 2 Mar 2013 16:31:53 +0000 (17:31 +0100)]
manager: remove timer fd explicitly from epoll
Forked processes can keep the old fd alive triggering epoll over and
over again else.
https://bugs.freedesktop.org/show_bug.cgi?id=61697
Tom Gundersen [Tue, 5 Mar 2013 06:56:47 +0000 (15:56 +0900)]
main: ISOLATE rather than REPLACE default.target
This allows switch-root to work correctly if a unit is active both before and
after the switch-root, but its dependencies change. Before the patch, any
dependencies added to active units by switch-root will not be pulled, in
particular filesystems configured in /etc/fstab would not be activated if
local-fs.target was active in the initrd.
It is not clear to me if there is a bug in the REPLACE handling, or if it is
working as expected and that we really want to use ISOLATE instead as this patch
does.
Lennart Poettering [Wed, 6 Mar 2013 14:39:27 +0000 (15:39 +0100)]
update TODO
Ryan Lortie [Mon, 4 Mar 2013 21:35:02 +0000 (16:35 -0500)]
timedated: add CanNTP property
If we can't successfully query any ntpd units, set CanNTP to false.
GNOME wants to use this to grey out the NTP switch in the UI.
https://bugs.freedesktop.org/show_bug.cgi?id=61816
Harald Hoyer [Thu, 14 Feb 2013 11:52:24 +0000 (12:52 +0100)]
units: run systemd-ask-password-console.service after systemd-vconsole-setup.service
Harald Hoyer [Wed, 6 Mar 2013 10:02:35 +0000 (11:02 +0100)]
initrd-parse-etc.servic: force start local-fs.target
Harald Hoyer [Tue, 5 Mar 2013 07:16:15 +0000 (08:16 +0100)]
Revert "add initrd-fs.target and initrd-fs-pre.target"
This reverts commit
39b83cdab37623a546344622db9bbbc784c15df5.
Harald Hoyer [Tue, 5 Mar 2013 07:16:06 +0000 (08:16 +0100)]
Revert "units/initrd-*: require initrd-fs.target rather than local-fs.target"
This reverts commit
7d89ce303fb59743a4392eeb3110c00f100172ca.
Zbigniew Jędrzejewski-Szmek [Wed, 6 Mar 2013 04:23:09 +0000 (23:23 -0500)]
systemd-python: fix error check in _Reader.wait()
Zbigniew Jędrzejewski-Szmek [Wed, 6 Mar 2013 02:43:06 +0000 (21:43 -0500)]
journal/tests: free allocated memory in test
Daniel Wallace [Tue, 5 Mar 2013 19:32:09 +0000 (14:32 -0500)]
zsh-completion: journalctl query by binary and device
implement
1883552c3d8 from bash completion in zsh-completion
Nathaniel Chen [Tue, 5 Mar 2013 19:46:34 +0000 (11:46 -0800)]
hostnamed: allow more special characters in pretty hostname
this addresses the bug at:
https://bugs.freedesktop.org/show_bug.cgi?id=59311
https://bugzilla.redhat.com/show_bug.cgi?id=895299
hostnamectl is supposed to allow a range of special characters for
the 'pretty' hostname:
$ hostnamectl set-hostname --pretty "Nathaniels Desktop !@#$%"
..however, it rejects apostrophes, double quotes, and backslashes.
The manual for hostnamectl suggests that this should be allowed.
It makes sense to reject \0, \n, etc. pretty_string_is_safe() is
the same as string_is_safe(), but allows more special characters.
Lennart Poettering [Tue, 5 Mar 2013 18:58:32 +0000 (19:58 +0100)]
util: properly escape corner cases in bus_path_escape(), too
This follows the suggestions from:
http://lists.freedesktop.org/archives/systemd-devel/2013-March/009363.html
Kay Sievers [Tue, 5 Mar 2013 18:32:36 +0000 (19:32 +0100)]
inhibit: print --list if no argument is given
Michael Biebl [Tue, 5 Mar 2013 18:19:26 +0000 (19:19 +0100)]
Fix typos
Lennart Poettering [Tue, 5 Mar 2013 18:15:31 +0000 (19:15 +0100)]
journal: make gatewayd run under its own user ID
Kay Sievers [Tue, 5 Mar 2013 18:04:48 +0000 (19:04 +0100)]
README: add udev goups
Lennart Poettering [Tue, 5 Mar 2013 17:59:14 +0000 (18:59 +0100)]
update TODO
Lennart Poettering [Tue, 5 Mar 2013 17:53:21 +0000 (18:53 +0100)]
journald: introduce new "systemd-journal" group and make it own the journal files
Previously all journal files were owned by "adm". In order to allow
specific users to read the journal files without granting it access to
the full "adm" powers, introduce a new specific group for this.
"systemd-journal" has to be created by the packaging scripts manually at
installation time. It's a good idea to assign a static UID/GID to this
group, since /var/log/journal might be shared across machines via NFS.
This commit also grants read access to the journal files by default to
members of the "wheel" and "adm" groups via file system ACLs, since
these "almost-root" groups should be able to see what's going on on the
system. These ACLs are created by "make install". Packagers probably
need to duplicate this logic in their postinst scripts.
This also adds documentation how to grant access to the journal to
additional users or groups via fs ACLs.
Lennart Poettering [Tue, 5 Mar 2013 14:02:38 +0000 (15:02 +0100)]
journald: stpcpy() + mempcpy() are awesome
Lennart Poettering [Tue, 5 Mar 2013 13:36:57 +0000 (14:36 +0100)]
journald: drop splitting-by-audit entirely
Thinking about it we should probably not hide bugs by falling back to
audit when we have our own session information anyway.
Lennart Poettering [Tue, 5 Mar 2013 13:27:34 +0000 (14:27 +0100)]
journald: be a bit more careful when spitting up journals by user id
Lennart Poettering [Tue, 5 Mar 2013 13:23:22 +0000 (14:23 +0100)]
journald: check session owner UID rather then audit ID when splitting up journal files
We should always go by our own cgroup hierarchy before using foreign
schemes such as audit, so let's do that for the split out logic too.
Harald Hoyer [Tue, 5 Mar 2013 05:45:06 +0000 (06:45 +0100)]
Revert "fstab-generator: place initrd /sysroot mounts in initrd-fs.target"
This reverts commit
8330847e949fc0c26b16910e5240eef1fe2c330a.
Conflicts:
src/fstab-generator/fstab-generator.c
Lennart Poettering [Tue, 5 Mar 2013 03:10:19 +0000 (04:10 +0100)]
update TODO
Lennart Poettering [Tue, 5 Mar 2013 02:29:54 +0000 (03:29 +0100)]
logind: when registering a new session always use previous session info from cgroup path rather than audit
Previously for cases like "su" or "sudo" where a session is attempted to
be created from within an existing one we used the audit session ID to
detect this and in such a case we simple returned the session data of
the original session a second time.
With this change we will now use the cgroup path of the calling path to
determine the old session, i.e. we only rely on our own session
identification scheme, instead of audits.
We will continue to keep the audit session ID and ours in sync however,
to avoid unnecessary confusion.
Michael Biebl [Mon, 4 Mar 2013 22:20:16 +0000 (23:20 +0100)]
build-sys: build and install systemd-coredumpctl conditionally
If coredump support is disabled via --disable-coredump, do not build and
install the systemd-coredumpctl binary and man page.
Harald Hoyer [Mon, 4 Mar 2013 20:00:56 +0000 (21:00 +0100)]
fstab-generator: only handle block devices with root= kernel command line parameter
skip s.th. like root=nfs:... root=iscsi:... root=nbd:...
Harald Hoyer [Mon, 4 Mar 2013 18:04:32 +0000 (19:04 +0100)]
fstab-generator: place initrd /sysroot mounts in initrd-fs.target
also do not overwrite /sysroot*.mount units already generated from fstab
Harald Hoyer [Mon, 4 Mar 2013 18:03:05 +0000 (19:03 +0100)]
units/initrd-*: require initrd-fs.target rather than local-fs.target
Harald Hoyer [Mon, 4 Mar 2013 18:01:05 +0000 (19:01 +0100)]
add initrd-fs.target and initrd-fs-pre.target
Zbigniew Jędrzejewski-Szmek [Mon, 4 Mar 2013 18:16:38 +0000 (13:16 -0500)]
build-sys: do not install pam_systemd(8) without PAM
Zbigniew Jędrzejewski-Szmek [Mon, 4 Mar 2013 17:57:12 +0000 (12:57 -0500)]
build-sys: do not install logind manpages when disabled
The condition was wrong: HAVE_PAM -> ENABLE_LOGIND.
Kay Sievers [Mon, 4 Mar 2013 15:13:19 +0000 (16:13 +0100)]
ProFUSION got bought by Intel
Kay Sievers [Mon, 4 Mar 2013 14:17:45 +0000 (15:17 +0100)]
journal: split journal uid only when audit uid data is valid
Michal Schmidt [Mon, 4 Mar 2013 13:38:51 +0000 (14:38 +0100)]
core/manager: fix conditions to start and stop watching running jobs
Harald encountered division by zero in manager_print_jobs_in_progress.
Clearly we had the watch enabled when we shouldn't - there were no
running jobs in m->jobs, only waiting ones. This is either a deadlock,
or maybe some of them would be detected as runnable in the next dispatch
of the run queue. In any case we mustn't crash.
Fix it by starting and stopping the watch based on n_running_jobs
instead of the number of all jobs.
Zbigniew Jędrzejewski-Szmek [Sun, 3 Mar 2013 23:42:52 +0000 (18:42 -0500)]
tmpfiles: use cleanup func. to save a few lines
Lukas Nykryn [Fri, 1 Mar 2013 17:29:59 +0000 (18:29 +0100)]
tmpfiles: move exclamation mark into right place
Unary not has higher precedence than comparisons,
so the condition was bogus.
Zbigniew Jędrzejewski-Szmek [Sun, 3 Mar 2013 06:32:34 +0000 (01:32 -0500)]
core/path: install inotify watches top-down instead of bottom-up
When watches are installed from the bottom, it is always possible
to race, and miss a file creation event. The race can be avoided
if a watch is first established for a parent directory, and then for
the file in the directory. If the file is created in the time between,
the watch on the parent directory will fire.
Some messages (mostly at debug level) are added to help diagnose
pidfile issues.
Should fix https://bugzilla.redhat.com/show_bug.cgi?id=917075.
Michael Biebl [Mon, 4 Mar 2013 01:13:34 +0000 (02:13 +0100)]
build-sys: be more tolerant if dbus directories do not exist
use readlink -m instead of -f since we might be building in a minimal
chroot where those directories do not actually exist and readlink -f
would return an empty string.
Michael Biebl [Mon, 4 Mar 2013 00:39:22 +0000 (01:39 +0100)]
build-sys: resolve absolute path for the dbus directories
/usr/share/dbus-1/system-services simply looks a lot nicer then
/usr/share/dbus-1/services/../system-services
Michael Biebl [Mon, 4 Mar 2013 00:38:16 +0000 (01:38 +0100)]
build-sys: replace backticks `` with $()
for consistencies sake use $() everywhere
Michael Biebl [Sun, 3 Mar 2013 20:32:49 +0000 (21:32 +0100)]
build-sys: don't hard code bash-completion directory
Michael Biebl [Sun, 3 Mar 2013 20:27:44 +0000 (21:27 +0100)]
build-sys: use $PKG_CONFIG instead of calling the pkg-config binary directly
Rob Clark [Sun, 3 Mar 2013 17:55:08 +0000 (12:55 -0500)]
udev: fix segfault with android rndis
The android gadget driver for network tethering over rndis somehow has a
parent device with a null subsystem. Probably this is bug in android driver,
but it is easy enough to make systemd/udev behave gracefully and not
segfault. And this will help for making linux distros with systemd
(like fedora) work on android devices.
Kay Sievers [Sun, 3 Mar 2013 17:35:22 +0000 (18:35 +0100)]
udev: remove database conversion code
Kay Sievers [Sun, 3 Mar 2013 17:20:09 +0000 (18:20 +0100)]
udev: firmware - do not created /run/udev/firmware-missing/
The userspace firmware loader is deprecated now, and will be entirely
removed when we depend on a kernel version with the built-in firmware
loader available.
Zbigniew Jędrzejewski-Szmek [Sun, 3 Mar 2013 01:14:21 +0000 (20:14 -0500)]
journald: do not barf when setting RateLimitInterval=0
Assertion 'interval > 0 || burst == 0' failed at src/journal/journald-rate-limit.c:78, function journal_rate_limit_new(). Aborting.
Zbigniew Jędrzejewski-Szmek [Sat, 2 Mar 2013 13:28:58 +0000 (08:28 -0500)]
core/service: use cleanup functions, wrap lines
Zbigniew Jędrzejewski-Szmek [Sun, 3 Mar 2013 06:49:11 +0000 (01:49 -0500)]
core/path: catch errors when adding watches
Errors because of oom conditions or descriptor exhaustion should not
be ignored. We probably cannot recover from those conditions.
Current behaviour wrt. insufficient permissions is described in the
man page. It might make sense in case of user sessions, so I left
it as is.
Zbigniew Jędrzejewski-Szmek [Fri, 1 Mar 2013 23:04:36 +0000 (18:04 -0500)]
core/path: modernize style
Zbigniew Jędrzejewski-Szmek [Fri, 1 Mar 2013 22:58:56 +0000 (17:58 -0500)]
core/path: use automatic cleanup
... and fix bogus return code on malloc failure.
Zbigniew Jędrzejewski-Szmek [Fri, 1 Mar 2013 22:44:25 +0000 (17:44 -0500)]
core/path: fix a leak in success path
... and use automatic cleanup.
Michael Biebl [Sun, 3 Mar 2013 13:40:49 +0000 (14:40 +0100)]
Update TODO
Michael Biebl [Sat, 2 Mar 2013 21:34:01 +0000 (22:34 +0100)]
bash-completion: split completions and move to new location
Split the large bash completion script into separate, smaller files each
named after the binary it is used for and move the files to
/usr/share/bash-completion/completions. This way the completions can be
loaded on demand and we only install the completions for the tools we
actually build. The old path /etc/bash_completion.d/ is deprecated and
will disappear in the future.
Michal Schmidt [Sat, 2 Mar 2013 12:16:27 +0000 (13:16 +0100)]
job: print the "OK" status messages in normal green
The "OK" status messages should not draw attention to themselves.
It's better if they're not printed in bright/bold. Leave that
to errors and warnings.
Use a plain inconspicuous enterprisey green.
Michal Schmidt [Sat, 2 Mar 2013 11:44:41 +0000 (12:44 +0100)]
manager: turn a superfluous check into assert
The crash that the check prevented has been fixed by commit 9e9e2b7.
Michal Schmidt [Sat, 2 Mar 2013 11:29:04 +0000 (12:29 +0100)]
unit: count deserialized job only after it's definitely installed
Installation of a deserialized job may fail (though purely in theory),
so increase the running job counter only when succeeding.
Tom Gundersen [Sun, 24 Feb 2013 16:40:36 +0000 (17:40 +0100)]
initrd: add unit files needed for basic systemd-in-initrd support
This will:
* mount all configured filesystems (typically the rootfs on /sysroot)
* reload the configuration to pick up anything from the mounted fs (typically
/sysroot/etc/fstab)
* mount any newly configured filesystems (typically /usr on /sysroot/usr, if
applicable)
* shut-down and clean-up any daemons running in the initramfs (typically udevd)
* switch-root to /sysroot and start the real init
For an example of what files should be included in an initramfs based on this
see
<https://mailman.archlinux.org/pipermail/arch-projects/2013-February/003628.html>.
Cc: Harald Hoyer <harald.hoyer@gmail.com>
Cc: Dave Reisner <d@falconindy.com>