无法登录使用 Kickstart 创建的自定义 CentOS

无法登录使用 Kickstart 创建的自定义 CentOS

以下是我的kickstart配置文件:

#version=RHEL7
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=vda
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# Root password
rootpw qwerty
# Install Repo
repo --name="CentOS Repo" --baseurl=http://ftp.jaist.ac.jp/pub/Linux/CentOS/7/os/x86_64/
# System timezone
timezone America/New_York --isUtc
# System bootloader configuration
bootloader --location=mbr --boot-drive=vda
autopart --type=lvm
# Partition clearing information
clearpart --none --initlabel
%packages
@core
%end
%post
mkdir -p /etc/sample
mkdir danis
echo "Hello World" >> danis.txt
touch /var/danis.txt
%end

我使用以下命令创建了用于安装的 ISO。

sudo livecd-creator --verbose --config=ks.cfg --fslabel=DanisCentOS --cache=/var/cache/live

ISO 创建成功完成,但是当我安装后尝试登录操作系统时,它要求我输入与我设置的密码不匹配的密码。我也不允许使用任何密码登录。请帮忙。

相关内容