From aff970c4bc2d2d8d4718f02c525d47132caa9a47 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Thu, 6 Mar 2025 20:45:29 +0800 Subject: [PATCH] =?UTF-8?q?arch/gentoo:=20=E4=BD=BF=E7=94=A8=20basic=5Fini?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/trans.sh b/trans.sh index c742bb1..b5c3556 100644 --- a/trans.sh +++ b/trans.sh @@ -1980,11 +1980,6 @@ EOF # preset-all 后多了很多服务,内存占用多了几十M chroot $os_dir systemctl preset-all 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 @@ -2026,21 +2021,10 @@ EOF ;; esac - # 修正网卡名 - add_fix_eth_name_systemd_service $os_dir - # arch gentoo 网络配置是用 alpine cloud-init 生成的 # cloud-init 版本够新,因此无需修复 onlink 网关 - # ssh - 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 + basic_init $os_dir # ntp 用 systemd 自带的 # TODO: vm agent + 随机数生成器