Commit graph

100 commits

Author SHA1 Message Date
Jan Engelhardt bba6cb45a5 main: revert recognition of "b" argument
Commit 099663ff8c added "b" as a
recognized argument, however, B is not a runlevel like S. (B appears
as a pseudo runlevel in openSUSE's init.d scripts only for the sake of
insserv being able to manage /etc/init.d/boot.d like the other dirs).
2011-03-16 03:53:13 +01:00
Lennart Poettering d821e6d69a main: interpret all argv[] arguments unconditionally when run in a container 2011-03-16 03:41:49 +01:00
Lennart Poettering 6ef1b05339 main: parse the whole arv[] as kernel command line 2011-03-16 02:56:30 +01:00
Lennart Poettering 90df7e567f main: log to the console in a container 2011-03-14 15:37:02 +01:00
Lennart Poettering b770165a4f main: don't parse /proc/cmdline in containers 2011-03-14 04:08:12 +01:00
Lennart Poettering 7d640cdf66 units: move the last flag files to /dev/.run 2011-03-11 01:06:53 +01:00
Lennart Poettering 099663ff8c main: properly handle -b boot option 2011-03-11 00:52:31 +01:00
Lennart Poettering fe783b0341 main: refuse system to be started in a chroot 2011-03-09 23:59:27 +01:00
Lennart Poettering b0c8757b05 main: don't check if /usr really is a mount point, since it is fine if it is passed pre-mounted to us from the initrd 2011-03-09 23:59:07 +01:00
Lennart Poettering b925e72633 dev: use /dev/.run/systemd as runtime directory, instead of /dev/.systemd 2011-03-09 22:45:47 +01:00
Lennart Poettering d7ccca2e3f main: introduce /etc/machine-id
This is supposed to play the same roles /var/lib/dbus/machine-id,
however fixes a couple of problems:

- It is available during early boot since it is stored in /etc

- Removes the ID from the D-Bus context and moves it into a system
  context, thus hopefully lowering hesitation by people to use it.

- It is generated at installation time. If the file is empty at boot
  time it will be mounted over with a randomly generated ID, which is
  not saved to disk. This is useful to support state-less machines with
  no transient or writable /etc configuration.
2011-03-04 21:53:19 +01:00
Lennart Poettering 81ab0d3c65 main: minor optimization 2011-03-04 19:48:12 +01:00
Lennart Poettering aa1671320d main: add link to wiki page with longer explanation of the /usr madness 2011-03-04 05:07:01 +01:00
Lennart Poettering ed1c99fcc1 s/seperate/separate/ 2011-03-04 03:58:52 +01:00
Harald Hoyer 35b8ca3aaf Spelling Corrections
Just some lame spelling corrections with no functionality.
2011-02-28 22:47:38 +01:00
Lennart Poettering 80758717a6 main: print warning if /usr is on a seperate partition 2011-02-23 01:10:20 +01:00
Lennart Poettering b5c6cf8734 main: refuse --test as root 2011-02-19 14:20:00 +01:00
Lennart Poettering 934da03599 service: change default std output to inherit 2011-02-15 12:28:01 +01:00
Lennart Poettering 0a494f1ff3 exec: introduce global defaults for the standard output of services 2011-02-15 11:52:29 +01:00
Lennart Poettering 6a3b1508f7 getty: don't parse console= anymore, use /sys/class/tty/console/active instead 2011-02-14 19:57:18 +01:00
Lennart Poettering e1b2b49465 systemd: show status when run with plymouth, and don't start plymouth a second time when it is already running 2011-02-09 14:17:52 +01:00
Lennart Poettering ed86ebc414 main: don't warn if /etc/mtab is a symlink to /proc/mounts 2011-01-21 02:57:58 +01:00
Lennart Poettering 06d4c99ab3 manager: make list of default controllers configurable 2010-11-18 00:42:35 +01:00
Lennart Poettering af2d49f70b drop support for MANAGER_SESSION, introduce MANAGER_USER instead 2010-11-15 22:13:26 +01:00
Lennart Poettering 6ee5bbf85c main: warn if /etc/mtab is not a symlink 2010-11-10 23:18:34 +01:00
Lennart Poettering f3b6a3edbc main: rename process on startup to 'systemd' to avoid confusion 2010-11-10 22:39:33 +01:00
Lennart Poettering e9ddabc246 manager: parse RD_TIMESTAMP passed from initrd 2010-11-10 22:38:44 +01:00
Lennart Poettering c4dcdb9f47 selinux: automatically load policy if the initrd hasn't done this for us yet 2010-10-27 05:47:02 +02:00
Lennart Poettering ade509ce73 main: move make_null_stdio() to util.c 2010-10-27 05:45:57 +02:00
Andrey Borzenkov 87d1969bb3 main: fix typo in kernel cmdline parameters help 2010-10-26 20:07:12 +02:00
Lennart Poettering 39439087bf main: don't unset HOME/TERM when run in session mode 2010-10-26 02:32:02 +02:00
Lennart Poettering 1104f3c160 systemd: unset HOME and TERM set from the kernel 2010-10-25 21:05:04 +02:00
Fabiano Fidencio b9080b03a9 manager: hookup execution of systemd-shutdown helper
(Modified by Lennart Poettering)
2010-10-14 00:52:26 +02:00
Lennart Poettering 52661efd21 unit: add minimal condition checker for unit startup 2010-10-13 02:15:41 +02:00
Lennart Poettering 6daf4f9001 unit: rename 'banned' load state to 'masked' 2010-10-08 18:21:52 +02:00
Lennart Poettering 00dc5d769a unit: introduce 'banned' load state for units symlinked to /dev/null 2010-10-08 02:31:36 +02:00
Lennart Poettering 3c14d26c47 util: unify implementations of freeze() 2010-10-07 19:34:56 +02:00
Fabiano Fidencio 07459bb6b9 sysv: optionally disable of SysV init/rcN.d support at compile time
This patch adds a cpp definition HAVE_SYSV_COMPAT that is used to
isolate code dealing with /etc/init.d and /etc/rcN.d for systems where
it does not make sense (one that does not use sysv or one that is fully
systemd native).

