• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

systemd / systemd / 15263807472

26 May 2025 08:53PM UTC coverage: 72.046% (-0.002%) from 72.048%
15263807472

push

github

yuwata
src/core/manager.c: log preset activity on first boot

This gives us a little more information about what units were enabled
or disabled on that first boot and will be useful for OS developers
tracking down the source of unit state.

An example with this enabled looks like:

```
NET: Registered PF_VSOCK protocol family
systemd[1]: Applying preset policy.
systemd[1]: Unit /etc/systemd/system/dnsmasq.service is masked, ignoring.
systemd[1]: Unit /etc/systemd/system/systemd-repart.service is masked, ignoring.
systemd[1]: Removed '/etc/systemd/system/sockets.target.wants/systemd-resolved-monitor.socket'.
systemd[1]: Removed '/etc/systemd/system/sockets.target.wants/systemd-resolved-varlink.socket'.
systemd[1]: Created symlink '/etc/systemd/system/multi-user.target.wants/var-mnt-workdir.mount' → '/etc/systemd/system/var-mnt-workdir.mount'.
systemd[1]: Created symlink '/etc/systemd/system/multi-user.target.wants/var-mnt-workdir\x2dtmp.mount' → '/etc/systemd/system/var-mnt-workdir\x2dtmp.mount'.
systemd[1]: Created symlink '/etc/systemd/system/afterburn-sshkeys.target.requires/afterburn-sshkeys@core.service' → '/usr/lib/systemd/system/afterburn-sshkeys@.service'.
systemd[1]: Created symlink '/etc/systemd/system/sockets.target.wants/systemd-resolved-varlink.socket' → '/usr/lib/systemd/system/systemd-resolved-varlink.socket'.
systemd[1]: Created symlink '/etc/systemd/system/sockets.target.wants/systemd-resolved-monitor.socket' → '/usr/lib/systemd/system/systemd-resolved-monitor.socket'.
systemd[1]: Populated /etc with preset unit settings.
```

Considering it only happens on first boot and not on every boot I think
the extra information is worth the extra verbosity in the logs just for
that boot.

5 of 6 new or added lines in 1 file covered. (83.33%)

5463 existing lines in 165 files now uncovered.

299151 of 415222 relevant lines covered (72.05%)

702386.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/src/basic/arphrd-util.c
1
/* SPDX-License-Identifier: LGPL-2.1-or-later */
2

3
#include <linux/if_arp.h>
4
#include <linux/if_infiniband.h>
5
#include <netinet/in.h>
6
#include <string.h>
7

8
#include "arphrd-util.h"
9

10
static const struct arphrd_name* lookup_arphrd(register const char *str, register GPERF_LEN_TYPE len);
11

12
#include "arphrd-from-name.inc"
13
#include "arphrd-to-name.inc"
14

15
int arphrd_from_name(const char *name) {
69✔
16
        const struct arphrd_name *sc;
69✔
17

18
        assert(name);
69✔
19

20
        sc = lookup_arphrd(name, strlen(name));
69✔
21
        if (!sc)
69✔
22
                return -EINVAL;
23

24
        return sc->id;
67✔
25
}
26

27
size_t arphrd_to_hw_addr_len(uint16_t arphrd) {
1,237✔
28
        switch (arphrd) {
1,237✔
29
        case ARPHRD_ETHER:
30
                return ETH_ALEN;
UNCOV
31
        case ARPHRD_INFINIBAND:
×
UNCOV
32
                return INFINIBAND_ALEN;
×
UNCOV
33
        case ARPHRD_TUNNEL:
×
34
        case ARPHRD_SIT:
35
        case ARPHRD_IPGRE:
36
                return sizeof(struct in_addr);
×
UNCOV
37
        case ARPHRD_TUNNEL6:
×
38
        case ARPHRD_IP6GRE:
39
                return sizeof(struct in6_addr);
×
40
        default:
×
UNCOV
41
                return 0;
×
42
        }
43
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc