]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Set default to "user" for RuntimeNetwork=
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 3 Mar 2024 13:16:31 +0000 (14:16 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 3 Mar 2024 14:22:46 +0000 (15:22 +0100)
mkosi/config.py
mkosi/resources/mkosi.md

index c3caedf3fcd42882b0ec2bc795559cedd8307d03..40e647707111c6d4c03dd7f8ed9acd67b0905953 100644 (file)
@@ -2530,6 +2530,7 @@ SETTINGS = (
         section="Host",
         parse=config_make_enum_parser(Network),
         help="Set networking backend to use when booting the image",
+        default=Network.user,
     ),
     ConfigSetting(
         dest="ssh_key",
index e0cc35706409292daefaf7a088f0f2c958043913..48872791b743eea2c702584a2eda22b1a72424c2 100644 (file)
@@ -1708,11 +1708,12 @@ boolean argument: either `1`, `yes`, or `true` to enable, or `0`, `no`,
 
 `RuntimeNetwork=`: `--runtime-network=`
 
-: Takes one of `user`, `interface` or `none`. Specifies the networking
-  to set up when booting the image. `user` sets up usermode networking.
-  `interface` sets up a virtual network connection between the host and
-  the image. This translates to a veth interface for `mkosi shell` and
-  `mkosi boot` and a tap interface for `mkosi qemu` and `mkosi vmspawn`.
+: Takes one of `user`, `interface` or `none`. Defaults to `user`.
+  Specifies the networking to set up when booting the image. `user` sets
+  up usermode networking. `interface` sets up a virtual network
+  connection between the host and the image. This translates to a veth
+  interface for `mkosi shell` and `mkosi boot` and a tap interface for
+  `mkosi qemu` and `mkosi vmspawn`.
 
 : Note that when using `interface`, mkosi does not automatically
   configure the host interface. It is expected that a recent version of