redhat: 修复 centos 7 无法读取 ext4 导致无法进行两步安装

This commit is contained in:
bin456789 2023-07-30 00:34:58 +08:00
parent b9b447c15a
commit 5244b4cd19
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -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