支持重装到 debian

This commit is contained in:
bin456789
2023-05-17 22:54:26 +08:00
parent 72f486d252
commit 306252349e
4 changed files with 194 additions and 63 deletions

2
ks.cfg
View File

@ -76,7 +76,7 @@ fi
# 排除虚拟机用不上的组件
include=/tmp/exclude-packages-for-vm
touch $include
if hostnamectl | grep 'Virtualization:'; then
if systemd-detect-virt -v; then
cat <<EOF >$include
# 不删除usb相关的包 因为甲骨文云有usb设备 作用未知
# -usb_modeswitch