From 5244b4cd19aa3510086283c8f6fee0a94ec83453 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sun, 30 Jul 2023 00:34:58 +0800 Subject: [PATCH] =?UTF-8?q?redhat:=20=E4=BF=AE=E5=A4=8D=20centos=207=20?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=AF=BB=E5=8F=96=20ext4=20=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=97=A0=E6=B3=95=E8=BF=9B=E8=A1=8C=E4=B8=A4=E6=AD=A5?= =?UTF-8?q?=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/trans.sh b/trans.sh index e20c0b4..36ce99a 100644 --- a/trans.sh +++ b/trans.sh @@ -381,6 +381,14 @@ create_part() { mkfs.ext4 -F -L os /dev/$xda*1 #1 os mkfs.ext4 -F -L installer /dev/$xda*2 #2 installer fi + update_part /dev/$xda + + # centos 7 无法加载alpine格式化的ext4 + # 要关闭这个属性 + if [ "$distro" = centos ]; then + apk add e2fsprogs-extra + tune2fs -O ^metadata_csum_seed /dev/disk/by-label/installer + fi fi update_part /dev/$xda