mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 20:39:14 +08:00
core: 更新刷新分区方法
This commit is contained in:
parent
8d546f5a23
commit
e8053c87fe
10
resize.sh
10
resize.sh
@ -2,12 +2,10 @@
|
||||
PATH="/usr/sbin:/usr/bin"
|
||||
|
||||
update_part() {
|
||||
hdparm -z $1
|
||||
partprobe $1
|
||||
partx -u $1
|
||||
udevadm settle
|
||||
echo 1 >/sys/block/${1#/dev/}/device/rescan
|
||||
} 2>/dev/null
|
||||
partx -u "$1"
|
||||
udevadm trigger
|
||||
udevadm settle
|
||||
}
|
||||
|
||||
# el 自带 fdisk parted (el7的part不支持在线扩容)
|
||||
# ubuntu 自带 fdisk growpart
|
||||
|
Loading…
x
Reference in New Issue
Block a user