The patch tries to be as little intrusive as possible, however in
order to minimize the number of #ifdef'ed regions I've reordered some
code in path-lookup.c:lookup_paths_init() where all code dealing with
sysv is now isolated under running_as == MANAGER_SYSTEM as well.

Moreover, In struct Service, some fields were rearranged to reduce
the number of ifdefs.

Lennart's suggestions were fixed and squashed with the original patch,
that was sent by Gustavo Sverzut Barbieri (barbieri@profusion.mobi).
2010-09-27 03:25:05 +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 72bca11ba2 locale: initialize locale from /etc/locale by default 2010-09-16 01:57:42 +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 ed370f5daa main: when we encounter 'emergency' on the kernel cmdline start the emergency shell 2010-09-08 01:55:35 +02:00
Lennart Poettering 7d568925bd systemctl: make --version a little bit more verbose 2010-09-06 03:11:24 +02:00
Lennart Poettering 22f4096ca9 systemctl: rework exit codes for all utility programs to follow LSB or other standards 2010-08-31 21:05:54 +02:00
Lennart Poettering b2bb3dbed9 console: rework automatic getty on kernel console logic again
It is essential that the gettys are proper dependencies from
getty.target so that they aren't killed and immediately restarted on
runlevel changes. Hence rework the logic to implicitly add console
gettys to getty.target as dependencies.

This also adds an automatic hvc console for virtualizers.

https://bugzilla.redhat.com/show_bug.cgi?id=501720
2010-08-30 23:03:58 +02:00
Lennart Poettering 173a8d04fc mount: rework automatic mounting to follow the 'nofail' option in fstab 2010-08-25 20:37:04 +02:00
Lennart Poettering d3689161a2 mount: add global configuration options for handling of auto mounts 2010-08-25 03:11:26 +02:00
Tero Roponen a9c501a590 main: restore an accidentally removed 'else'
I just noticed this when reading the latest commits.
2010-08-17 23:45:57 +02:00
Lennart Poettering 1c27d3f3fd main: properly fallback to rescue.target if default.target is hosed 2010-08-17 20:42:53 +02:00
Lennart Poettering 1cba2c90e8 modprobe: kill support for nomodules
this should happen in the kernel itself, not be controlled from
userspace, if at all. So let's kill this here.
2010-08-17 18:13:47 +02:00