Skip to content

Commit 157ded3

Browse files
authored
fix(wsl): missing stop_all runlevel (#60)
1 parent eb6f0a4 commit 157ded3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

target_builder/wsl2_amd64

+6
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,14 @@ copy_layer() {
8181
sync
8282
}
8383

84+
# enter an empty runlevel will stop all service
85+
create_stop_runlevel(){
86+
mkdir -p "$rootfs_dir/etc/runlevels/stop_all"
87+
}
88+
8489
echo "=== $profile_name ==="
8590

8691
bootstrap_alpine
8792
copy_layer
93+
create_stop_runlevel
8894
pack_rootfs

0 commit comments

Comments
 (0)