debian: 支持安装 9, 10 (ELTS)

This commit is contained in:
bin456789
2024-07-14 22:11:53 +08:00
parent 950f4bc45e
commit c1713c406e
5 changed files with 111 additions and 64 deletions

View File

@ -1927,7 +1927,7 @@ EOF
restore_resolv_conf $os_dir
fi
if grep ^11 $os_dir/etc/debian_version; then
if [ "$releasever" -le 11 ]; then
cp_resolv_conf $os_dir
chroot $os_dir apt update