Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/nvmi-cli
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2023-07-03 17:30:18 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2023-07-03 17:30:18 +0200
commitc9b7d853ad1e93d2c577b2c08a1bd456bd639259 (patch)
treec34308c4fc5ad0ff5e9ade3b4b2de3ab20f03613 /extra/nvmi-cli
parent65d5b0f6c8a8a85f899f49c8887bdc482e2b8867 (diff)
extra/nvme-cli: temporarily added nvme-cli.install for local rebuild (is fixed in master upstream)
Diffstat (limited to 'extra/nvmi-cli')
-rw-r--r--extra/nvmi-cli/nvme-cli.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/extra/nvmi-cli/nvme-cli.install b/extra/nvmi-cli/nvme-cli.install
new file mode 100644
index 00000000..6babfeb6
--- /dev/null
+++ b/extra/nvmi-cli/nvme-cli.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
+}