core: 优化代码

This commit is contained in:
bin456789
2024-03-05 23:01:24 +08:00
parent d59668b663
commit bec14c13c1
9 changed files with 80 additions and 33 deletions

View File

@ -74,10 +74,10 @@ d-i partman/early_command string \
confhome="$(grep -o 'extra\.confhome=[^ ]*' /proc/cmdline | cut -d= -f2)"; \
anna-install fdisk-udeb; \
xda=$(wget $confhome/get-xda.sh -O- | sh -s); \
xda=$(wget --tries=5 $confhome/get-xda.sh -O- | sh -s); \
debconf-set partman-auto/disk "/dev/$xda"; \
ttys=$(wget $confhome/ttys.sh -O- | sh -s console=); \
ttys=$(wget --tries=5 $confhome/ttys.sh -O- | sh -s console=); \
debconf-set debian-installer/add-kernel-opts "$ttys"; \
kernel="$(grep -o 'extra\.kernel=[^ ]*' /proc/cmdline | cut -d= -f2)"; \