@@ -1195,15 +1195,15 @@ get_construct_vm_os_profile()
1195
1195
_cloud_list=$( ${MKTEMP_CMD} )
1196
1196
1197
1197
trap "${RM_CMD} -f ${_classic_list} ${_cloud_list}" HUP INT ABRT BUS TERM EXIT
1198
- env NOCOLOR=1 show_profile_list search_profile=${_search_profile} show_cloud=0 show_${emulator}=1 uniq=1 display=path,name,contrib header=0 arch_only=${arch} > ${_classic_list}
1199
- env NOCOLOR=1 show_profile_list search_profile=${_search_cloud_profile} show_cloud=1 show_${emulator}=1 uniq=1 display=path,name,contrib header=0 arch_only=${arch} > ${_cloud_list}
1198
+ env NOCOLOR=1 show_profile_list search_profile=${_search_profile} show_cloud=0 show_${emulator}=1 uniq=1 display=path,name,contrib,imginit header=0 arch_only=${arch} > ${_classic_list}
1199
+ env NOCOLOR=1 show_profile_list search_profile=${_search_cloud_profile} show_cloud=1 show_${emulator}=1 uniq=1 display=path,name,contrib,imginit header=0 arch_only=${arch} > ${_cloud_list}
1200
1200
1201
1201
_classic_cnt=$( ${WC_CMD} ${_classic_list} | ${AWK_CMD} '{printf $1}' )
1202
1202
_cloud_cnt=$( ${WC_CMD} ${_cloud_list} | ${AWK_CMD} '{printf $1}' )
1203
1203
1204
1204
menu_list="${menu_list} '>' ' -- Classic images [${_classic_cnt}] -- ' ''"
1205
1205
1206
- eval $( ${CAT_CMD} ${_classic_list} | while read path vm_profile contrib; do
1206
+ eval $( ${CAT_CMD} ${_classic_list} | while read path vm_profile contrib imginit ; do
1207
1207
unset long_description iso_img_dist_size
1208
1208
eval $( ${GREP_CMD} ^long_description= ${path} )
1209
1209
eval $( ${GREP_CMD} ^iso_img_dist_size= ${path} )
@@ -1217,7 +1217,12 @@ get_construct_vm_os_profile()
1217
1217
fi
1218
1218
[ "${contrib}" = "1" ] && long_description="[contrib] ${long_description}"
1219
1219
_mypath=$( echo ${path} | ${SED_CMD} s:^${workdir}/::g )
1220
- menu_list="${menu_list} '${vm_profile}' '${_mypath}' '${long_description}, size: ${iso_img_dist_size}'"
1220
+ # ↯ - downloaded ( echo $'\U21AF' )
1221
+ if [ "${imginit}" = "1" ]; then
1222
+ menu_list="${menu_list} '${vm_profile}' '${_mypath} (↯)' '${long_description}, size: ${iso_img_dist_size}, (↯) - image already downloaded/cached'"
1223
+ else
1224
+ menu_list="${menu_list} '${vm_profile}' '${_mypath}' '${long_description}, size: ${iso_img_dist_size}'"
1225
+ fi
1221
1226
echo "menu_list=\"${menu_list}\""
1222
1227
# store filename
1223
1228
echo "profile${_all}=\"${vm_profile}\""
@@ -1226,7 +1231,7 @@ get_construct_vm_os_profile()
1226
1231
echo "_all=${_all}"
1227
1232
done )
1228
1233
1229
- eval $( ${CAT_CMD} ${_cloud_list} | while read path vm_profile contrib; do
1234
+ eval $( ${CAT_CMD} ${_cloud_list} | while read path vm_profile contrib imginit ; do
1230
1235
unset long_description iso_img_dist_size
1231
1236
# when -n $1 we apply profile, so skip unnecessary vars
1232
1237
eval $( ${GREP_CMD} ^long_description= ${path} )
@@ -1241,7 +1246,12 @@ get_construct_vm_os_profile()
1241
1246
fi
1242
1247
[ "${contrib}" = "1" ] && long_description="[contrib] ${long_description}"
1243
1248
_mypath=$( echo ${path} | ${SED_CMD} s:^${workdir}/::g )
1244
- cloud_menu_list="${cloud_menu_list} '${vm_profile}' '${_mypath}' '${long_description}, size: ${iso_img_dist_size}'"
1249
+ # ↯ - downloaded ( echo $'\U21AF' )
1250
+ if [ "${imginit}" = "1" ]; then
1251
+ cloud_menu_list="${cloud_menu_list} '${vm_profile}' '${_mypath} (↯)' '${long_description}, size: ${iso_img_dist_size}, (↯) - image already downloaded/cached'"
1252
+ else
1253
+ cloud_menu_list="${cloud_menu_list} '${vm_profile}' '${_mypath}' '${long_description}, size: ${iso_img_dist_size}'"
1254
+ fi
1245
1255
echo "cloud_menu_list=\"${cloud_menu_list}\""
1246
1256
# store filename
1247
1257
echo "profile${_all}=\"${vm_profile}\""
0 commit comments