Commit graph

12131 commits

Author SHA1 Message Date
Martin Pitt 6e1452d6f0 keymap: Add Samsung Series 5 [Ultra]
Also consolidate the wlan key into the "all Samsung" rule to avoid repetition.

Thanks to Mauro Carvalho Chehab!

https://bugzilla.redhat.com/show_bug.cgi?id=989103
2013-09-16 14:25:44 -05:00
Zbigniew Jędrzejewski-Szmek 35375afec5 login: fix login_is_valid test 2013-09-16 11:10:55 -05:00
Dave Reisner 3cf0f8f7e0 udev-rules: avoid erroring on trailing whitespace
https://bugs.archlinux.org/task/36950
2013-09-16 11:46:05 -04:00
David Herrmann d8c8508bad build: check for build/link flags harder
Use AC_LINK_IFELSE instead of AC_COMPILE_IFELSE to test for flags that
might succeed during compilation but not during linking. An example is gcc
compiled with libssp support but gnu-ld without it. In this case
-fstack-protector works fine during compilation but fails during linking
as several internal helpers are missing.
2013-09-16 09:59:16 -05:00
Zbigniew Jędrzejewski-Szmek 4b549144d8 Verify validity of session name when received from outside
Only ASCII letters and digits are allowed.
2013-09-16 09:58:37 -05:00
Zbigniew Jędrzejewski-Szmek 1244d8d640 transaction.c: do not point users to logs when unit not found
The logs are unlikely to contain any useful information in this case.

Also, change "walked on cycle path" to "found dependency on", which
is less technical and indicates the direction. With the old message,
I was never sure if prior units depended on later ones, or vice versa.

https://bugzilla.redhat.com/show_bug.cgi?id=996133
https://bugzilla.redhat.com/show_bug.cgi?id=997082
2013-09-16 09:47:28 -05:00
Zbigniew Jędrzejewski-Szmek c32fc72f37 Remove duplicate entries from syscall list
ARM syscall list includes SYS_OABI_SYSCALL_BASE and SYS_SYSCALL_BASE
which were obsuring real syscall names.
2013-09-16 09:47:28 -05:00
Zbigniew Jędrzejewski-Szmek 442e00839e Assume that /proc/meminfo can be missing
Travis tests are failing, probably because /proc/meminfo is not available
in the test environment. The same might be true in some virtualized systems,
so just treat missing /proc/meminfo as a sign that hibernation is not
possible.
2013-09-16 09:47:28 -05:00
Gao feng 112a7f4696 cgroup: add missing equals for BlockIOWeight 2013-09-16 09:19:00 -04:00
Tom Gundersen 4e82fe5213 swap: create .wants symlink to 'auto' swap devices
As we load unit files lazily, we need to make sure something pulls in swap
units that should be started automatically, otherwise the default dependencies
will never be applied.

This partially reinstates code removed in
commit 64347fc2b9.

Also don't order swap devices after swap.target when they are 'nofail'.
2013-09-16 01:11:52 +02:00
Kay Sievers a5c724b25b README: add SCSI BSG option 2013-09-15 07:29:25 +02:00
Zbigniew Jędrzejewski-Szmek 69ab808815 Advertise hibernation only if there's enough free swap
Condition that is checked is taken from upower:
  active(anon) < free swap * 0.98

This is really stupid, because the kernel knows the situation better,
e.g. there could be two swap files, and then hibernation would be
impossible despite passing this check, or the kernel could start
supporting compressed swap and/or compressed hibernation images, and
then this this check would be too stringent. Nevertheless, until
we have something better, this should at least return a true negative
if there's no swap.

Logging of capabilities in the journal is changed to not strip leading
zeros. I consider this more readable anyway.

