Browse Source

Fix disk path

Brent Yang 2 years ago
parent
commit
1282ca8593
1 changed files with 1 additions and 1 deletions
  1. 1 1
      debi.sh

+ 1 - 1
debi.sh

@@ -214,7 +214,7 @@ sudo_with_password=false
 timezone=UTC
 timezone=UTC
 ntp=time.google.com
 ntp=time.google.com
 disk_partitioning=true
 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
 force_gpt=true
 efi=
 efi=
 esp=106
 esp=106