1. 03 Apr, 2013 2 commits
    • Zbigniew Jędrzejewski-Szmek's avatar
      build-sys: "link" libsystemd-id128 against libsd-daemon-internal · d3b9e0ff
      Zbigniew Jędrzejewski-Szmek authored
      georgem> libsystemd-id128.so: undefined reference to `sd_listen_fds'
      
      In some toolchains (--as-needed not used or not working), the
      toolchain doesn't drop this dependency. It is introduced because
      sd-id128.so is linked against sd-shared.la, and some functions therein
      use libsystemd-daemon, but libsd-id128 doesn't use any of those
      functions.
      
      This results in no change in libsystemd-id128.so when the unused
      symbols are properly stripped.
      d3b9e0ff
    • Lennart Poettering's avatar
      shared: rework env file reader · f73141d7
      Lennart Poettering authored
      Implement this with a proper state machine, so that newlines and
      escaped chars can appear in string assignments. This should bring the
      parser much closer to shell.
      f73141d7
  2. 01 Apr, 2013 2 commits
  3. 31 Mar, 2013 2 commits
  4. 30 Mar, 2013 4 commits
  5. 29 Mar, 2013 5 commits
  6. 26 Mar, 2013 5 commits
    • Auke Kok's avatar
      readahead: cleanups · b0640287
      Auke Kok authored
      - check for OOM
      - no need to use floats and round()
      b0640287
    • Auke Kok's avatar
      readahead: chunk on spinning media · 94243ef2
      Auke Kok authored
      Readahead has all sorts of bad side effects depending on your
      storage media. On rotating disks, it may be degrading startup
      performance if enough requests are queued spanning linearly
      over all blocks early at boot, and mount, blkid and friends
      want to insert reads to the start of these block devices after.
      
      The end result is that on spinning disks with ext3/4 that udev
      and mounts take a very long time, and nothing really happens until
      readahead is completely finished.
      
      This has the net effect that the CPU is almost entirely idle
      for the entire period that readahead is working. We could have
      finished starting up quite a lot of services in this time if
      we were smarter at how we do readahead.
      
      This patch sorts all requests into 2 second "chunks" and sub-sorts
      each chunk by block. This adds a single cross-drive seek per "chunk"
      but has the benefit that we will have a lot of the blocks we need
      early on in the boot sequence loaded into memory faster.
      
      For a comparison of how before/after bootcharts look (ext4 on a
      mobile 5400rpm 250GB drive) please look at:
      
          http://foo-projects.org/~sofar/blocked-tests/
      
      There are bootcharts in the "before" and "after" folders where you
      should be able to see that many low-level services finish 5-7
      seconds earlier with the patch applied (after).
      94243ef2
    • Lennart Poettering's avatar
      03e11516
    • Lennart Poettering's avatar
      build-sys: ship missing unit file · 810bc2e3
      Lennart Poettering authored
      810bc2e3
    • Kay Sievers's avatar
      06f42898
  7. 25 Mar, 2013 4 commits
  8. 23 Mar, 2013 1 commit
    • Kay Sievers's avatar
      hwdb: ID_PRODUCT_FROM_DATABASE --> ID_MODEL_FROM_DATABASE · 1d09582a
      Kay Sievers authored
      With the conversion from pci-db + usb-db to hwdb, the property
      got accitentially renamed.
      
      Move the name back to the long established identifier *MODEL*
      instead of *PRODUCT*.
      
        $ git grep -l ID_MODEL_FROM_DATABASE
        hwdb/20-pci-vendor-model.hwdb
        hwdb/20-usb-vendor-model.hwdb
        hwdb/ids-update.pl
        man/systemd.device.xml
        rules/78-sound-card.rules
        src/core/device.c
        src/cryptsetup/cryptsetup.c
      1d09582a
  9. 22 Mar, 2013 1 commit
  10. 21 Mar, 2013 4 commits
  11. 20 Mar, 2013 2 commits
  12. 18 Mar, 2013 1 commit
  13. 16 Mar, 2013 1 commit
    • Zbigniew Jędrzejewski-Szmek's avatar
      systemd-python: add systemd.daemon wrapping sd-daemon · b04c8c83
      Zbigniew Jędrzejewski-Szmek authored
      Please see the documentation (e.g. pydoc3 systemd.daemon) for full
      description. As usual, systemd._daemon wraps the raw interface, while
      systemd.daemon provides the more pythonic API. sd_listen_fds,
      sd_booted, sd_is_fifo, sd_is_socket, sd_is_socket_unix,
      sd_is_socket_inet, sd_is_mq, and SD_LISTEN_FDS_START are currently
      wrapped.
      b04c8c83
  14. 15 Mar, 2013 2 commits
  15. 14 Mar, 2013 2 commits
    • Harald Hoyer's avatar
      Make initrd.target the default target in the initrd · 9e5f0f92
      Harald Hoyer authored
      First, rename root-fs.target to initrd-root-fs.target to clarify its usage.
      
      Mount units with "x-initrd-rootfs.mount" are now ordered before
      initrd-root-fs.target. As we sometimes construct /sysroot mounts in
      /etc/fstab in the initrd, we want these to be mounted before the
      initrd-root-fs.target is active.
      
      initrd.target can be the default target in the initrd.
      
                                   (normal startup)
                                          :
                                          :
                                          v
                                    basic.target
                                          |
                   ______________________/|
                  /                       |
                  |                  sysroot.mount
                  |                       |
                  |                       v
                  |             initrd-root-fs.target
                  |                       |
                  |                       v
                  |            initrd-parse-etc.service
      (custom initrd services)            |
                  |                       v
                  |            (sysroot-usr.mount and
                  |             various mounts marked
                  |               with fstab option
                  |                x-initrd.mount)
                  |                       |
                  |                       v
                  |                initrd-fs.target
                  |                       |
                  \______________________ |
                                         \|
                                          v
                                     initrd.target
                                          |
                                          v
                                initrd-cleanup.service
                                     isolates to
                               initrd-switch-root.target
                                          |
                                          v
                   ______________________/|
                  /                       |
                  |        initrd-udevadm-cleanup-db.service
                  |                       |
      (custom initrd services)            |
                  |                       |
                  \______________________ |
                                         \|
                                          v
                              initrd-switch-root.target
                                          |
                                          v
                              initrd-switch-root.service
                                          |
                                          v
                                     switch-root
      9e5f0f92
    • Zbigniew Jędrzejewski-Szmek's avatar
      build-sys: link libsystemd-login also against libsystemd-daemon-internal · d29dd033
      Zbigniew Jędrzejewski-Szmek authored
      https://bugs.freedesktop.org/show_bug.cgi?id=62085
      
      /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libsystemd-login.so:
      undefined reference to `sd_listen_fds'
      
      In ee465038 'build-sys: break dependency loop between
      libsystemd-id128.la and -shared.la', a partial fix was applied, and
      the use of functions from libsystemd-id128 was removed from
      libsystemd-shared. Nevertheless, fdset.c was still using sd_listen_fds,
      so libsystemd-login should be linked against libysystemd-daemon
      or libsystemd-daemon-internal.
      Tested-by: default avatarElias Probst <mail@eliasprobst.eu>
      d29dd033
  16. 13 Mar, 2013 2 commits