Skip to content

Clean up startup #328

Merged
merged 40 commits into from
Jul 4, 2023
Merged

Clean up startup #328

merged 40 commits into from
Jul 4, 2023

Commits on Jul 4, 2023

  1. Configuration menu
    Copy the full SHA
    b88374f View commit details
    Browse the repository at this point in the history
  2. klog.service: Remove

    Note, that this service has not been enabled and /sbin/klogd doesn't
    exist.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    7106154 View commit details
    Browse the repository at this point in the history
  3. fix-lpp, fix-uring: Remove

    We no longer have kernels which require these security live-patches, so
    remove.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    1699461 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e0d9cb2 View commit details
    Browse the repository at this point in the history
  5. mxnetctl: Remove "upgrade" command

    Remove upgrade function, because we'll never need it again.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    1245bb5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    850eef8 View commit details
    Browse the repository at this point in the history
  7. xaruba.service: Remove

    This service provided access to the aruba wlan controller for guest
    provisioning. This is long obsolete.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    beefa58 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    4fcc54c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5af77c3 View commit details
    Browse the repository at this point in the history
  10. mxrouter.service: Clean up

    mxrouter.service does not provice (local) network service, so normalize
    it.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    4e69a29 View commit details
    Browse the repository at this point in the history
  11. tree: Remove Description= from all units

    If a unit doesn't have a Description option, systemd will use the unit
    name in messages. I think that is better, because then you don't need to
    be familiar with the descriptions to mentally map, for example, "MX
    mount local data filessystems" (sic!) to "mxmount.service" to get from a
    log message to the unit name which you can use as an argument to
    `systemctl`or `journalctl`.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    e3dae4e View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a821f50 View commit details
    Browse the repository at this point in the history
  13. startup-tags: Pull startup-tags from sysinit.target

    Make startup-tags a dependency of sysinit-target
    
    With this change, we no longer need to create an explicit dependency to
    this unit in conditionally started service or socket units, because these units
    have a default order dependency on sysinit.target and the later
    basic.target.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    28a7a1f View commit details
    Browse the repository at this point in the history
  14. tree: Remove dependencies on startup-tags.service

    startup-tags.service has been made a dependency of sysinit.target. As
    all services depend on sysinit.target by default, we no longer need an
    explicit dependency on startup-targs.service in the individual services.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    6285deb View commit details
    Browse the repository at this point in the history
  15. automount.service: Start before basic.target

    Currently, automount.service races with mxstartup.service. mxstartup
    itself and also the services it starts, expect paths like /pkg to be
    available. So make automount namespace part of basic.target. Normal
    Services order after basic.target by default.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    78694b1 View commit details
    Browse the repository at this point in the history
  16. getty-checktrust: Fix dependencies

    It is not possible to use template units with directives, so
    
        Before=getty@.service
    
    does not work.
    
    There is a getty-pre.target unit which can be requested by services,
    which want to be ordered before getty. Use that instead.
    
    Although, WantedBy=getty@.service does work, this is strictly not
    correct, because we want this service to run indepdendent from getty,
    for example, to set the tag for lightdm. Change to
    WantedBy=multi-user.target.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    a0a6050 View commit details
    Browse the repository at this point in the history
  17. Add wait-network-online.service

    Add a service which waits (max 15 seconds) for the network to be
    available. We define 'available' as the ability to ping our default
    router by its name, which implies dns is working.
    
    Service units, which really need network to start, should add
    
        After=network-online.target
        Wants=network-online.target
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    0123718 View commit details
    Browse the repository at this point in the history
  18. sysctl.conf: Allow inet free binds

    Allow inet free binds (bind to any ip address) so that services which
    bind to specific ip addresses (e.g. $MX_IPADDR) don't need to wait for
    network setup.
    
    This simplifies our startup, because we can avoid to pull
    network-online.target or order units after network.service just to to be
    able to listen to a specific address.
    
    Note, that we still need network to resolve names to addresses.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    915614d View commit details
    Browse the repository at this point in the history
  19. tree: Fix network startup

    See [1].
    
    The network service providers (network.service, mxvlan.service,
    unbound.service) are pulled from multi-user.target (not from
    network.target).
    
    network.service pulls network.target so that other services might use
    "After=network.target" (only for shutdown order).
    
    network.service, which has DefaultDependencies=no, needs to order iteslf
    behind sysinit.target, so that the network devices are available.
    
    [1]: https://systemd.io/NETWORK_ONLINE/
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    9f89f0b View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    73c9252 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    bc416e7 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    d9666a5 View commit details
    Browse the repository at this point in the history
  23. nvidiactl: Order after getty-pre.target

    Units, which want to use the console before getty is started, can order
    themself before getty-pre.target.
    
    Use the same target before loading a graphics driver which disrupts the
    screen.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    3e605d5 View commit details
    Browse the repository at this point in the history
  24. modprobe.d: Disable i915

    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    9df0af5 View commit details
    Browse the repository at this point in the history
  25. i915.service: Add

    After we disabled autoloading of i915 to avoid loosing the startup
    console on an nvidia card, we need to load it manually. Add service to
    do so.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    0b8af45 View commit details
    Browse the repository at this point in the history
  26. mxraid, mxmount: Start before basic.target

    There is a race when other services want to use local amd paths. All
    services order behind basic.target per default, so move mxraid and
    mxmount before it.
    
    Also make mxraid.startup.service and mxraid.shutdown.service into one
    but temporarily keep mxraid.shutdown.service for running systems.
    
    Use systemd-udev-settle.service instead of our udev-settled.target,
    which can be removed in a later commit.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    4307bd0 View commit details
    Browse the repository at this point in the history
  27. named.service: Remove obsolete dependencies

    After basic.target, local automount paths should work. Also, we can
    start without network connectivity. Remove obsolete dependencies.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    ee1d3fa View commit details
    Browse the repository at this point in the history
  28. mxstartup: Wait for network online

    We might start up a service which requires network connectivity, so wait
    for it.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    d8c9acf View commit details
    Browse the repository at this point in the history
  29. automount.service: Shut down before network

    On shutdown, automount tries to unmount all remaining mount points. This
    might include remote mountpoints. Order after network.target, so that
    automount gets stopped before network.target. See [1].
    
    [1]: https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    dc9eeba View commit details
    Browse the repository at this point in the history
  30. nfsd.service: Remove redundant depdencies

    automount.service, which now is before basic.target, ist rather slow to
    start. nfsd.service doesn't need to wait for it, because we are not
    going to export automount paths.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    b2ae36b View commit details
    Browse the repository at this point in the history
  31. udev-settled.target: Remove obsolete unit

    This is no longer needed. Services can wait for
    systemd-udev.settle.service. Services behind sysinit.target already do
    that.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    f64e2a9 View commit details
    Browse the repository at this point in the history
  32. mxstartup: Import files form source repository

    Import files from b51f29e5 ("Merge pull request #10 from
    mariux64/fix-su-option") of github.molgen.mpg.de:mariux64/mxstartup.git
    into repository.
    
    It is just cumbersome to have these n a seperate repository with
    releases and bee installation.
    
    The mxstartup bee package should be deinstalled if this is merged.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    24df8b4 View commit details
    Browse the repository at this point in the history
  33. Revert "mxstartup: Wait for network online"

    This reverts commit 7d5d66c.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    852e22a View commit details
    Browse the repository at this point in the history
  34. mxstartup.service: Fix dependencies

    Only wait for network online, because /etc/,xstartups uses hostnames
    which need to be resolved and services started by it might fail when
    they don't have network.
    
    Remove other dependencies are already resolved by DefaultDependencies.
    
    Also remove Desription for easier debugging.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    231e6a1 View commit details
    Browse the repository at this point in the history
  35. mxstartup2mxconfig: Use system perl

    Using the default perl triggers an unwanted automounter call during
    startup.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    b093447 View commit details
    Browse the repository at this point in the history
  36. automount.service: Do not rebuild automount maps on boot

    Avoid the time consuming step to regenerate automount maps from the amd
    maps. It dowsn't make much sense, because the amd maps should be as good
    as the amd maps.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    2b9fb60 View commit details
    Browse the repository at this point in the history
  37. lightdm.service: Import into mxtools

    Import lightdm.service from bee packge ligthdm-1.30.0-3.x86_64 into this
    repository.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    23f1e70 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    40b2782 View commit details
    Browse the repository at this point in the history
  39. nvidia.service: Order before display-manager

    Use alias for the order. This also removes the reference to the
    non-existing gdm.service.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    aaa68a3 View commit details
    Browse the repository at this point in the history
  40. lightdm.service: Remove obsolete references

    Remove startup-tags condition, because we only have lightdm now. Remove
    dependencies on startup-tags.service as well, which would not be needed
    even if we used the tags.
    
    Also, remove After= dependency to nvidia.service, because this is now
    handled by nvidia.service with a Before=display-manager.service
    dependency.
    donald committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    f1476fa View commit details
    Browse the repository at this point in the history