カスタムkickstartのインストールは完了しましたが、システムを起動できません

カスタムkickstartのインストールは完了しましたが、システムを起動できません

私はkickstartを使用してカスタムインストールを作成するための指示に従いました。http://www.smorgasbork.com/2012/01/04/building-a-custom-centos-7-kickstart-disc-part-3/

無人インストールを完了しましたが、コンピュータの起動時にコンピュータが起動しなくなりました。

Grub(2)はロードされますが、カーネルを自動ロードしません(自動ロードするには設定ファイルを作成する必要があるようです。このステップではあまり心配しません)。したがって、次のコマンドを実行して起動します。

set root=(hd0,msdos1)
set prefix=(hd0,msdos1)/boot/grub2
insmod vbe.mod
insmod mmap.mod
insmod relocator.mod
insmod linux.mod
insmod lvm.mod
linux (hd0,msdos1)/vmlinuz root=/dev/mapper/centos_partition1-root
initrd (hd0,msdos1)/initrd-plymouth.img
boot

これにより、次の出力でカーネルパニックが発生します。

md: waiting for all devices to be available before auto detect
md: if you don’t use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
List of all partitions:
No filesystem could mount root, tried:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

また、initrd-plymouthの代わりにinitramfsを試してみましたが、今回は出力が次のようになりましたが、同様の問題が発生しました。

dracut: FATAL: No or empty root= argument

私はこの点に到達するために多くの努力をしましたが、次にどこに行くべきかわかりません。助けてくれてありがとう。

ks.cfg

#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical install
# graphical
# Use text install
text
# Make kickstart non-interactive
autostep
# Run the Setup Agent on first boot
#firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=gb --xlayouts='gb'
# System language
lang en_GB.UTF-8

# Network information
network  --bootproto=dhcp --device=enp2s0 --onboot=off --ipv6=auto --activate
network  --device=lo --hostname=partition1

#Root password
rootpw --lock
# System timezone
timezone Europe/London --isUtc
user --groups=wheel --name=adm --password=() --iscrypted --gecos="admin"
# System bootloader configuration
#bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
bootloader --location=mbr
autopart --type=lvm
# Partition clearing information
clearpart --drives=sda --all --initlabel

%packages
@^minimal
@core
kexec-tools
openscap
openscap-scanner
scap-security-guide

%end

%addon org_fedora_oscap
    content-type = scap-security-guide
    profile = standard
%end

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

%end

編集する:

これまでプロセスを進めましたが、サイレントインストール後に再起動する前に手動で実行したものが、anacondaスクリプトにありません。また、次のコマンドを実行しました。

mount /dev/block/8:1 /mnt
grub2-install --boot-directory=/mnt/boot /dev/sda
cp /run/install/repo/vmlinuz /mnt

ベストアンサー1

私が実行する必要があるインストール後のコマンドに少し手がかりがあると思います。別の「成功した」インストール後に/mnt/sysimage/var/log/anaconda/anaconda.logの内容を確認しましたが、カーネルがインストールされていないことがわかりました。

もちろん、私はISOのリポジトリにカーネルパッケージを追加しませんでした。そのため、カーネルパッケージ(および依存関係のgrubby)を追加し、リポジトリを再構築してからインストールしました。今回は、インストールがブートローダを正しくインストールして設定しました。

関心をお寄せいただきありがとうございます。

おすすめ記事