aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/fedora-autorelabel
Commit message (Collapse)AuthorAgeFilesLines
* selinuxfs moved, adjust code. (#733759)Bill Nottingham2011-08-301-1/+1
|
* plymouth lives in /bin. (#702814)Bill Nottingham2011-08-151-1/+1
|
* separate "touch /.autorelabel" to a new unitMichal Schmidt2011-04-041-4/+0
| | | | | | | | | | | | | | | | | | | Writing /.autorelabel from fedora-autorelabel does not work because the script is executed only if relabel was already requested. Create a new unit fedora-autorelabel-mark.service which will be responsible for creating /.autorelabel if SELinux is disabled. The unit takes advantage of the new "ConditionSecurity=" support in systemd. The old script checked for a read-only filesystem first. The new unit does not do that. If / is read-only, touch will simply fail. This should not be considered as a failure of the unit, so "-" is used in ExecStart. There have been arguments on systemd-devel that the root directory should not be abused for flag files like /.autorelabel. It has a long tradition in Fedora though (since 2005). Maybe we can change it eventually, but let's keep it where it is for now.
* simplify the check for plymouth in fedora-autorelabelMichal Schmidt2011-04-041-4/+1
| | | | | The result of the check is needed only once, so there's no advantage in caching it in a variable.
* let systemd check the conditions for fedora-autorelabelMichal Schmidt2011-04-041-18/+3
| | | | | | | The service unit file already checks whether /.autorelabel or the "autorelabel" parameter are present. No need to recheck in the script. Using the new "ConditionSecurity=" feature systemd can also check whether SELinux is enabled.
* fedora-autorelabel: drop disable_selinux() since it is unusedLennart Poettering2010-11-211-7/+0
|
* autorelabel: use systemd internal reboot logic, which is more robust and ↵Lennart Poettering2010-11-211-5/+1
| | | | includes automatic unmounting
* Don't relabel random files; this shouldn't happen any more.Bill Nottingham2010-11-181-12/+1
| | | | Also, merge blocks on identical conditions.
* Fix comment.Bill Nottingham2010-10-281-1/+1
|
* Add autorelabel service.Bill Nottingham2010-10-261-0/+84