* [Buildroot] Can buildroot support WSL config file
@ 2023-11-01 8:04 陶泽宇
2023-11-01 9:06 ` Yann E. MORIN
0 siblings, 1 reply; 3+ messages in thread
From: 陶泽宇 @ 2023-11-01 8:04 UTC (permalink / raw)
To: buildroot
[-- Attachment #1.1: Type: text/plain, Size: 481 bytes --]
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 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.
[-- Attachment #1.2: Type: text/html, Size: 1912 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] Can buildroot support WSL config file
2023-11-01 8:04 [Buildroot] Can buildroot support WSL config file 陶泽宇
@ 2023-11-01 9:06 ` Yann E. MORIN
2023-11-02 5:28 ` 陶泽宇
0 siblings, 1 reply; 3+ messages in thread
From: Yann E. MORIN @ 2023-11-01 9:06 UTC (permalink / raw)
To: 陶泽宇; +Cc: buildroot
陶泽宇, 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] Can buildroot support WSL config file
2023-11-01 9:06 ` Yann E. MORIN
@ 2023-11-02 5:28 ` 陶泽宇
0 siblings, 0 replies; 3+ messages in thread
From: 陶泽宇 @ 2023-11-02 5:28 UTC (permalink / raw)
To: Yann E. MORIN; +Cc: buildroot
Thanks. It works to me.
> 2023年11月1日 17:06,Yann E. MORIN <yann.morin.1998@free.fr> 写道:
>
> 陶泽宇, 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-11-02 5:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-01 8:04 [Buildroot] Can buildroot support WSL config file 陶泽宇
2023-11-01 9:06 ` Yann E. MORIN
2023-11-02 5:28 ` 陶泽宇
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.