"chore: 为 --cloud-data 添加文档,同时cloud-data工作时在 dd info output中显示 (#560)

This commit is contained in:
Heng lu
2026-02-26 20:01:07 +08:00
committed by GitHub
parent 81081873df
commit 99b99cc7ac
3 changed files with 43 additions and 0 deletions

View File

@ -3776,6 +3776,7 @@ This script is outdated, please download reinstall.sh again.
fi
# 校验:至少要有 user-data
[ -f $initrd_dir/configs/cloud-data/user-data ] || error_and_exit "--cloud-data must contain user-data"
cloud_data_files=$(ls $initrd_dir/configs/cloud-data/ | tr '\n' ' ')
fi
if is_distro_like_debian $nextos_distro; then
@ -4692,6 +4693,10 @@ if is_netboot_xyz; then
elif is_alpine_live; then
echo 'Reboot to start Alpine Live OS.'
elif is_use_dd; then
if [ -n "$cloud_data" ]; then
echo "Cloud Data: $cloud_data"
echo "Cloud Data Files: $cloud_data_files"
fi
show_dd_password_tips
echo 'Reboot to start DD.'
elif [ "$distro" = fnos ]; then