Skip to content

Commit 4c6fb87

Browse files
committed
add container variants
1 parent b7c22f2 commit 4c6fb87

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.build/images/dietpi-installer

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,8 @@ _EOF_
450450
esac
451451
G_WHIP_MENU_ARRAY+=(
452452
'' '●─ Other '
453-
'75' ': Container image'
453+
'75.1' ': Container image without network'
454+
'75.2' ': Container image with network'
454455
'22' ': Generic device'
455456
)
456457

@@ -864,8 +865,8 @@ setenv rootuuid "true"' /boot/boot.cmd
864865
local apackages
865866
mapfile -t apackages < <(apt-mark showmanual)
866867

867-
# Containers: keep necessary packages to avoid losing network connectivity
868-
if [[ ${apackages[0]} && $G_HW_MODEL == 75 ]]
868+
# Containers with network: keep necessary packages to avoid losing network connectivity
869+
if [[ ${apackages[0]} && $G_HW_MODEL == 75 && $HW_VARIANT == 2 ]]
869870
then
870871
rpackages=(
871872
'ifupdown'

0 commit comments

Comments
 (0)