http://cgit.freedesktop.org/upower/tree/src/up-daemon.c#n613
https://bugzilla.redhat.com/show_bug.cgi?id=1007059
2013-09-13 19:41:52 -04:00
Zbigniew Jędrzejewski-Szmek e39ff1f48d keymap: remove some commented out lines 2013-09-13 19:29:52 -04:00
Tom Gundersen ecd1e54ca6 man: document luks.options kernel commandline
This should have been part of commit 7ab064a6d
2013-09-13 21:04:59 +02:00
Lukas Nykryn 6faa3dcbb8 libudev: fix move_later comparison
At the beginning move_later is set to -1, but it is set to different
value only if expression !move_later is true.
2013-09-13 15:36:08 +02:00
Tom Gundersen 90060fa660 swap: fix reverse dependencies
Make sure swap.target correctly requires/wants the swap units.

This fixes https://bugs.freedesktop.org/show_bug.cgi?id=69291.

Reported-by: Hussam Al-Tayeb
2013-09-13 14:48:29 +02:00
Lukas Nykryn 81c68af03f core/cgroup: first print then free 2013-09-13 14:40:58 +02:00
Lennart Poettering df5f6971e6 update TODO 2013-09-13 14:32:14 +02:00
Lukas Nykryn 2dba165c63 random-seed: we should return errno of failed loop_write 2013-09-13 14:32:14 +02:00
Gao feng 6a94f2e938 cgroup: fix incorrectly setting memory cgroup
If the memory_limit of unit is -1, we should write "-1"
to the file memory.limit_in_bytes. not the (unit64_t) -1.

otherwise the memory.limit_in_bytes will be set to zero.
2013-09-13 14:32:14 +02:00
Gao feng 84121bc2ee cgroup: correct the log information
it should be memory.soft_limit_in_bytes.
2013-09-13 14:32:14 +02:00
Gao feng 15b4a7548f cgroup: add the missing setting of variable's value
set the value of variable "r" to the return value
of cg_set_attribute.
2013-09-13 14:32:14 +02:00
David Mackey a5e41bdb72 automount: rename repeat_unmont to repeat_unmount
Trivial cleanup of repeat_unmount() spelling.
2013-09-13 14:32:08 +02:00
Tom Gundersen 7ab064a6d6 cryptsetup-generator: allow specifying options in /proc/cmdline
The main usecase for this is to make it possible to use cryptsetup in
the initrd without it having to include a host-specific /etc/crypttab.

Tested-by: Thomas Bächler <thomas@archlinux.org>
2013-09-13 11:52:14 +02:00
Tom Gundersen 8c11d3c1b5 cryptsetup-generator: don't create tmp+swap units 2013-09-13 11:52:14 +02:00
Lennart Poettering 719e4e368b update TODO 2013-09-13 04:13:47 +02:00
Kay Sievers f3a165b05d NEWS: update 2013-09-13 02:24:57 +02:00
Lennart Poettering 4f0be680b5 build-sys: prepare 207 2013-09-13 02:12:16 +02:00
Zbigniew Jędrzejewski-Szmek 64eed40c07 bash-completion: add systemd-run 2013-09-12 19:36:27 -04:00
Kay Sievers 6e869e18c0 shut up gcc complaining about freeing a const variable 2013-09-12 23:37:23 +02:00
Jan Engelhardt 7964042405 man: wording and grammar updates
This is a recurring submission and includes corrections to various
issue spotted. I guess I can just skip over reporting ubiquitous
comma placement fixes…

Highligts in this particular commit:
- the "unsigned" type qualifier is completed to form a full type
  "unsigned int"
- alphabetic -> lexicographic (that way we automatically define how
  numbers get sorted)
