runtime-postinstall: Remove machine specific nvme files

These need to be created on the installed system, and should not be
included in the image.

Resolves: rhbz#2071074
This commit is contained in:
Brian C. Lane 2022-04-01 11:15:12 -07:00
parent b4555e602e
commit 1f69df73fa

View File

@ -112,6 +112,10 @@ remove etc/lvm/cache
remove etc/lvm/lvm.conf remove etc/lvm/lvm.conf
append etc/lvm/lvm.conf "global {\n\tuse_lvmetad = 1\n}\n" append etc/lvm/lvm.conf "global {\n\tuse_lvmetad = 1\n}\n"
## Remove machine specific nvme-cli files
remove etc/nvme/hostid
remove etc/nvme/hostnqn
## Record the package versions used to create the image ## Record the package versions used to create the image
## rpm initializes nss, which requires /dev/urandom to be present, hence the mknod ## rpm initializes nss, which requires /dev/urandom to be present, hence the mknod
runcmd chroot ${root} /usr/bin/mknod -m 666 /dev/random c 1 8 runcmd chroot ${root} /usr/bin/mknod -m 666 /dev/random c 1 8