Mellanox / libvma

Linux user space library for network socket acceleration based on RDMA compatible network adaptors
https://www.mellanox.com/products/software/accelerator-software/vma?mtag=vma
Other
559 stars 152 forks source link

issue: 3388776 Improve systemd check for chroot environment #1028

Closed igor-ivanov closed 11 months ago

igor-ivanov commented 1 year ago

See: http://0pointer.de/blog/projects/changing-roots

First of all, systemctl detects when it is run in a chroot. If so, most of its operations will become NOPs, with the exception of systemctl enable and systemctl disable. If a package installation script hence calls these two commands, services will be enabled in the guest OS. However, should a package installation script include a command like systemctl restart as part of the package upgrade process this will have no effect at all when run in a chroot() environment.

Description

Change systemctl call on command -v systemctl

What

Improve installation on systemd setup

Why ?

RM:3388776

Change type

What kind of change does this PR introduce?

Check list

igor-ivanov commented 1 year ago

bot:retest