2013-09-12 22:09:57 +02:00
Lennart Poettering 982e44dbc3 update TODO 2013-09-12 18:52:41 +02:00
Umut Tezduyar d137a488af core: notify triggered by socket of a service 2013-09-12 18:47:20 +02:00
Hannes Reinecke dc99a97644 service: Implement 'on-watchdog' restart option
Services using the watchdog option might want to be restarted
only if the watchdog triggers.
2013-09-12 18:29:44 +02:00
Olivier Brunel 00a1686189 journald: Log error when failed to get machine-id on start
Can help since the journal requires /etc/machine-id to exists in order to start,
and will simply silently exit when it does not.
2013-09-12 18:19:16 +02:00
Lennart Poettering fcba531ed4 update TODO 2013-09-12 18:09:08 +02:00
Michal Sekletar c1e784feb4 systemctl: process only signals for jobs we really wait for
wait_filter() callback shouldn't process JobRemove signals for arbitrary
jobs. It should only deal with signals for jobs which are included in
set of jobs we wait for.
2013-09-12 18:09:08 +02:00
Kay Sievers 7de778beab TODO: remove backlight tool 2013-09-12 17:20:33 +02:00
Zbigniew Jędrzejewski-Szmek da2620a5f8 Actually allow tabs in environment files
Fixup for ac4c8d6da8.
2013-09-12 10:03:16 -04:00
Zbigniew Jędrzejewski-Szmek f4ae69117b man: Add a note about what environment variables are available by default 2013-09-12 09:29:01 -04:00
Michael Marineau 39f0570d6e getty-generator: Enable getty on all active serial consoles.
This enables a getty on active kernel consoles even when they are not
the last one specified on the kernel command line and mapped to
/dev/console. Now the order "console=ttyS0 console=tty0" works in
addition to "console=tty0 console=ttyS0".
2013-09-12 08:34:30 -04:00
Zbigniew Jędrzejewski-Szmek 176cceb051 hwdb: add Toshiba Satellite P75-A
Contributed by Guillermo Dominguez Duarte <guillermod84@gmail.com>.
2013-09-12 08:00:59 -04:00
Kay Sievers 7b4977254c man: fix description of file order application 2013-09-12 04:01:20 +02:00
Zbigniew Jędrzejewski-Szmek ac4c8d6da8 Allow tabs in environment files
bash allows them, and so should we.

string_has_cc is changed to allow tabs, and if they are not wanted,
they must be now checked for explicitly. There are two other callers,
apart from the env file loaders, and one already checked anyway, and
the other is changed to check.

https://bugs.freedesktop.org/show_bug.cgi?id=68592
https://bugs.gentoo.org/show_bug.cgi?id=481554
2013-09-11 21:58:22 -04:00
Mantas Mikulėnas 0b429ab7fc man: fix description of sysctl.d order
systemd-sysctl gives priority to the latest occurence as of commit
04bf3c1a60, but the manpage hasn't been
updated for that.
2013-09-11 20:07:28 -04:00
Kay Sievers 89dc5bcff1 hwdb: update 2013-09-11 23:09:12 +02:00
Zbigniew Jędrzejewski-Szmek 5c390a4ae0 Add pam configuration to allow user sessions to work out of the box
systemd-logind will start user@.service. user@.service unit uses
PAM with service name 'systemd-user' to perform account and session
managment tasks. Previously, the name was 'systemd-shared', it is
now changed to 'systemd-user'.

Most PAM installations use one common setup for different callers.
Based on a quick poll, distributions fall into two camps: those that
have system-auth (Redhat, Fedora, CentOS, Arch, Gentoo, Mageia,
Mandriva), and those that have common-auth (Debian, Ubuntu, OpenSUSE).
Distributions that have system-auth have just one configuration file
that contains auth, password, account, and session blocks, and
distributions that have common-auth also have common-session,
common-password, and common-account. It is thus impossible to use one
configuration file which would work for everybody. systemd-user now
refers to system-auth, because it seems that the approach with one
file is more popular and also easier, so let's follow that.
2013-09-11 15:35:06 -04:00
Lennart Poettering 7b617155b5 core: failed scope units may not be restarted
We don't allow reusing of scopes.
2013-09-11 19:28:28 +02:00
Giovanni Campagna 44ded3abc2 sd-login: add a public accessor for the VT number
The VT number was already part of the DBus API, but was not
exposed in the C API.
2013-09-11 19:08:20 +02:00
Lennart Poettering 4c3a31668e Update TODO 2013-09-11 17:44:33 +02:00