mirror of
https://github.com/bin456789/reinstall.git
synced 2025-12-10 15:37:43 +08:00
core: 优化代码
This commit is contained in:
@ -48,13 +48,13 @@ done
|
||||
|
||||
# 只使用主硬盘
|
||||
include=/tmp/include-disk-only-use
|
||||
xda=$(wget --no-check-certificate "$confhome/get-xda.sh" -O- | sh -s)
|
||||
xda=$(wget --no-check-certificate --tries=5 "$confhome/get-xda.sh" -O- | sh -s)
|
||||
echo "ignoredisk --only-use=$xda" >$include
|
||||
|
||||
# 设置 tty
|
||||
include=/tmp/include-bootloader
|
||||
# shellcheck disable=SC2154
|
||||
console_cmdline=$(wget --no-check-certificate "$confhome/ttys.sh" -O- | sh -s console=)
|
||||
console_cmdline=$(wget --no-check-certificate --tries=5 "$confhome/ttys.sh" -O- | sh -s console=)
|
||||
echo "bootloader --append=\"$console_cmdline\"" >$include
|
||||
|
||||
# 有 installer 分区,表示用了两步安装
|
||||
|
||||
Reference in New Issue
Block a user