[PATCH container 1/1] Setup: Allow hostname configuration on NixOS
Harikrishnan R
rharikrishnan95 at gmail.com
Fri Mar 18 11:21:13 CET 2022
While NixOS generally overrides any static contents in /etc/hostname
with the hostname defined in `networking.hostname`, it can use the
contents of `/etc/hostname` provided by PVE if this option is not set.
Signed-off-by: Harikrishnan R <rharikrishnan95 at gmail.com>
---
src/PVE/LXC/Setup/NixOS.pm | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/PVE/LXC/Setup/NixOS.pm b/src/PVE/LXC/Setup/NixOS.pm
index 905ca8c..845d2d5 100644
--- a/src/PVE/LXC/Setup/NixOS.pm
+++ b/src/PVE/LXC/Setup/NixOS.pm
@@ -29,10 +29,6 @@ sub setup_network {
$self->setup_systemd_networkd($conf);
}
-sub set_hostname {
- my ($self, $conf) = @_;
-}
-
sub set_timezone {
my ($self, $conf) = @_;
}
--
2.35.1
More information about the pve-devel
mailing list