使用pxe安装uos系统UOS操作系统如何实现自动安装(一)
============================================================================
本文介绍自动安装时磁盘自动分区策略
1、在settings.ini中配置如下:
skip_partition_page=true #跳过磁盘分区页
partition_do_auto_part=true #是否自动分区
DI_FULLDISK_MULTIDISK_DEVICE="/dev/sda;/dev/sdb" #全盘安装所使用硬盘
partition_full_disk_large_root_part_range="-1:-1" #使用json文件里设置的roota、rootb大小
2、在OEM目录中增加文件:full_disk_policy.json(如果已存在则按需修改)
[ {
"filesystem": "ext4", #文件系统类型
"mountPoint": "/", #分区名称、挂载点
"label": "Root", #分区类型
"usage": "92160Mib", #分区大小,计算单位1:1024
"alignStart": true, #从磁盘头开始分区
"device": "", #指定硬盘
"platform": [ "arm", "loongson", "x86" ] #CPU架构
},
{
"filesystem": "linux-swap",
"mountPoint": "swap",
"label": "SWAP",
"usage": "8192Mib",
"alignStart": true,
"device": "",
"platform": [ "arm", "sw", "loongson", "x86" ]
},
{
"filesystem": "nfts",
"mountPoint": "/data",
"label": "_dde_data",
"usage": "100%",
"alignStart": true,
"device": "",
"platform": [ "arm", "loongson", "x86" ]
}
]