From: Daan De Meyer Date: Sun, 3 Mar 2024 13:16:31 +0000 (+0100) Subject: Set default to "user" for RuntimeNetwork= X-Git-Tag: v21~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec0fee8fb8e83c96a4412c2b1b75b4ab231c0dd6;p=thirdparty%2Fmkosi.git Set default to "user" for RuntimeNetwork= --- diff --git a/mkosi/config.py b/mkosi/config.py index c3caedf3f..40e647707 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -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", diff --git a/mkosi/resources/mkosi.md b/mkosi/resources/mkosi.md index e0cc35706..48872791b 100644 --- a/mkosi/resources/mkosi.md +++ b/mkosi/resources/mkosi.md @@ -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