Commit Graph

2385 Commits

Author SHA1 Message Date
Michael Olbrich
e4c1d706bd build-sys: create dbussystemservicedir
otherwise building fails if it doesn't exist:

( cd <DESTDIR>/usr/share/dbus-1/services && \
                rm -f org.freedesktop.systemd1.service && \
                ln -s ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
/bin/sh: line 0: cd: <DESTDIR>/usr/share/dbus-1/services: No such file or directory
2011-05-10 18:48:53 +02:00
Paul Menzel
ec2002f849 util: include stdarg.h
Otherwise using uClibc compilation (OpenEmbedded [1] with `minimal-uclibc` for `MACHINE = "beagleboard"`) fails with the following error message.

| make[1]: Entering directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/systemd-v26-r0/git'
|   CC     src/libsystemd_basic_la-util.lo
| src/util.c: In function 'acquire_terminal':
| src/util.c:2484:29: warning: cast increases required alignment of target type [-Wcast-align]
| src/util.c:2497:37: warning: cast increases required alignment of target type [-Wcast-align]
| src/util.c: In function 'rename_process':
| src/util.c:2905:17: warning: passing argument 1 of 'strncpy' discards qualifiers from pointer target type
| /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/string.h:87:14: note: expected 'char * restrict' but argument is of type 'const char *'
| src/util.c: In function 'cpu_set_malloc':
| src/util.c:3229:17: warning: implicit declaration of function 'CPU_ALLOC' [-Wimplicit-function-declaration]
| src/util.c:3229:25: warning: assignment makes pointer from integer without a cast
| src/util.c:3232:17: warning: implicit declaration of function 'CPU_ALLOC_SIZE' [-Wimplicit-function-declaration]
| src/util.c:3233:25: warning: implicit declaration of function 'CPU_ZERO_S' [-Wimplicit-function-declaration]
| src/util.c:3241:17: warning: implicit declaration of function 'CPU_FREE' [-Wimplicit-function-declaration]
|   CC     src/libsystemd_basic_la-label.lo
| In file included from src/label.c:27:0:
| src/util.h:358:41: error: expected declaration specifiers or '...' before 'va_list'
| make[1]: *** [src/libsystemd_basic_la-label.lo] Error 1
| make[1]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/systemd-v26-r0/git'
| make: *** [all] Error 2
| + die 'oe_runmake failed'
| + oefatal 'oe_runmake failed'
| + echo FATAL: 'oe_runmake failed'
| FATAL: oe_runmake failed
| + exit 1
NOTE: package systemd-v26-r0: task do_compile: Failed
ERROR: Function 'do_compile' failed (see /oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/systemd-v26-r0/temp/log.do_compile.4020 for further information)
ERROR: Task 13 (/oe/openembedded/recipes/systemd/systemd_git.bb, do_compile) failed with exit code '1'
ERROR: '/oe/openembedded/recipes/systemd/systemd_git.bb' failed

[1] http://www.openembedded.org/
2011-05-10 01:45:05 +02:00
Koen Kooi
1bd8b8184e build-sys: Angstrom support
This commit consists of the initial work to include Angstrom as a ported
distribution for systemd.

Angstrom tries to follow the debian way as much as possible, but deviates
where it doesn't make sense for 'embedded'.
2011-05-09 23:50:23 +02:00
Miklos Vajna
34a852e6f9 units: Enable plymouth for Frugalware 2011-05-09 22:41:02 +02:00
Kay Sievers
656842223b update TODO 2011-05-09 12:24:12 +02:00
Lennart Poettering
7a6000a682 unit: make ignoring in snapshots a per unit property, instead of a per unit type property 2011-05-05 10:58:55 +02:00
Lennart Poettering
a96257af78 vconsole: use open_terminal() instead of open() 2011-05-03 17:58:28 +02:00
Lennart Poettering
4a058a7519 update TODO 2011-05-03 02:29:57 +02:00
Lennart Poettering
24d7d144a6 update TODO 2011-05-02 23:49:54 +02:00
Lennart Poettering
7ec75dc70f units: enable automount units only if the kernel supports them 2011-05-02 17:43:18 +02:00
Kay Sievers
40013ebc3d sysctl: correct /usr/local/lib path 2011-05-01 14:49:33 +02:00
Kay Sievers
adf70c5e4e binfmt, modules-load, sysctl, tmpfiles: add missing ConditionDirectoryNotEmpty= 2011-04-30 23:08:15 +02:00
Kay Sievers
223a355816 binfmt, modules-load, sysctl, tmpfiles: read /usr/local/lib and where appropriate /lib directories 2011-04-30 20:31:33 +02:00
Lennart Poettering
db91c52703 build-sys: prepare release 26 2011-04-30 04:29:28 +02:00
Lennart Poettering
24a73f5157 plymouth: introduce plymouth.enable=0 kernel command line switch 2011-04-30 04:23:36 +02:00
Lennart Poettering
ec195f55fb util: don't AND cx with cx 2011-04-30 04:07:28 +02:00
Tollef Fog Heen
ec43fbc68c man: typo in sd_daemon reference 2011-04-29 14:47:31 +02:00
Kay Sievers
44143309dd util: conf_files_list() return list as parameter 2011-04-28 23:51:24 +02:00
Lennart Poettering
b23de6af89 dbus: make daemon reexecution synchronous
We simply keep open copies of the dbus connections across the
reexecution and close them as last step of it. A client can thus simply
wait until its connection is dropped to know when the reexecution is
finished.

https://bugzilla.redhat.com/show_bug.cgi?id=698198
2011-04-28 22:07:01 +02:00
Lennart Poettering
b4bd51448f label: don't print warning when we try ro relabel an non-existing file
https://bugzilla.redhat.com/show_bug.cgi?id=698674
2011-04-28 05:06:48 +02:00
Lennart Poettering
6dfa54942c service: properly notice when services with a main process that isn't a child of init die
https://bugzilla.redhat.com/show_bug.cgi?id=699114
2011-04-28 04:56:55 +02:00
Lennart Poettering
a9dd208208 lookup: drop empty directories from search paths 2011-04-28 04:55:05 +02:00
Lennart Poettering
ac3f50caa5 path: simplify recheck logic 2011-04-28 03:22:05 +02:00
Lennart Poettering
796ba55494 unit: fix assert when trying to load unit instances for uninstanciable types
http://lists.freedesktop.org/archives/systemd-devel/2011-April/001910.html
2011-04-28 01:26:42 +02:00
Lennart Poettering
e190aa0be1 systemctl: whitelist /etc instead of blacklisting /lib to figure out if [Install] is needed 2011-04-27 22:30:50 +02:00
Lennart Poettering
ecb963cc40 def: lower default timeout to 90s
Almost everybody found 3min too long, so lower it again
2011-04-27 22:30:50 +02:00
Kay Sievers
0ecb942753 update TODO 2011-04-27 23:26:07 +02:00
Lennart Poettering
2121dcdded manager: fix serialization counter 2011-04-27 15:54:34 +02:00
Lennart Poettering
7dad4db0cb update TODO 2011-04-27 15:54:34 +02:00
Lennart Poettering
a133bf10d0 dbus: don't hit assert when dumping properties
https://bugs.freedesktop.org/show_bug.cgi?id=36472
2011-04-27 00:28:10 +02:00
Miklos Vajna
27669061f4 build-sys: Add --disable-binfmt configure switch 2011-04-27 00:08:47 +02:00
Milan Broz
2d745456b2 cryptsetup: fix keyfile size option processing
/etc/crypttab uses "size" argument only for plain crypt mapping
(and input is limited to volume key size)

For LUKS it always read whole keyfile (no arguments except "luks"
should be in crypttab).

Because of bug in cryptsetup 1.2.0 (fixed in 1.3.0) library
did not enforced keyfile size argument, so this bug was
hidden for some time.

Patch also converts size in bits to bytes like excepted
by libcryptsetup api.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=36264
2011-04-26 21:50:15 +02:00
Lennart Poettering
641e01dcdc socket: improve warning message when we get POLLHUP 2011-04-26 21:39:14 +02:00
Zbigniew Jędrzejewski-Szmek
aa4355f295 strv: Fix gcc unitialized variable warning
Since strv_* functions handle null arguments, this warning is actually
valid.

src/strv.c: In function ‘strv_copy’:
src/strv.c:68:21: warning: ‘k’ may be used uninitialized in this function [-Wuninitialized]
2011-04-26 21:24:31 +02:00
Lennart Poettering
016e9849e0 mount: failure to mount cgroup hierarchies should not be fatal
If we cannot open /etc/cgroup, print an error message, but go on, to
support cgroup-less builds.

https://bugzilla.redhat.com/show_bug.cgi?id=628004
2011-04-26 21:12:38 +02:00
Kay Sievers
4db6d587c3 configure.ac: move AC_USE_SYSTEM_EXTENSIONS up to fix warning 2011-04-25 22:00:12 +02:00
Kay Sievers
907dd1953b configure: add AC_SYS_LARGEFILE 2011-04-25 21:50:42 +02:00
Kay Sievers
772f83719e tmpfiles.d: switch to stacked config dirs in /lib, /etc, /run 2011-04-25 21:38:21 +02:00
Kay Sievers
db1413d738 sysctl.d, binfmt.d, modules-load.d: switch to stacked config dirs in /lib, /etc, /run 2011-04-25 20:41:47 +02:00
Tollef Fog Heen
3a90ae0482 manager: mkdir /run/systemd/system when starting up 2011-04-23 22:06:18 +02:00
A. Costa
8f28cbcdfe man: Spelling fixes 2011-04-23 21:56:05 +02:00
cee1
373c23b27f missing: Fix broken syscall(__NR_fanotify_mark... on o32 mips.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%23618562
MIPS o32 ABI enforces that 64bit arguments should be 64bit-aligned, and
the third argument of syscall(__NR_fanotify_mark, ...) is 64bit and not
64bit-aligned on o32 mips platform, thus extra padding is inserted
before it. The syscall function doesn't know the prototype of
fanotify_mark, so the padding will be passed into kernel as valid
argument.
2011-04-21 04:19:22 +02:00
Lennart Poettering
13f9123298 update TODO 2011-04-21 03:56:20 +02:00
Lennart Poettering
dffbaed964 build-sys: bump release 2011-04-21 03:18:39 +02:00
Lennart Poettering
1c1890bee6 Revert "cryptsetup: pass 0 as key size to crypt_activate_by_keyfile()"
This reverts commit 9402841ef1.

This freezes boot-up when /dev/urandom is used as key source
2011-04-21 03:15:12 +02:00
Lennart Poettering
811ad2b3a4 man: minor fixes 2011-04-21 01:18:23 +02:00
Wulf C. Krueger
af49ec2c7d mount: Allow creating mount units for /var/lib/nfs/rpc_pipefs and /proc/fs/nfsd.
Mounting /var/lib/nfs/rpc_pipefs and /proc/fs/nfsd is required by rpcbind
and the NFS server respectively. To depend on them being mounted, systemd
needs to be allowed to create mount units for both in order to avoid having
to implement hacks (mounting in ExecStartPre or using shell scripts).
2011-04-20 22:52:10 +02:00
Lennart Poettering
9402841ef1 cryptsetup: pass 0 as key size to crypt_activate_by_keyfile()
https://bugs.freedesktop.org/show_bug.cgi?id=36264
2011-04-20 19:22:45 +02:00
Lennart Poettering
b0a3f2bc09 socket: support ListeSpecial= sockets 2011-04-20 05:02:23 +02:00
Lennart Poettering
944d4c91e6 vconsole: don't set console font/keymap if settings are empty
https://bugs.freedesktop.org/show_bug.cgi?id=36052

If KEYMAP= is set to the empty string in /etc/vconsole leave the kernel
keymap loaded.

Similar for FONT=.
2011-04-20 04:30:08 +02:00