Commit Graph
1349 Commits
Author SHA1 Message Date
Fabiano Fidencio 5bfcc1c6ef socket: Support IPv6-less systems with runtime check.
This patch introduces socket_ipv6_is_supported() call that checks for
IPv6 availability. Code then check for it before using specific calls.

In order to be less intrusive, this patch avoids IPv6 entries being
parsed at all, this way we don't get such entries in the system and
all other code paths are automatically ignored. However an extra check
is done at socket_address_listen() to make sure of that.

As the number of Netlink messages is not know upfront anymore,
loopback-setup.c was refactored to dynamically calculate the sequence
number and count.

Lennart's suggestions were fixed and squashed with the original patch,
that was sent by Gustavo Sverzut Barbieri (barbieri@profusion.mobi).
2010-09-21 01:00:38 +02:00
Gustavo Sverzut Barbieri 918f4c69fa gentoo: locale-setup support
Use locale variables from /etc/profile.env as Gentoo's openrc
runscript does (tool that is used by /etc/init.d/* services).
2010-09-21 00:49:13 +02:00
Gustavo Sverzut Barbieri 9841e8e3d3 gentoo: vconsole-setup support.
This patch is a bit bigger than expected since Gentoo being
non-standard in some places.

 1. it is installing binaries at /usr/bin instead of /bin.

 2. it is using CamelCase names for consolefonts.

 3. /etc/rc.conf:unicode=(yes|no) just forbids loadkeys and setfont
    "-u" options, but do not disable the actual kernel default_utf8
    from vt module.
2010-09-21 00:43:16 +02:00
Luis Felipe Strano Moraes 3e21c85da3 ask-password. Initializing socket_fd inside ask_agent.
Garbage value could have been used if there was an error creating the
password file.
2010-09-21 00:29:37 +02:00
Michal Schmidt aa5939a3ba systemctl: make condrestart equivalent to try-restart
"condrestart" should be equivalent to "try-restart", i.e. it should be
translated into "TryRestartUnit". See
http://fedoraproject.org/wiki/Packaging:SysVInitScript#condrestart_and_try-restart

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=635780
2010-09-21 00:24:23 +02:00
Tom Gundersen f2fcd59ffa locale: set LANG on Arch
This variable is defined in /etc/rc.conf
2010-09-20 23:14:28 +02:00
Tom Gundersen 424313503a vconsole: set keyboard mapping and font settings on Arch
These variables are defined in /etc/rc.conf
2010-09-20 23:14:23 +02:00
Gustavo Sverzut Barbieri b56e57470c random-seed: create parents of RANDOM_SEED if they do not exist.
it may happen that parent directories of RANDOM_SEED do not exist, in
that case we must create it otherwise save will not work.
2010-09-20 23:12:50 +02:00
Lennart Poettering 26febd4590 update fixme 2010-09-20 21:47:32 +02:00
Lennart Poettering 68bc54e555 update fixme 2010-09-18 01:38:46 +02:00
Lennart Poettering a18fb4823b vconsole: drop vconsole config file var prefix 2010-09-18 01:20:13 +02:00
Lennart Poettering ae509abccc vconsole: more completely cover fedora legacy vconsole configuration 2010-09-18 01:19:46 +02:00
Lennart Poettering efb3237ee6 ask-password: popup notification when we ask for a password 2010-09-17 02:32:48 +02:00
Lennart Poettering ad6ab0af1e ask-password: extend help text a little 2010-09-17 02:13:12 +02:00
Lennart Poettering 1b39d4b9d2 ask-password: optionally ask questions on tty 2010-09-17 02:10:08 +02:00
Lennart Poettering 490aed5849 ask-password: add minimal framework to allow services query SSL/harddisk passphrases from the user 2010-09-17 01:26:29 +02:00
Lennart Poettering 1ebdf5b684 vconsole: fall back to fedora specific configuration 2010-09-16 01:58:16 +02:00
Lennart Poettering e7db37dd19 util: fix handling of quotes in parse_env_file() 2010-09-16 01:57:59 +02:00
Lennart Poettering 72bca11ba2 locale: initialize locale from /etc/locale by default 2010-09-16 01:57:42 +02:00
Lennart Poettering 97c4a07df9 vconsole: add new utility to initialize the virtual console 2010-09-16 00:36:41 +02:00
Lennart Poettering 8e12a6aed3 util: use waitid() instead of waitpid() everywhere to avoid confusion due to SIGSTOP 2010-09-15 14:48:59 +02:00
Lennart Poettering 2e78aa9988 util: introduce waitpid_loop() 2010-09-15 14:37:45 +02:00
Lennart Poettering b036fc0050 systemctl: use sizeof() instead of strlen() on literal strings 2010-09-15 03:12:04 +02:00
Zbyszek Szmek 9b2fcafba4 systemctl: split job list writing to a seperate function
On Tue, Sep 14, 2010 at 10:23:28PM +0200, Lennart Poettering wrote:
> On Tue, 07.09.10 17:02, Zbigniew Jędrzejewski-Szmek (zbyszek@in.waw.pl) wrote:
>
> Urks, now I commited the wrong one... Can you prep an updated patch against
> current git?
Once more sorry about that.

Fix below.

Zbyszek
2010-09-15 03:05:02 +02:00
Lennart Poettering d2f316345c man: document that first param to ExecStart= cannot be variable substitution
https://bugzilla.redhat.com/show_bug.cgi?id=630156
2010-09-15 01:44:26 +02:00
Lennart Poettering 5275d3c13d mount-setup: fix selinux label after mounting
rhbz 629268
2010-09-15 01:38:07 +02:00
Zbigniew Jędrzejewski-Szmek 3333022269 systemctl: limit some column widths to widest actually used
old
UNIT                      LOAD   ACTIVE       SUB                JOB
dev-hugepages.automount   loaded active       running                            Huge Page
dev-mqueue.automount      loaded active       waiting                            POSIX Mes
proc-sys...misc.automount loaded active       waiting                            Arbitrary
sys-kern...ebug.automount loaded active       running                            Debug Fil

new
UNIT                      LOAD   ACTIVE SUB       JOB
dev-hugepages.automount   loaded active running       Huge Pages File System Automount Poi
dev-mqueue.automount      loaded active waiting       POSIX Message Queue File System Auto
systemd-shutdownd.socket  loaded active listening     systemd Delayed Shutdown Socket
2010-09-14 22:16:28 +02:00
Zbigniew Jędrzejewski-Szmek eb68c413aa systemctl: split job list writing to a seperate function 2010-09-14 22:15:41 +02:00
Zbigniew Jędrzejewski-Szmek ef639c5f9e systemctl: use on_tty() helper everywhere 2010-09-14 22:14:52 +02:00
Lennart Poettering b9aea9547a man: include reference to the interface stability promise 2010-09-14 21:52:33 +02:00
Lennart Poettering f26ee0b931 util: SIGSTKFLT is unknown on Linux for SPARC 2010-09-14 13:56:08 +02:00
Lennart Poettering 6f890469f4 build-sys: bump version 2010-09-14 02:29:58 +02:00
Lennart Poettering 6f0d624ec7 systemctl: use isolate when called as telinit for a runlevel 2010-09-14 02:22:55 +02:00
Lennart Poettering e43ac8788b manager: log job mode when running job 2010-09-14 02:16:14 +02:00
Lennart Poettering 11ffbaf010 prefdm: make sure we start prefdm only after the getty is killed 2010-09-14 02:02:06 +02:00
Lennart Poettering ac83842a55 initctl: properly use isolate when activating runlevels 2010-09-14 01:56:14 +02:00
Lennart Poettering bba34eedc7 target: add implicit target/unit ordering deps only if both sides have been fully loaded 2010-09-14 01:51:30 +02:00
Lennart Poettering 83a95334c9 socket: fix output of TCP congestion options 2010-09-14 01:31:41 +02:00
Lennart Poettering 3c4e3e1a9b units: make sure the file system is writable before we write utmp data 2010-09-14 01:07:06 +02:00
Lennart Poettering f21781d57f service: fix check for non-LSB files 2010-09-14 00:23:15 +02:00
Lennart Poettering a2ff477f67 units: add generic description for http-daemon.target 2010-09-14 00:22:47 +02:00
Lennart Poettering 32159d3a94 service: add generic LSB provides handling for facilities 2010-09-13 23:54:21 +02:00
Lennart Poettering 4f7dcad328 service: translate 'httpd' LSB Provides into '$httpd' on Fedora 2010-09-13 23:53:59 +02:00
Lennart Poettering 67ff613459 man: s/triggerin/triggerun/ for rpm upgrades
https://bugzilla.redhat.com/show_bug.cgi?id=626966
2010-09-13 20:51:40 +02:00
Rainer Gerhards e702c2c07d minor nit: printf attribute was removed by -DSD_EXPORT_SYMBOLS 2010-09-13 20:08:29 +02:00
Michal Schmidt 51cfda28c3 fedora: don't quit plymouth too early
Do not quit plymouth until the dependencies for getty@tty1.service are
ready, in order to minimize the time a black screen is displayed.
2010-09-13 19:22:30 +02:00
Tom Gundersen 17dbb83dee util: add Arch welcome message
Arch has no release name, so juts prints 'Welcome to Arch Linux!'.
The color is the same as used by Arch's native rc.sysinit.
2010-09-13 19:19:54 +02:00
Sedat Dilek 5a6225fd2e util: add Debian welcome message
Hi,

after talked with Michael on IRC, here is the patch to see a systemd
Welcome message on Debian systems.
FYI: I had to remove "quiet" from Kernel-command-line to see it.

"Stolen from Gentoo" :-) [1,2]?

Kind Regards,
- Sedat -

[1] http://lists.freedesktop.org/archives/systemd-devel/2010-September/000267.html
[2] http://cgit.freedesktop.org/systemd/commit/?id=0d37b36b2890fdf8149d12460ebb00822e555977

From 76d860ca774cb8724de25c3ed3c455ebe5d548e3 Mon Sep 17 00:00:00 2001
From: Sedat Dilek <sedat.dilek@gmail.com>
Date: Sun, 12 Sep 2010 23:02:22 +0200
Subject: [PATCH] util: add Debian welcome message

Include the "Debian" string as /etc/debian_version contains only the Distribution name like "squeeze".
Use Light Red color for Debian.

Based on a proposal patch of Michael Biebl <biebl@debian.org>
2010-09-13 18:03:00 +02:00
Lennart Poettering 98bc20006d target: add default unit ordering deps from the unit not the target 2010-09-13 12:06:49 +02:00
Lennart Poettering 34f0c1a118 man: some clarifications 2010-09-13 12:05:54 +02:00