Skip to content

Commit

Permalink
Install nvme-cli tool and remove machine specific nvme files
Browse files Browse the repository at this point in the history
Fixes #1327

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

(cherry picked from commit f031f28)
(cherry picked from commit 0099d61)
  • Loading branch information
bcl committed Jun 21, 2023
1 parent 0f1110f commit abc4f48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion share/templates.d/99-generic/runtime-install.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ installpkg rng-tools
%if basearch in ("x86_64", "aarch64"):
installpkg dmidecode
%endif

installpkg nvme-cli

## fonts & themes
installpkg abattis-cantarell-vf-fonts
Expand Down
4 changes: 4 additions & 0 deletions share/templates.d/99-generic/runtime-postinstall.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,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

## TODO: we could run prelink here if we wanted?

## fix fonconfig cache containing timestamps
Expand Down

0 comments on commit abc4f48

Please sign in to comment.