diff --git a/debian.cfg b/debian.cfg index 0d1365d..339f30d 100644 --- a/debian.cfg +++ b/debian.cfg @@ -123,7 +123,7 @@ d-i preseed/early_command string true; \ # efi 分区大小未改变时,不会被格式化,因此需要手动删除旧系统的 efi 文件 # os-prober 卡太久,因此跳过 d-i partman/early_command string true; \ - confhome="$(grep -o 'extra\.confhome=[^ ]*' /proc/cmdline | cut -d= -f2)"; \ + confhome="$(grep -o 'extra_confhome=[^ ]*' /proc/cmdline | cut -d= -f2)"; \ postinst=/var/lib/dpkg/info/bootstrap-base.postinst; \ cp $postinst $postinst.orig; \ @@ -161,7 +161,7 @@ d-i partman/early_command string true; \ # 另一种方法处理 cloudcone # if [ "$link_grub_dir" = 1 ]; then mkdir /target/boot/grub2; echo 'chainloader (hd0)+1' >/target/boot/grub2/grub.cfg; fi; \ d-i preseed/late_command string true; \ - link_grub_dir="$(grep -o 'extra\.link_grub_dir=[^ ]*' /proc/cmdline | cut -d= -f2)"; \ + link_grub_dir="$(grep -o 'extra_link_grub_dir=[^ ]*' /proc/cmdline | cut -d= -f2)"; \ if [ "$link_grub_dir" = 1 ]; then ln -s grub /target/boot/grub2; fi; \ in-target systemctl enable ssh; \ diff --git a/get-xda.sh b/get-xda.sh index 1124d27..6da568d 100644 --- a/get-xda.sh +++ b/get-xda.sh @@ -10,7 +10,7 @@ get_all_disks() { get_xda() { # 如果没找到 main_disk 或 xda # 返回假的值,防止意外地格式化全部盘 - main_disk="$(grep -o 'extra\.main_disk=[^ ]*' /proc/cmdline | cut -d= -f2)" + main_disk="$(grep -o 'extra_main_disk=[^ ]*' /proc/cmdline | cut -d= -f2)" if [ -z "$main_disk" ]; then echo 'MAIN_DISK_NOT_FOUND' diff --git a/redhat.cfg b/redhat.cfg index 9a50590..307fa8f 100644 --- a/redhat.cfg +++ b/redhat.cfg @@ -38,10 +38,10 @@ distro=$(awk -F: '{ print $3 }'