Typically I'd do this with a systemd override file, which would go in /etc/systemd/system/<whatever>.service as an ExecStartPre= line. But I'd have to think about what service makes sense. I suppose it could also be for one of the targets (similar to old-school "runlevel" provided those permit overrides in the same way – have not tried it personally). In most cases, it's "service Y requires X first, do as an override to service Y," but it's less clear when it's such a systemic thing.
What mechanism triggers this when autorelabel happens on a reboot as you described? If it's by a file in the filesystem as I've seen before for other processes (just as a hypothetical, if it were triggered by /.autorelabel), or something like that, potentially you could make sure your VNFS has that file.
________________________________________
From: Ryan Snyder <
rjs...@g.rit.edu>
Sent: Monday, November 22, 2021 10:33
To: Warewulf
Cc:
jason....@gmail.com
Subject: Re: [Warewulf] Any way to get selinux enabled in a provisioned node?
To unsubscribe from this group and stop receiving emails from it, send an email to
warewulf+u...@lbl.gov<mailto:
warewulf+u...@lbl.gov>.
To view this discussion on the web visit
https://groups.google.com/a/lbl.gov/d/msgid/warewulf/d89d361d-f73a-48c9-8e03-dbee42d31e81n%40lbl.gov<
https://groups.google.com/a/lbl.gov/d/msgid/warewulf/d89d361d-f73a-48c9-8e03-dbee42d31e81n%40lbl.gov?utm_medium=email&utm_source=footer>.