Browse Source

Set default disk to the device mounted to root

Brent Yang 2 years ago
parent
commit
4ea2f8b3a2
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=
+disk=$(df / | grep -Eo '^/dev/[a-z]+')
 force_gpt=true
 force_gpt=true
 efi=
 efi=
 esp=106
 esp=106