瀏覽代碼

Set default disk to the device mounted to root

Brent Yang 2 年之前
父節點
當前提交
4ea2f8b3a2
共有 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=
+disk=$(df / | grep -Eo '^/dev/[a-z]+')
 force_gpt=true
 efi=
 esp=106