docs/gotchas: describe hive-priv's network-isolation nspawn-conf branch, fix a spliced doc comment
This commit is contained in:
parent
734fc6599c
commit
fcdba9e681
2 changed files with 18 additions and 8 deletions
|
|
@ -2578,12 +2578,6 @@ fn validate_bind_path(path: &str) -> Result<()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
/// Update `/etc/nixos-containers/<container>.conf`: strips network-isolation
|
||||
/// vars (`PRIVATE_NETWORK`, `HOST_ADDRESS*`, `LOCAL_ADDRESS*`, `HOST_BRIDGE`,
|
||||
/// Update `/etc/nixos-containers/<container>.conf`: strip old network vars,
|
||||
/// write network isolation settings, then append `EXTRA_NSPAWN_FLAGS`.
|
||||
/// When `isolation` is `Some`, writes `PRIVATE_NETWORK=1` + veth wiring;
|
||||
/// when `None`, writes `PRIVATE_NETWORK=0`.
|
||||
/// `--tmpfs=<mount>/.git` for every bound git repo, hiding its metadata
|
||||
/// from inside the container.
|
||||
///
|
||||
|
|
@ -2613,6 +2607,12 @@ fn git_overlay_flags(binds: &[BindMount]) -> Vec<String> {
|
|||
.collect()
|
||||
}
|
||||
|
||||
/// Update `/etc/nixos-containers/<container>.conf`: strip old network vars
|
||||
/// (`PRIVATE_NETWORK`, `HOST_ADDRESS*`, `LOCAL_ADDRESS*`, `HOST_BRIDGE`),
|
||||
/// write the current network-isolation settings, then append
|
||||
/// `EXTRA_NSPAWN_FLAGS`. When `isolation` is `Some`, writes
|
||||
/// `PRIVATE_NETWORK=1` + veth wiring; when `None`, writes
|
||||
/// `PRIVATE_NETWORK=0`.
|
||||
fn write_nspawn_flags(
|
||||
container: &str,
|
||||
binds: &[BindMount],
|
||||
|
|
|
|||
Loading…
Reference in a new issue