[PATCH RFC nvme-cli 1/2] debain: generate hostnqn file on install and remove on uninstall

Sagi Grimberg sagi at grimberg.me
Sun Nov 6 13:41:41 PST 2016


> I think the subject should read "debian" :)

Probably :)

>> diff --git a/debian/prerm b/debian/prerm
>> new file mode 100644
>> index 000000000000..40c6fea42284
>> --- /dev/null
>> +++ b/debian/prerm
>> @@ -0,0 +1,5 @@
>> +#!/bin/sh
>> +
>> +if [ "$1" = "remove" ]; then
>> +    rm -rf /etc/nvme
>> +fi
>
> Shouldn't we only do that for a purge?

I haven't given it much thought, it really was a 15 minute
thing that I thought I'd through out here so people can
tell suggest how to do it better...

I know rpms have .rpmsave for these sort of files but not
sure what are the rules for debian.



More information about the Linux-nvme mailing list