]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
ras-record: Create RASSTATEDIR at runtime instead of install time
authorB. Wilson <x@wilsonb.com>
Mon, 12 Apr 2021 15:29:58 +0000 (00:29 +0900)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 26 May 2021 07:02:17 +0000 (09:02 +0200)
commit9367354a4e57506a7090143e423fa620f86eeed1
tree5d4c95713208ae4d51c2aba3a01368724cc5522f
parentc6404b28dbcb97a6c456c4294ffac3fc8c2f9638
ras-record: Create RASSTATEDIR at runtime instead of install time

Package managers such as Nix and Guix force installation into an
isolated directory hierarchy. Furthermore, said hierarchy becomes
readonly after the install has completed, rendering any
<hierarchy>/var/lib/rasdaemon/ directory effectively useless.

In addition to being standard practice, creating RASSTATEDIR when
necessary at runtime fixes the above use cases.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Makefile.am
ras-record.c