gpt4 book ai didi

ubuntu - 从 Ubuntu 启动板构建 Debian 镜像

转载 作者:行者123 更新时间:2023-12-04 19:17:11 26 4
gpt4 key购买 nike

我从以下链接下载了构建脚本和一些需要的文件来构建 debian cd 镜像

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

我不太确定“ 镜像 ”指的是什么以及如何设置 路径 正确吗?

任何建议将被认真考虑。

最佳答案

MIRROR指 APT 软件存储库(通常是 Debian 维护的一个镜像,以节省带宽和下载时间),用于 live-build 检索软件组件以制作 live 系统。

通常是如下形式(以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 网站上的软件镜像部分找到所需的 url。

关于ubuntu - 从 Ubuntu 启动板构建 Debian 镜像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33438854/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com