diff --git a/selinux/selinux-autorelabel-generator b/selinux/selinux-autorelabel-generator index 46a3826..e99317e 100755 --- a/selinux/selinux-autorelabel-generator +++ b/selinux/selinux-autorelabel-generator @@ -43,6 +43,7 @@ enable_units() { [Service] Type=oneshot ExecStart=/sbin/restorecon -R ${opts} ${realdir} + RemainAfterExit=true EOF ln -sf ../"${unitfile}" "${generatordir}"/local-fs.target.requires/"${unitfile}" @@ -62,7 +63,8 @@ enable_units() { [Service] Type=oneshot ExecStart=/usr/bin/rm /etc/selinux/.autorelabel -EOF + RemainAfterExit=true + EOF ln -sf "../${unitfile}" "${generatordir}/local-fs.target.requires/${unitfile}" }