Commit Graph
20913 Commits
Author SHA1 Message Date
Lennart Poettering 8d567588ca automount: implement automount unit type 2010-04-16 23:24:39 +02:00
Lennart Poettering 2076ca540e mount-setup: mount all cgroup controllers by default but make it non-fatal 2010-04-16 23:22:32 +02:00
Mike Brudevold 7c07740ce7 cdrom_id: add missing profiles to feature_profiles
Signed-off-by: Mike Brudevold <mike@brudevold.com>
2010-04-16 07:39:56 +02:00
Lennart Poettering 09e80b16f2 device: only expose devices with SYSTEMD_EXPOSE=1, ignore all others 2010-04-15 23:41:48 +02:00
Lennart Poettering 09477267f6 units: rename [Meta] section to [Unit] 2010-04-15 23:20:17 +02:00
Lennart Poettering 05e343b704 service: optionally, trie dbus name cycle to service cycle 2010-04-15 23:16:16 +02:00
Yury G. Kudryashov b3ad0c3c6f configure.ac - fix typo in --with-pci-ids-path option 2010-04-15 21:35:51 +02:00
Martin Pitt 30e3b1a0d3 cdrom_id: Swap media state and TOC info probing
Blank CDs do not have a TOC, thus will fail cd_media_toc() (at least with the
"Do not ignore errors from scsi_cmd_run()" fix). Thus probe the media state
first, so that we can properly detect blank media.
2010-04-15 21:29:18 +02:00
Martin Pitt 58e178894b cdrom_id: Do not ignore errors from scsi_cmd_run()
scsi_cmd_run() can return positive error messages if we have CHECK_CONDITION
set and get the error code from the SCSI command result. So check the result
for non-zero, not for being negative.

This should fix another cause for "phantom" media in empty CD-ROM drives.

Thanks to Mike Brudevold <mike@brudevold.com> for spotting this!

https://launchpad.net/bugs/562978
2010-04-15 21:29:17 +02:00
Kay Sievers a60b077a46 cdrom_id: debug - print feature values in hex 2010-04-15 21:22:38 +02:00
Kay Sievers 140647ad1a cdrom_id: debug - print feature values in hex 2010-04-15 21:18:21 +02:00
Kay Sievers 2e9df19818 cdrom_id: print more debug messages 2010-04-15 20:48:04 +02:00
Kay Sievers 0413a47ebf cdrom_id: rework feature/profiles buffer parsing 2010-04-15 20:07:07 +02:00
Lennart Poettering 4f2d528d3b socket: optionally call accept() for incoming connections and spawn one service instance per connection 2010-04-15 06:20:00 +02:00
Lennart Poettering 9e2f7c11fb core: add minimal templating system 2010-04-15 03:11:15 +02:00
Kay Sievers c1b7f60dea update NEWS 2010-04-14 17:00:57 +02:00
Lennart Poettering 9fcc065a77 mount: only add those mount points to localfs.target as Wants that are marked for us 2010-04-13 21:55:34 +02:00
Lennart Poettering d8b4e2e9ac execute: fix terminal chowning logic 2010-04-13 21:13:49 +02:00
Lennart Poettering 10a9442017 systemctl: show sub state along active state 2010-04-13 20:59:01 +02:00
Lennart Poettering c27488016e execute: make flags_fds() parameters const 2010-04-13 20:43:02 +02:00
Lennart Poettering ba8c0bef6b service: fix segfault 2010-04-13 20:27:10 +02:00
Lennart Poettering 6f5e3f3527 main: run crash shell as subprocess, so that we can gdb pid 1 2010-04-13 20:26:54 +02:00
Lennart Poettering 27563bb44a conf-parser: print message about invalid sections 2010-04-13 19:26:26 +02:00
Lennart Poettering 46205bb66a conf-parser: silently ignore X- extension fields 2010-04-13 19:26:04 +02:00
Lennart Poettering 5e7ee61c1a main: add kernel option to enable confirm_spawn 2010-04-13 19:10:01 +02:00
Lennart Poettering e1f5e05109 execute: minor cleanups 2010-04-13 19:02:19 +02:00
Lennart Poettering c99b188ea0 main: expclitly ignore signal when executing crash shell 2010-04-13 18:52:56 +02:00
Lennart Poettering aaf694ca54 util: reset nl/cr flags on terminal when resetting 2010-04-13 18:51:22 +02:00
Lennart Poettering 02a51abad1 execute: chown() the tty when running owning them 2010-04-13 18:50:43 +02:00
Lennart Poettering 90a13a44cb service: don't timeout special services 2010-04-13 18:39:37 +02:00
Lennart Poettering b8d3418f7b execute: get rid of gcc warning 2010-04-13 18:37:36 +02:00
Martin Pitt 2b861dc927 cdrom_id: Fix uninitialized buffers
Commit 5c6954f is actually a no-op, since static variables are already zero'ed
by default anyway (but we keep it for clarity). The real difference was that a
build with -O0 wor while a build with -O2 didn't.

