All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: 陶泽宇 <i@taozeyu.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] Can buildroot support WSL config file
Date: Wed, 1 Nov 2023 10:06:38 +0100	[thread overview]
Message-ID: <20231101090638.GE2568@scaer> (raw)
In-Reply-To: <F5BEC5A5-8166-48FA-A7C7-45C4F1250585@taozeyu.com>

陶泽宇, All,

On 2023-11-01 16:04 +0800, 陶泽宇 spake thusly:
> Many Linux distributions run "systemd" by default. But  if you want WSL runs systemd by default, you need to put something in the
> file /etc/wsl.conf.
> [boot]
> systemd=true
> ( To see  [1]https://learn.microsoft.com/en-us/windows/wsl/wsl-config#configuration-settings-for-wslconf )
> Can buildroot supports it in config panel? Maybe support some options in  system/Config.in to generate /etc/wsl.conf. only a single
> checkbox or  more list of options mentioned in Microsoft WSL documents.

This file is not part of systemd; systemd does not even look at this
file at all.

Instead, as I understand it, it is looked up by the WSL2 virtual machine
runtime. As such, it is part of the integration with your "machine"
(virtual in this case).

Buildroot already offers a way to customise the generated root
filesystem in various ways, like a rootfs overlay, or a post-build
script; see the manual for further details;
    https://buildroot.org/downloads/manual/manual.html#rootfs-custom

Regards,
Yann E. MORIN.

> 
> Links:
> 1. https://learn.microsoft.com/en-us/windows/wsl/wsl-config#configuration-settings-for-wslconf

> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot


-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2023-11-01  9:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-01  8:04 [Buildroot] Can buildroot support WSL config file 陶泽宇
2023-11-01  9:06 ` Yann E. MORIN [this message]
2023-11-02  5:28   ` 陶泽宇

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231101090638.GE2568@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@buildroot.org \
    --cc=i@taozeyu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.