浏览代码

Fix disk path

Brent Yang 2 年之前
父节点
当前提交
1282ca8593
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      debi.sh

+ 1 - 1
debi.sh

@@ -214,7 +214,7 @@ sudo_with_password=false
 timezone=UTC
 ntp=time.google.com
 disk_partitioning=true
-disk=$(df /boot | grep -Eo '^/dev/[hsv]d[a-z]')
+disk="/dev/$(lsblk -no PKNAME "$(df /boot | grep -Eo '/dev/[a-z0-9]+')")"
 force_gpt=true
 efi=
 esp=106