From 950aa895e0d9397526e8eee31af30c0c3c116cd9 Mon Sep 17 00:00:00 2001 From: chrimast <119728939+chrimast@users.noreply.github.com> Date: Mon, 17 Mar 2025 10:12:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20debian.cfg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian.cfg | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/debian.cfg b/debian.cfg index ed9f2b3..0eeb0f9 100644 --- a/debian.cfg +++ b/debian.cfg @@ -36,18 +36,27 @@ d-i passwd/root-login boolean true d-i time/zone string Asia/Shanghai # B.4.7. 分区 +# 使用 /dev/sda 磁盘 (请根据实际情况修改) +d-i partman-auto/disk string /dev/sda +# 使用标准分区方法 d-i partman-auto/method string regular d-i partman-lvm/device_remove_lvm boolean true d-i partman-md/device_remove_md boolean true -d-i partman-auto/expert_recipe string \ - boot-root :: \ - 5120 1 112640 ext4 \ - $primary{ } $bootable{ } \ - method{ format } format{ } \ - use_filesystem{ } filesystem{ ext4 } \ - mountpoint{ / } \ - . -d-i partman-partitioning/confirm_write_new_label boolean true +d-i partman-auto/init_automatically_everything boolean true +# 专家级分区配方 +d-i partman-auto/expert_recipe string \ + boot-root :: \ + 5120 1 112640 ext4 \ + $primary{ } $bootable{ } \ + method{ format } format{ } \ + use_filesystem{ } filesystem{ ext4 } \ + mountpoint{ / } \ + . +# 确认分区更改 +d-i partman-partitioning/confirm_write_changes boolean true +# 自动完成分区 +d-i partman-partitioning/confirm boolean true +# d-i partman-partitioning/confirm_write_new_label boolean true d-i partman/choose_partition select finish d-i partman/confirm boolean true d-i partman/confirm_nooverwrite boolean false