From 0aac4fe2af8b7f8e80e37675204febb204d894d9 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sun, 7 May 2023 20:58:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3ubuntu=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E6=97=B6=E7=A1=AC=E7=9B=98=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ubuntu-storage-early.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubuntu-storage-early.sh b/ubuntu-storage-early.sh index c8549b7..bab4769 100644 --- a/ubuntu-storage-early.sh +++ b/ubuntu-storage-early.sh @@ -5,7 +5,7 @@ xda=$(lsblk -dn -o NAME | grep -E 'nvme0n1|.da') # https://curtin.readthedocs.io/en/latest/topics/storage.html size_os=$(lsblk -bn -o SIZE /dev/disk/by-label/os) -if parted /dev/sda print | grep '^Partition Table' | grep gpt; then +if parted /dev/$xda print | grep '^Partition Table' | grep gpt; then # parted 3.1 on centos7 bug # https://documentation.suse.com/zh-cn/sles/15/html/SLES-all/cha-expert-partitioner.html#sec-expert-partitioner-tables-gpt parted /dev/$xda -s 'set 2 msftdata off' # os