mirror of
https://github.com/bin456789/reinstall.git
synced 2025-12-10 15:37:43 +08:00
core: 兼容 xen 磁盘
This commit is contained in:
2
trans.sh
2
trans.sh
@ -137,7 +137,7 @@ fi
|
||||
# alpine 不自带lsblk,liveos安装的软件也会被带到新系统,所以不用lsblk
|
||||
# xda=$(lsblk -dn -o NAME | grep -E 'nvme0n1|.da')
|
||||
# shellcheck disable=SC2010
|
||||
xda=$(ls /dev/ | grep -Ex '[shv]da|nvme0n1')
|
||||
xda=$(ls /dev/ | grep -Ex 'sda|hda|xda|vda|xvda|nvme0n1')
|
||||
|
||||
# arm要手动从硬件同步时间,避免访问https出错
|
||||
hwclock -s
|
||||
|
||||
Reference in New Issue
Block a user