core: 兼容 xen 磁盘

This commit is contained in:
bin456789
2023-07-09 00:02:06 +08:00
parent 69f2bd2e58
commit 9efe2552e3
4 changed files with 8 additions and 4 deletions

View File

@ -137,7 +137,7 @@ fi
# alpine 不自带lsblkliveos安装的软件也会被带到新系统所以不用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