惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
B
Blog RSS Feed
Microsoft Azure Blog
Microsoft Azure Blog
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Engineering at Meta
Engineering at Meta
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
M
MIT News - Artificial intelligence
IT之家
IT之家
博客园 - 【当耐特】
U
Unit 42
云风的 BLOG
云风的 BLOG
L
LangChain Blog
小众软件
小众软件
Microsoft Security Blog
Microsoft Security Blog
B
Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
宝玉的分享
宝玉的分享
N
Netflix TechBlog - Medium

Debian

Debian 11 LTS 将于 2026 年 8 月 31 日停止维护 - V2EX MiniDebConf 北京 (Beijing) 2026 报名已开放: 2026-10-24 中科院软件所 - V2EX PVE 9 里装了个 kvm debian 13, Docker 方式安装了 Daed ,竟然无法通网! 各大镜像站不再提供 Debian12 下载? Debian 26 届年会现在可以开始报名注册啦! debian13 有必要升级吗?感觉 12 还能坚持好几年 Debian 龙芯 移植进度 Debian 13 root on ZFS 解决方案,支持根分区加密、压缩和远程解锁 香橙派 5Plus 小服务器已升级 Debian13 Debian 13 “trixie” released 安装 debian 的时候如何跳过创建普通用户? debian 12 的体验真的很糟糕 Debian12 VNC 连接时怎么才能以 Root 的身份登录桌面环境 我成功申请成为 Debian 正式成员, id 是 atzlinux Debian 这个系统你们一般怎么读? 真心求教 Debian 双网卡如何指定出入站 现在的 gnome 这么难用了吗 Droidian 在 redmi note7 上,使用 docker,老是重启 debian12 关不了机 debian 11 安装很慢是怎么回事? apt install 安装的东西附带的依赖 为什么在 purge 之后 autoremove 删不掉 求 Linux 系统资源探针 有用 debian12 的吗,最近实体机直接装了 debian12,系统启动没有网络,需要手动 dhclient 命令 Debian 12 Linux 如何国内终端快速下载安装 PostgreSQL 数据库? 分享一个“好看”的包管理工具(ubuntu 也适用) Debian 9 的源都不能用了吗? debian 12 发布了 Debian12 是不是快正式发布了 debian11 默认不安装防火墙? debian 的 ufw 如何重载防火墙规则? ufw reload 会重复加载规则,困扰了好几年的问题
debian12.8 的 preseed 自动安装方式,封装 iso 的正确方式??
qazwsxkevin · 2025-01-03 · via Debian

先做了这些事情(debian-12.8.0-amd64-DVD-1.iso 是官网下载的)

apt install debian-cd isolinux genisoimage
mount -o loop /opt/mkiso/debian-12.8.0-amd64-DVD-1.iso /mnt
mkdir /opt/debian_custom
cp -r /mnt/* /opt/debian_custom/
cp /opt/preseed.cfg /opt/debian_custom/preseed.cfg
chmod +w /opt/debian_custom/isolinux/txt.cfg
vi /opt/debian_custom/isolinux/txt.cfg

加入以下测试项

label autoa
  menu label ^autotesta (Automated)
  kernel /install.amd/vmlinuz
  append  auto=true preseed/file=preseed.cfg initrd=/install.amd/initrd.gz --- quiet

label autob
  menu label ^autotestb (Automated)
  kernel /install.amd/vmlinuz
  append   auto=true preseed/file=/preseed.cfg initrd=/install.amd/initrd.gz --- quiet

label autoc
  menu label ^autotestc (Automated)
  kernel /install.amd/vmlinuz
  append   auto=true preseed/file=/cdrom/preseed.cfg initrd=/install.amd/initrd.gz --- quiet
cd /opt/debian_custom

genisoimage -o /home/debian_0012_-auto.iso \
  -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat \
  -no-emul-boot -boot-load-size 4 -boot-info-table \
  -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot \
  /opt/debian_custom


xorriso -as mkisofs -o /home/debian_0012_-auto.iso \
  -r -J -V "Debian Custom" \
  -b isolinux/isolinux.bin -c isolinux/boot.cat \
  -no-emul-boot -boot-load-size 8 -boot-info-table \
  -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin \
  -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot \
  /opt/debian_custom

使用以上两种命令生成的 iso ,在虚拟机中,能正常引导,无论是传统的 Graphical Install ,还是自加的 autotesta,autotestb,autotestc 方式,在开始后,会在界面提示:Detect and mount installation media","Incorrect installation media detected"

preseed.cfg 应该是没问题的,交给 GPT 检查过,现在看起来,更像是 iso 的封装方式,安装引导无法识别介质,导致了没法继续下去了,正确姿势应该是如何?