ebbe78
[Unit]
ebbe78
Description=RPM database migration to /usr
ebbe78
ConditionPathExists=/var/lib/rpm/.migratedb
ebbe78
ebbe78
# This should run before any daemons that may open the rpmdb
ebbe78
DefaultDependencies=no
ebbe78
After=sysinit.target
ebbe78
Before=basic.target shutdown.target
ebbe78
Conflicts=shutdown.target
ebbe78
# In case /var is remote-mounted
ebbe78
RequiresMountsFor=/var
ebbe78
ebbe78
[Service]
ebbe78
Type=oneshot
ebbe78
ExecStart=/usr/lib/rpm/rpmdb_migrate
ebbe78
ebbe78
[Install]
ebbe78
WantedBy=basic.target