-
Notifications
You must be signed in to change notification settings - Fork 236
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
Which also includes all doOutChroot(), because that method calls doChroot() internally. This issue was found when trying to workaround an issue [1] when SELinux policy forbid systemd-machine to create a varlink socket and thus start. This resulted in systemd-nspawn not being able to register a machine. To workaround this, Tomáš added the following snippet to the configuration: config_opts['nspawn_args'] = ['--register=no'] So that systemd-nspawn does not try to register the machine with systemd-machine. However, this had no effect (and the argument was not visible on command-line and still failed). [1] https://issues.redhat.com/browse/RHEL-49567 Co-authored-with: Tomáš Hozza <[email protected]>
- 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. |