我从下面的链接下载了构建脚本和一些构建debian cd映像所需的文件
在自述文件中,它提到我应该编辑镜像的路径。在CONF.sh
# Paths to the mirrors
export MIRROR=${MIRROR:-$CDIMAGE_ROOT/ftp}
# Comment the following line if you don't have/want non-US
#export NONUS=/ftp/debian-non-US
# Path of the temporary directory
export TDIR=$CDIMAGE_ROOT/scratch/$PROJECT/$DIST/$IMAGE_TYPE/tmp
# Path where the images will be written
export OUT=$CDIMAGE_ROOT/scratch/$PROJECT/$DIST/$IMAGE_TYPE/debian-cd
# Where we keep the temporary apt stuff.
# This cannot reside on an NFS mount.
export APTTMP=$CDIMAGE_ROOT/scratch/$PROJECT/$DIST/$IMAGE_TYPE/apt
# Where extracted debootstrap scripts live
export DEBOOTSTRAP=$CDIMAGE_ROOT/scratch/$PROJECT/$DIST/$IMAGE_TYPE/debootstrap
# Where live filesystem images live
export LIVEIMAGES=$CDIMAGE_ROOT/scratch/$PROJECT/$DIST/$IMAGE_TYPE/live我不太清楚“镜像”指的是什么,以及如何正确设置路径?
如有任何建议,将不胜感激。
发布于 2016-04-18 09:50:02
MIRROR是指APT软件存储库(通常是Debian维护的镜像,以节省带宽和下载时间),用于实时构建以检索软件组件以使系统正常运行。
它通常以以下形式出现(以ubuntu为例,但url略有不同):
http://tw.archive.ubuntu.com/ubuntu
因此,在我的例子中,只需修改CONF.sh的
export MIRROR=${MIRROR:-$CDIMAGE_ROOT/ftp}
至
export MIRROR=http://tw.archive.ubuntu.com/ubuntu
您可以通过查看Debian站点上的软件镜像部分来找到所需的urls。
https://stackoverflow.com/questions/33438854
复制相似问题