Skip to content
项目
群组
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
自动
自动安装
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
静态页
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
系统群组
开源项目
自动安装
提交
55cb4be8
提交
55cb4be8
12月 12, 2025
创建
作者:
Administrator
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加新文件
上级
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
103 行增加
和
0 行删除
+103
-0
autoinstall.yaml
autoinstall.yaml
+103
-0
没有找到文件。
autoinstall.yaml
0 → 100644
浏览文件 @
55cb4be8
#cloud-config
autoinstall
:
version
:
1
locale
:
zh_CN.UTF-8
keyboard
:
layout
:
us
identity
:
hostname
:
ubuntu2404
username
:
bjjc
password
:
"
$6$rounds=4096$REPLACE_WITH_YOUR_HASH"
ssh
:
install-server
:
true
allow-pw
:
true
storage
:
config
:
# ===== 磁盘 =====
-
type
:
disk
id
:
disk0
match
:
name
:
nvme0n1
ptable
:
gpt
wipe
:
superblock
grub_device
:
true
# ===== EFI =====
-
type
:
partition
id
:
part-efi
device
:
disk0
size
:
512M
flag
:
boot
-
type
:
format
id
:
fs-efi
volume
:
part-efi
fstype
:
fat32
-
type
:
mount
id
:
mount-efi
device
:
fs-efi
path
:
/boot/efi
# ===== /boot =====
-
type
:
partition
id
:
part-boot
device
:
disk0
size
:
1G
-
type
:
format
id
:
fs-boot
volume
:
part-boot
fstype
:
ext4
-
type
:
mount
id
:
mount-boot
device
:
fs-boot
path
:
/boot
# ===== root (btrfs) =====
-
type
:
partition
id
:
part-root
device
:
disk0
size
:
-1
-
type
:
format
id
:
fs-root
volume
:
part-root
fstype
:
btrfs
# ===== btrfs 子卷 =====
-
type
:
btrfs-subvolume
id
:
subvol-root
volume
:
fs-root
name
:
"
@"
-
type
:
btrfs-subvolume
id
:
subvol-home
volume
:
fs-root
name
:
"
@home"
# ===== 挂载 =====
-
type
:
mount
id
:
mount-root
device
:
fs-root
path
:
/
options
:
"
subvol=@,compress=zstd"
-
type
:
mount
id
:
mount-home
device
:
fs-root
path
:
/home
options
:
"
subvol=@home,compress=zstd"
# ===== 开机自动登录(关键)=====
late-commands
:
-
curtin in-target -- mkdir -p /etc/systemd/system/getty@tty1.service.d
-
curtin in-target -- bash -c 'cat > /etc/systemd/system/getty@tty1.service.d/override.conf <<EOF
[
Service
]
ExecStart=
ExecStart=-/sbin/agetty --autologin bjjc --noclear %I \$TERM
EOF'
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论