mirror of
https://github.com/bin456789/reinstall.git
synced 2025-12-10 15:37:43 +08:00
core: 去除 iso 文件头检测
在 ubuntu 20.04 上,检测 ubuntu 22.04 iso 结果不正确
This commit is contained in:
@ -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'"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user