forked from rpm-software-management/mock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respect
nspawn_args
whenever doChroot
is called
This also includes all `doOutChroot()` calls, as that method internally calls `doChroot()`. The issue was identified when trying to work around a problem [1] where the SELinux policy prevented `systemd-machined` from creating a varlink socket, causing it to fail to start. As a result, `systemd-nspawn` could not register the machine. Tomáš tried the following configuration: config_opts['nspawn_args'] = ['--register=no'] This was intended to ensure that `systemd-nspawn` does not attempt to register the machine with `systemd-machined`. However, the configuration had no effect (the argument was not visible in the `systemd-nspawn` command line, and the original issue persisted). [1] https://issues.redhat.com/browse/RHEL-49567 Co-authored-by: Tomáš Hozza <[email protected]> Closes: rpm-software-management#1410 Closes: rpm-software-management#1456
- Loading branch information
Showing
6 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
releng/release-notes-next/nspawn-args-chroot-bootstrap.bugfix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Previously, the `nspawn_args` configuration value was not applied in multiple | ||
internal `doChroot()` calls. This could cause issues when custom nspawn | ||
arguments were needed everywhere (see [PR#1410][]). Now, `doChroot()` | ||
automatically applies `nspawn_args`, shifting the responsibility from callers to | ||
callee. |