PXE搭建原理和过程之uefi.cfg

#version=DEVEL

# System authorization information

auth --enableshadow --passalgo=sha512

#nfs install

nfs --server=192.168.0.1 --dir=/installations

# Use graphical install

graphical

# Run the Setup Agent on first boot

firstboot --enable

ignoredisk --only-use=sda

# Keyboard layouts

keyboard --vckeymap=cn --xlayouts='cn'

# System language

lang zh_CN.UTF-8

# Network information

network  --bootproto=dhcp --onboot=off --ipv6=auto --no-activate

network  --hostname=localhost.localdomain

# Root password

rootpw --iscrypted $6$W94CsddpLTWlOH2q$r7v1uEFFz1q7rA.fY5elQ6ZpzuzX/jGPNSvcvJglflbFPXhXlgB0/jKkP44fG/SNJ5.pGYUvT21eEPSbEBxMk.

# System services

services --enabled="chronyd"

# System timezone

timezone Asia/Shanghai --isUtc

# X Window System configuration information

xconfig  --startxonboot

# System bootloader configuration

bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda

autopart --type=lvm

# Partition clearing information

clearpart --all --initlabel --drives=sda

# Disk partitioning information

%post --nochroot

#####copy kyinfo and LICENSE

if [ -e /tmp/.kyinfo ];then

echo y | cp -a /tmp/.kyinfo $ANA_INSTALL_PATH/etc/

fi

if [ -e /tmp/LICENSE ];then

echo y | cp -a /tmp/LICENSE $ANA_INSTALL_PATH/etc/

fi

if [ -e /run/install/repo/.kyinfo ];then

echo y | cp -a /run/install/repo/.kyinfo $ANA_INSTALL_PATH/etc/

fi

if [ -e /run/install/repo/LICENSE ];then

echo y | cp -a /run/install/repo/LICENSE $ANA_INSTALL_PATH/etc/

fi

##### kylin postaction

## cdrom install, copy .kylin-post-actions

if [ -e /run/install/repo/.kylin-post-actions ];then

echo y | cp -a /run/install/repo/.kylin-post-actions /tmp/.kylin-post-actions

echo "repo=/run/install/repo" > /tmp/.kylin-repo

fi

## copy kylin post scripts in new os

if [ -e /tmp/.kylin-post-actions ];then

echo y | cp -a /tmp/.kylin-post-actions $ANA_INSTALL_PATH/bin

fi

if [ -e /tmp/.kylin-repo ];then

echo y | cp -a /tmp/.kylin-repo $ANA_INSTALL_PATH/tmp/

fi

## copy and run .kylin-post-actions-nochroot

if [ -e /run/install/repo/.kylin-post-actions-nochroot ];then

echo y | cp -a /run/install/repo/.kylin-post-actions-nochroot /tmp/.kylin-post-actions-nochroot

fi

if [ -e /tmp/.kylin-post-actions-nochroot ];then

/bin/bash -x /tmp/.kylin-post-actions-nochroot &> $ANA_INSTALL_PATH/var/log/.kylin-post-actions-nochroot.log

fi

%end

%post

systemctl disable systemd-networkd-wait-online.service

systemctl disable multipathd.service

### do kylin post action

if [ -e /bin/.kylin-post-actions ];then

/bin/bash -x /bin/.kylin-post-actions &> /var/log/.kylin-post-actions.log

fi

%end

%packages

@^kylin-desktop-environment

@graphical-admin-tools

@system-tools

kexec-tools

%end

%addon com_redhat_kdump --enable --reserve-mb='auto'

%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

(0)

相关推荐

  • [20190930]oracle raw类型转化number脚本.txt

    [20190930]oracle raw类型转化number脚本.txt --//写一个简单oracle raw转化number脚本,简单说明: --//输入必须是c1,02 或者 c102,不支持c ...

  • Manjaro记录

    文章不完整,继续记录.一来方便后人,二来方便自己以后再用- screenfetch 如果出现下面的提示, 则需要更新一下 pacman, 然后再安装软件包. 错误:无法从 mirrors.163.co ...

  • linux系统网络状态查询

    var=$(cat/sys/class/net/eth0/carrier) var1="0" SLEEPTIME=1 while :;do var=$(cat/sys/class/ ...

  • 编程语言 MySQLinnodb_monitor及死锁检测

    showinnodbstatus只是其一种模式的直接展现,并且只能交互式开启,无法自动循环捕获信息innodb状态信息输出到err日志在如何库下都可以,推荐在test数据库下创建 show innod ...

  • 1. 区分 rpm

    1. 区分 rpm

  • PXE搭建原理和过程之grub.cfg

    set default=0 set timeout=5 set color_normal=white/black set color_highlight=black/light-gray menuen ...

  • PXE搭建原理和过程之ifcfg-enp125s0f0

    TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no #BOOTPROTO=dhcp BOOTPROTO=static IPADDR=192.168.0.1 ...

  • PXE搭建原理和过程之isc-dhcp-server

    # Defaults for isc-dhcp-server initscript # sourced by /etc/init.d/isc-dhcp-server # installed at /e ...

  • PXE搭建原理和过程之dhcpd.conf

    set default=0 set timeout=5 set color_normal=white/black set color_highlight=black/light-gray menuen ...

  • uos系统PXE搭建原理和过程

    1.1.1 dnsmasq 方式 1.1.1.1 安装dnsmasq /# sudo apt-get install dnsmasq 1.1.1.2 修改配置文件 /# sudo vim /etc/d ...

  • CentOS系统下PXE服务器的搭建与部署

    一.PXE简介 PXE(Pre-boot Execution Environment,预启动执行环境)是由Intel公司开发的网络启动技术,工作于Client/Server的网络模式,支持工作站通过网 ...

  • 3分钟学会redis主从复制搭建,及原理

    前言 之前老哥讲了Redis常用命令大全.Redis持久化备份及容灾恢复的处理.今天我们来讲讲Redis的主从复制如何实现. Redis主从复制 概念 Redis的主从复制概念和MySQL的主从复制大 ...

  • LVS服务原理以及搭建

    一.LVS简介 LVS是Linux Virtual Server的简写,意即Linux虚拟服务器,是一个虚拟的服务器集群系统,目的在于使用集群技术和Linux操作系统实现一个高性能.高可用的服务器.它 ...

  • UEFI 引导与 BIOS 引导在原理上有什么区别?

    摘要 其实UEFI 引导与 BIOS 引导在原理上区别总结下来就是:BIOS把MBR读出来交给CPU执行,做MBR做想做的事.UEFI是查找磁盘里的\efi\boot\bootx64.efi文件,启动 ...