summarylogtreecommitdiffstats
path: root/nvme-cli-git.install
diff options
context:
space:
mode:
Diffstat (limited to 'nvme-cli-git.install')
-rw-r--r--nvme-cli-git.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/nvme-cli-git.install b/nvme-cli-git.install
new file mode 100644
index 000000000000..6babfeb69613
--- /dev/null
+++ b/nvme-cli-git.install
@@ -0,0 +1,8 @@
+post_install(){
+ if [ ! -f /etc/nvme/hostnqn ]; then
+ nvme gen-hostnqn > /etc/nvme/hostnqn
+ fi
+ if [ ! -f /etc/nvme/hostid ]; then
+ uuidgen > /etc/nvme/hostid
+ fi
+}