File tree 2 files changed +7
-2
lines changed
src/main/kotlin/net/kautler/github/action/setup_wsl
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
193
193
https://docs.microsoft.com/en-us/windows/wsl/wsl-config#configuration-settings-for-wslconf.
194
194
This can also be used if the distribution is installed already.
195
195
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
+
196
201
**Default value:** none
197
202
198
203
_**Example:**_
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ suspend fun main() {
270
270
}
271
271
272
272
if (wslConf.isNotEmpty()) {
273
- group(" Create /etc/wsl.conf" , ::createWslConf )
273
+ group(" Create or overwrite /etc/wsl.conf" , ::adjustWslConf )
274
274
}
275
275
276
276
if (setAsDefault()) {
@@ -356,7 +356,7 @@ suspend fun installDistribution() {
356
356
)
357
357
}
358
358
359
- suspend fun createWslConf () {
359
+ suspend fun adjustWslConf () {
360
360
exec(
361
361
commandLine = " wsl" ,
362
362
args = arrayOf(
You can’t perform that action at this time.
0 commit comments