| [Unit] |
| Description=RPM database rebuild |
| ConditionPathExists=/usr/lib/sysimage/rpm/.rebuilddb |
| |
| |
| DefaultDependencies=no |
| After=sysinit.target |
| Before=basic.target shutdown.target |
| Conflicts=shutdown.target |
| |
| RequiresMountsFor=/usr |
|
|
| [Service] |
| Type=oneshot |
| ExecStart=/usr/bin/rpmdb --rebuilddb |
| ExecStartPost=rm -f /usr/lib/sysimage/rpm/.rebuilddb |
|
|
| [Install] |
| WantedBy=basic.target |