Skip to content

Commit bec3068

Browse files
committed
Add support for WSL images
This change introduces support for building and collecting WSL (Windows Subsystem for Linux) images using the Kiwi backend.
1 parent 0e4d8c6 commit bec3068

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

iso/empanadas/empanadas/backends/kiwi.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@
6161
"kiwiProfile": "SBC",
6262
"fileType": "raw",
6363
"outputKey": "disk_image"
64+
},
65+
"WSL": {
66+
"kiwiType": "wsl",
67+
"kiwiProfile": "WSL",
68+
"fileType": "wsl",
69+
"outputKey": "container"
6470
}
6571
}
6672
)

iso/empanadas/empanadas/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ class Color:
120120
"Vagrant": ["Libvirt", "Vbox", "VMware"],
121121
"OCP": ["Base"],
122122
"SBC": ["RaspberryPi", "GenericArm"],
123+
"WSL": ["Base"]
123124
}
124125

125126

iso/empanadas/empanadas/configs/el9.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@
137137
type: "oem"
138138
profile_names:
139139
- Cloud-OCP-Base
140+
WSL:
141+
format: wsl
142+
variants: [Base]
143+
kiwi:
144+
type: wsl
145+
profile_names:
146+
- WSL-Base
140147
Vagrant:
141148
format: box
142149
variants: [Libvirt, Vbox, VMware]

iso/empanadas/empanadas/scripts/build_image.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ def run():
7171
if results.backend == "kiwi":
7272
kiwi_file = "config.xml"
7373
if results.variant == "RaspberryPi":
74-
kiwi_file = "rocky-sbc-raspberrypi.xml"
74+
kiwi_file = "rocky-sbc-raspberrypi.xml"
75+
if results.type == "WSL":
76+
kiwi_file = "rocky-wsl.xml"
7577

7678
backend = KiwiBackend(kiwi_file=kiwi_file)
7779
else:

0 commit comments

Comments
 (0)