File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/main/kotlin/net/kautler/github/action/setup_wsl Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,11 @@ This can be used to adjust various settings as documented at
193193https://docs.microsoft.com/en-us/windows/wsl/wsl-config#configuration-settings-for-wslconf.
194194This can also be used if the distribution is installed already.
195195
196+ **WARNING:** Setting this option will overwrite any existing content of the file.
197+ Some distributions like Ubuntu-24.04 might already ship with a wsl.conf file.
198+ Make sure to check whether a file exists by default and whether you want to included
199+ its contents in your configured value.
200+
196201**Default value:** none
197202
198203_**Example:**_
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ suspend fun main() {
270270 }
271271
272272 if (wslConf.isNotEmpty()) {
273- group(" Create /etc/wsl.conf" , ::createWslConf )
273+ group(" Create or overwrite /etc/wsl.conf" , ::adjustWslConf )
274274 }
275275
276276 if (setAsDefault()) {
@@ -356,7 +356,7 @@ suspend fun installDistribution() {
356356 )
357357}
358358
359- suspend fun createWslConf () {
359+ suspend fun adjustWslConf () {
360360 exec(
361361 commandLine = " wsl" ,
362362 args = arrayOf(
You can’t perform that action at this time.
0 commit comments