Skip to content

Conversation

@alfonsosanchezbeato
Copy link
Contributor

chroot to the directory where systemd switches root from the initramfs.
Otherwise the svg file cannot be saved.

This is on top of #63.

I am opening as draft as I would like to get opinions before proposing. The main question is how to determine the systemd switch root directory (usually /sysroot), would it make sense to make it a configurable item?

jamuir and others added 3 commits February 19, 2025 12:26
Share the first part of the Cisco patch authored by Oleksiy Obitotskyy
to fix reading from /proc/schedstat post-switch-root (see systemd#60).

More changes are needed since writing the svg file fails.
chroot to the directory where systemd switches root from the initramfs.
Otherwise the svg file cannot be saved.

static int is_mountpoint(const char *path) {
struct stat s_path, s_parent;
char *path_aux, *parent_path;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_cleanup_free_?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants