ポストスクリプトを使用してキックスタートインストールで initramfs を再生成する方法
Issue
kickstart%postスクリプトの initramfs ファイルを再生成します。-
--nochrootオプションが有効な場合、Kickstart%postスクリプトがinitramfsの生成に失敗し、以下のエラーが発生します。localhost program[xxxx]: + dracut -l -f -i /boot/.random_keyfile /boot/.random_keyfile localhost program[xxxx]: dracut: Cannot find /usr/lib/dracut/dracut-init.sh. localhost program[xxxx]: dracut: Are you running from a git checkout? localhost program[xxxx]: dracut: Try passing -l as an argument to /mnt/sysimage/bin/dracut localhost anaconda[xxxx]: Error code 1 running the kickstart script at line 132
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.