• 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

88.89
/src/basic/iovec-wrapper.h
1
/* SPDX-License-Identifier: LGPL-2.1-or-later */
2
#pragma once
3

4
#include "forward.h"
5

6
struct iovec_wrapper {
7
        struct iovec *iovec;
8
        size_t count;
9
};
10

11
struct iovec_wrapper *iovw_new(void);
12
struct iovec_wrapper *iovw_free(struct iovec_wrapper *iovw);
13
struct iovec_wrapper *iovw_free_free(struct iovec_wrapper *iovw);
14

15
DEFINE_TRIVIAL_CLEANUP_FUNC(struct iovec_wrapper*, iovw_free_free);
14✔
16

17
void iovw_done_free(struct iovec_wrapper *iovw);
18
void iovw_done(struct iovec_wrapper *iovw);
19

20
int iovw_put(struct iovec_wrapper *iovw, void *data, size_t len);
21
static inline int iovw_consume(struct iovec_wrapper *iovw, void *data, size_t len) {
23✔
22
        /* Move data into iovw or free on error */
23
        int r;
23✔
24

25
        r = iovw_put(iovw, data, len);
23✔
26
        if (r < 0)
23✔
UNCOV
27
                free(data);
×
28

29
        return r;
23✔
30
}
31

32
static inline bool iovw_isempty(const struct iovec_wrapper *iovw) {
22,916✔
33
        return !iovw || iovw->count == 0;
22,916✔
34
}
35

36
int iovw_put_string_field(struct iovec_wrapper *iovw, const char *field, const char *value);
37
int iovw_put_string_field_free(struct iovec_wrapper *iovw, const char *field, char *value);
38
void iovw_rebase(struct iovec_wrapper *iovw, void *old, void *new);
39
size_t iovw_size(const struct iovec_wrapper *iovw);
40
int iovw_append(struct iovec_wrapper *target, const struct iovec_wrapper *source);
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