core: 去除 iso 文件头检测
在 ubuntu 20.04 上,检测 ubuntu 22.04 iso 结果不正确
This commit is contained in:
parent
2949d4d0e6
commit
08e8aa12dd
@ -256,7 +256,7 @@ setos() {
|
|||||||
# iso
|
# iso
|
||||||
filename=$(curl -L $mirror | grep -oP "ubuntu-$releasever.*?-live-server-$basearch_alt.iso" | head -1)
|
filename=$(curl -L $mirror | grep -oP "ubuntu-$releasever.*?-live-server-$basearch_alt.iso" | head -1)
|
||||||
iso=$mirror/$filename
|
iso=$mirror/$filename
|
||||||
test_url $iso iso || exit 1
|
test_url $iso || exit 1
|
||||||
eval ${step}_iso=$iso
|
eval ${step}_iso=$iso
|
||||||
|
|
||||||
# ks
|
# ks
|
||||||
@ -288,7 +288,7 @@ setos() {
|
|||||||
if [ "$(echo "$image_name" | wc -w)" -lt 3 ]; then
|
if [ "$(echo "$image_name" | wc -w)" -lt 3 ]; then
|
||||||
error_and_exit "--image-name wrong."
|
error_and_exit "--image-name wrong."
|
||||||
fi
|
fi
|
||||||
test_url $iso iso || exit 1
|
test_url $iso || exit 1
|
||||||
eval "${step}_iso='$iso'"
|
eval "${step}_iso='$iso'"
|
||||||
eval "${step}_image_name='$image_name'"
|
eval "${step}_image_name='$image_name'"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user