15 lines
412 B
Text
15 lines
412 B
Text
|
if [[ $DISTRO_NAME = "centos7" ]]; then
|
||
|
eval declare -A image_elements=($(get_image_element_array))
|
||
|
found=0
|
||
|
for i in "${!image_elements[@]}"; do
|
||
|
[ "$i" = "dracut-regenerate" ] && found=1
|
||
|
done
|
||
|
[ "$found" = 0 ] && echo "The dracut-regenerate element is required!" && exit 1
|
||
|
|
||
|
DIB_DRACUT_ENABLED_MODULES+="
|
||
|
- name: network
|
||
|
- name: iscsi
|
||
|
"
|
||
|
export DIB_DRACUT_ENABLED_MODULES
|
||
|
fi
|