Dracutは、現在システムで使用されていないモジュールを含むイメージを作成しません。

Dracutは、現在システムで使用されていないモジュールを含むイメージを作成しません。

さて、dracutは私が思ったように動作しなかったので、解決策を見つけることができません。以前は複数のイメージを作成しましたが、今ではカスタムライブISOで使用するためのライブブートinitramfsを作成しようとしています。以下のcmdlindパラメータを試すたびに失敗し、dracut.confに追加のモジュールを入れようとしましたが、警告が表示されるたびに(他の投稿では無視できる警告であることだけを読んでいます)が、次のメッセージを返しますします。ターミナルプロンプトでは、dracutビルドなどを無視または続行するオプションはありません。

#dracut.conf short and sweet
add_dracutmodules+="nfs dmsquash-live livenet "
omit_dracutmodules+="biosdevname"

#dracut terminal argument
dracut -v testinitramfs.img 

#output
dracut: Executing: /usr/bin/dracut -v testinitramfs.img
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'btrfs' will not be installed, because command 'btrfs' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command 'dmraid' could not be found!
dracut: dracut module 'dmsquash-live-ntfs' will not be installed, because command 'ntfs-3g' could not be found!
dracut: dracut module 'livenet' depends on 'dmsquash-live', which can't be installed
dracut: dracut module 'stratis' will not be installed, because command 'stratisd-init' could not be found!
dracut: dracut module 'cifs' will not be installed, because command 'mount.cifs' could not be found!
dracut: dracut module 'dmsquash-live' cannot be found or installed.

dracut.x86 -tools -network -caps -live -squashをインストールしたパッケージをインストールしましたが、使用可能なモジュールのリストにbusyboxとdmsquash-liveが表示されますが、まだ失敗して見つからないというメッセージが表示されます。この場合、dracutを介してこれらのモジュールを表示できるようにするために必要なdracutビルドコマンドから欠落している別の依存関係はありますか?

dracut --list-modules
/etc/dracut.conf: line 8: biosdevname : command not found
bash                            crypt                         terminfo   
systemd                         dm                            udev-rules
warpclock                       dmraid                        virtfs
fips                            **dmsquash-live**                 **biosdevname**
systemd-initrd                  **dmsquash-live-ntfs**            dracut-systemd
caps                            kernel-modules                ecryptfs
systemd-networkd                kernel-modules-extra          ...
modsign                         **livenet**                       ...
rescue                          mdraid                        squash
watchdog                        multipath
**busybox**                         qemu
nss-softokn                     qemu-net
rdma                            stratis
rngd                            crypt-gpg
i18n                            crypt-loop
convertfs                       cifs
network-legacy                  debug
network-manager                 fcoe
network                         fcoe-uefi
ifcfg                           fstab-sys
url-lib                         iscsi
drm                             lunmask
plymouth                        nbd
prefixdevname                   **nfs**
prefixdevname-tools             resume
lvmmerge                        rootfs-block
btrfs                           ssh-client


ベストアンサー1

--no-hostonlyマニュアルページにパラメータがありません。

  -H, --hostonly        Host-Only mode: Install only what is needed for
                        booting the local host instead of a generic host.
  -N, --no-hostonly     Disables Host-Only mode

device-mapper-multipathもう1つの一般的な問題は、モジュールを追加する前に必要なパッケージなど、モジュールが依存するパッケージが欠落していることですmultipath

おすすめ記事