- # if install to special lvm, bootloader should be none.
comment => if installation target is a logical volume, bootloader should be none.
good
-------- Thanks Yu Chuan
Thanks, Xijian
- bootloader --location=none
- logvol / --vgname=${VG_NAME} --name=${LV_NAME} --useexisting
- # Root password
- rootpw --iscrypted ${ROOTFS_ROOT_PASSWD}
- # Reboot after installation
- reboot --eject
- # Use text mode install
- text
- # Keyboard layouts
- keyboard --vckeymap=us --xlayouts='us'
- # System language
- lang en_US.UTF-8
- # Do not configure the X Window System
- skipx
- # System services
- services --enabled="chronyd"
- # System timezone
- timezone Asia/Shanghai --isUtc
- %packages
- @^minimal-environment
- %end
- %anaconda
- pwpolicy root --minlen=8 --minquality=1 --notstrict --nochanges --notempty
- pwpolicy user --minlen=8 --minquality=1 --notstrict --nochanges --emptyok
- pwpolicy luks --minlen=8 --minquality=1 --notstrict --nochanges --notempty
- %end
- EOF
+}
+upload_ks() +{
- log_info "start upload ks to rsync-server: ${RSYNC_SERVER_HOST}:${RSYNC_SERVER_PORT}"
- rsync -vrtopg --port ${RSYNC_SERVER_PORT} ${ks_file} ${RSYNC_SERVER_HOST}::ks/ || die "upload ks to rsync-server failed, please check."
+}
prepare_ks() {
- :
- log_info "start prepare kickstart file"
- local ks_file=/tmp/${iso_os}_${iso_arch}_${iso_version}.ks
- generate_ks
- upload_ks
}
prepare_submit()
2.23.0