/srv/irclogs.ubuntu.com/2022/05/21/#cloud-init.txt

ReventlovHello18:42
ReventlovCan I prevent the network config to be written after the first boot ?18:42
minimalReventlov: *after* the 1st boot or during the 1st boot?18:46
Reventlovwell, I need cloud-init to configure network only once, so I want to disable it after it has configured the network once18:47
Reventlovhttps://0x0.st/oapl.txt this is my conf right now, but i'm not sure which parts handle the network18:48
minimalwhich DataSource are you using?18:48
minimalalso your config has "distro: nixos". I don't believe cloud-init currently has NixOS support so are you using someone's patched version of cloud-init?18:49
Reventlovconfig drive18:50
Reventlovthe patch is provided by my distribution, yes: https://github.com/NixOS/nixpkgs/blob/634141959076a8ab69ca2cca0f266852256d79ee/pkgs/tools/virtualization/cloud-init/0001-add-nixos-support.patch18:51
Reventlovbut that should not be such a problem, no ?18:51
Reventlovor maybe there is not a way to disable the network configuration that's standard across cloud-init ?18:51
minimalso where is the network config coming from? Unlike NoCloud I don't believe ConfigDrive support providing a network-config YAML file18:52
Reventlovwell, i'm actually using proxmox that exposes the data as a /dev/sr0 in the system, isn't this configdrive ?18:53
minimalthat can be either configdrive or nocloud - what's the ISO label? "cidata" or "configdrive" ?18:56
minimaloops s/configdrive/config-2/18:56
Reventlovsr0    iso9660       cidata 2022-05-21-19-55-37-00                     0   100% /mnt18:58
minimalthat's NoCloud then18:58
minimalwhich can include a network-config file - is there one there?18:59
minimalassuming there is a network-config in the ISO then I believe it should only be used on 1st boot19:03
minimalthat Nix packaging is 21.4, a couple of releases behind current, but it should still work as expected19:04
minimalReventlov: ^^^19:30
Reventlovi'm looking into that, that might be the nixos service that sucks, thanks for the details :)19:35
Reventlov(there is actually a network-config in the ISO)19:35
minimalso when you say you only want to configure the network once, what do you mean? the contents of the network-config file in the ISO should be applied. Is the contents changing on each reboot?19:44
=== esv_ is now known as esv

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!