mirror of
https://github.com/bin456789/reinstall.git
synced 2025-12-10 15:37:43 +08:00
arch/gentoo: 使用 basic_init
This commit is contained in:
18
trans.sh
18
trans.sh
@ -1980,11 +1980,6 @@ EOF
|
|||||||
# preset-all 后多了很多服务,内存占用多了几十M
|
# preset-all 后多了很多服务,内存占用多了几十M
|
||||||
chroot $os_dir systemctl preset-all
|
chroot $os_dir systemctl preset-all
|
||||||
fi
|
fi
|
||||||
# 此时不能用
|
|
||||||
# chroot $os_dir timedatectl set-timezone Asia/Shanghai
|
|
||||||
chroot $os_dir systemd-firstboot --force --timezone=Asia/Shanghai
|
|
||||||
# gentoo 不会自动创建 machine-id
|
|
||||||
clear_machine_id $os_dir
|
|
||||||
|
|
||||||
# 网络配置
|
# 网络配置
|
||||||
case "$network_app" in
|
case "$network_app" in
|
||||||
@ -2026,21 +2021,10 @@ EOF
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# 修正网卡名
|
|
||||||
add_fix_eth_name_systemd_service $os_dir
|
|
||||||
|
|
||||||
# arch gentoo 网络配置是用 alpine cloud-init 生成的
|
# arch gentoo 网络配置是用 alpine cloud-init 生成的
|
||||||
# cloud-init 版本够新,因此无需修复 onlink 网关
|
# cloud-init 版本够新,因此无需修复 onlink 网关
|
||||||
|
|
||||||
# ssh
|
basic_init $os_dir
|
||||||
chroot $os_dir systemctl enable sshd
|
|
||||||
allow_root_password_login $os_dir
|
|
||||||
if is_need_change_ssh_port; then
|
|
||||||
change_ssh_port $os_dir $ssh_port
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 修改密码
|
|
||||||
change_root_password $os_dir
|
|
||||||
|
|
||||||
# ntp 用 systemd 自带的
|
# ntp 用 systemd 自带的
|
||||||
# TODO: vm agent + 随机数生成器
|
# TODO: vm agent + 随机数生成器
|
||||||
|
|||||||
Reference in New Issue
Block a user