mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-19 04:49:13 +08:00
redhat: 修复 centos 7 无法读取 ext4 导致无法进行两步安装
This commit is contained in:
parent
b9b447c15a
commit
5244b4cd19
8
trans.sh
8
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user