From 1f69df73fa73a66d12233907cef449d1f3a1fbed Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Fri, 1 Apr 2022 11:15:12 -0700 Subject: [PATCH] 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 --- 80-rhel/runtime-postinstall.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/80-rhel/runtime-postinstall.tmpl b/80-rhel/runtime-postinstall.tmpl index ddcf8b9..ca4d251 100644 --- a/80-rhel/runtime-postinstall.tmpl +++ b/80-rhel/runtime-postinstall.tmpl @@ -112,6 +112,10 @@ remove etc/lvm/cache remove etc/lvm/lvm.conf 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 ## 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