diff options
Diffstat (limited to 'debian/nvme-cli.postinst')
-rw-r--r-- | debian/nvme-cli.postinst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/nvme-cli.postinst b/debian/nvme-cli.postinst new file mode 100644 index 0000000..d2f0ca8 --- /dev/null +++ b/debian/nvme-cli.postinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +if [ "$1" = "configure" ]; then + if [ ! -s /etc/nvme/hostnqn ]; then + nvme gen-hostnqn > /etc/nvme/hostnqn + fi + + if [ ! -s /etc/nvme/hostid ]; then + uuidgen > /etc/nvme/hostid + fi +fi + +#DEBHELPER# |