Turns out that some ioctls do not actually touch the result buffer in some
cases, so we need to zero the result buffers to avoid interpreting random da as
CD properties.

https://launchpad.net/bugs/559723
https://launchpad.net/bugs/561585
2010-04-13 15:25:48 +02:00
Kay Sievers a89d342dfb remove "ignore_remove" option 2010-04-13 12:45:38 +02:00
Kay Sievers 06ba47d833 rules: call modprobe on all events but "remove" 2010-04-13 12:20:55 +02:00
Martin Pitt 816e6bf0fb cdrom_id: Fix uninitialized variables
In cases where cdrom_id does not go through the entire code path and one of the
probing functions returns -1 or exits early, the remaining variables were never
initialized. This caused effects like "phantom" audio CDs on empty drives, or
bogus data like ID_CDROM_MEDIA_TRACK_COUNT=22528.

Initialize the variables right away to avoid that.

Bug-Ubuntu: https://launchpad.net/bugs/559723
2010-04-13 10:49:24 +02:00
Kay Sievers 1f084fe581 remove "all_partitions" option
We can not predict the major/minor of non-existing devices:
  $ grep . /sys/class/block/sd*/dev
  /sys/class/block/sda1/dev:259:524288
  /sys/class/block/sda2/dev:259:262144
  /sys/class/block/sda3/dev:259:786432
  /sys/class/block/sda4/dev:259:131072
  /sys/class/block/sda/dev:259:0
  /sys/class/block/sdb/dev:259:655360
  /sys/class/block/sdc/dev:259:393216

If this functionality is still needed for some broken hardware, it needs to be
solved with a tool not part of the udev package. Because such option is unreliable
and unsafe to use.
2010-04-13 08:52:48 +02:00
Lennart Poettering 70fcff314f units: install a few basic units by default 2010-04-13 05:18:12 +02:00
Lennart Poettering 9ea9a0c85c unit: allow state change from running to restarting 2010-04-13 04:51:38 +02:00
Lennart Poettering 7b68387983 execute: reset signal handlers when executing 2010-04-13 04:49:50 +02:00
Lennart Poettering c3b3c274cf main: freeze instead of exiting when run as init 2010-04-13 04:19:02 +02:00
Lennart Poettering 8c43883a68 main: try to block signals before executing crash shell 2010-04-13 04:07:19 +02:00
Lennart Poettering 243b1432c6 service: add basic validation hooks 2010-04-13 04:00:03 +02:00
Lennart Poettering dd8f71ee9f macro: hookup assert logic with log logic 2010-04-13 03:59:39 +02:00
Lennart Poettering 40531a555a service: fix restart enum name 2010-04-13 03:26:20 +02:00
Lennart Poettering 57ee42cefd manager: start D-Bus on SIGUSR2 2010-04-13 03:20:22 +02:00
Lennart Poettering 57c0c30e73 manager: we are not interested in SIGSTOP notifications 2010-04-13 02:36:56 +02:00
Lennart Poettering a337c6fcee main: when ignoring a signal set SA_RESTART 2010-04-13 02:36:19 +02:00
Lennart Poettering 0d87eb4279 load-fragment: simplify fragment loading code by using macros 2010-04-13 02:22:41 +02:00
Lennart Poettering 15d5d9d972 manager: fix printing of child process names 2010-04-13 02:10:17 +02:00
Lennart Poettering 80876c20f6 rework tty handling
We now make sure to run all services in their own session, possibly with
a controlling terminal.

This also extends the service and socket state machines a little.
2010-04-13 02:06:27 +02:00