From a4e63d16f688d7df3864974738da537e6d699562 Mon Sep 17 00:00:00 2001 From: Steven Seungcheol Lee Date: Wed, 28 Oct 2020 17:20:00 +0900 Subject: [PATCH] nvme.spec.in: using specific directory for nvme command on %post ${_sbindir} could be placed in out of default bin directories so just 'nvme gen-hostnqn' would not work with 'nvme command not found' Signed-off-by: Steven Seungcheol Lee --- nvme.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvme.spec.in b/nvme.spec.in index 215b397d..7154a870 100644 --- a/nvme.spec.in +++ b/nvme.spec.in @@ -49,7 +49,7 @@ rm -rf $RPM_BUILD_ROOT %post if [ $1 -eq 1 ]; then # 1 : This package is being installed for the first time if [ ! -s %{_sysconfdir}/nvme/hostnqn ]; then - echo $(nvme gen-hostnqn) > %{_sysconfdir}/nvme/hostnqn + echo $(%{_sbindir}/nvme gen-hostnqn) > %{_sysconfdir}/nvme/hostnqn fi if [ ! -s %{_sysconfdir}/nvme/hostid ]; then uuidgen > %{_sysconfdir}/nvme/hostid -- 2.50.1