Description=Clone partitions in the recovery mode
DefaultDependencies=no
After=sysinit.target
-Before=tizen-recovery.service
+Before=recovery.service
ConditionKernelCommandLine=bootmode=recovery
[Service]
RemainAfterExit=true
[Install]
-WantedBy=tizen-recovery.service
+WantedBy=recovery.service
ln -s ../clone_partitions.service %{buildroot}%{_unitdir}/multi-user.target.wants/
install -m 775 clone_partitions/clone_partitions.sh %{buildroot}%{_bindir}
-mkdir -p %{buildroot}%{_unitdir}/tizen-recovery.service.wants
+mkdir -p %{buildroot}%{_unitdir}/recovery.service.wants
install -m 644 clone_partitions/clone_partitions_recovery.service %{buildroot}%{_unitdir}
-ln -s ../clone_partitions_recovery.service %{buildroot}%{_unitdir}/tizen-recovery.service.wants/
+ln -s ../clone_partitions_recovery.service %{buildroot}%{_unitdir}/recovery.service.wants/
%post
%attr(644, root, root) %{_unitdir}/clone_partitions.service
%attr(644, root, root) %{_unitdir}/multi-user.target.wants/clone_partitions.service
%attr(644, root, root) %{_unitdir}/clone_partitions_recovery.service
-%attr(644, root, root) %{_unitdir}/tizen-recovery.service.wants/clone_partitions_recovery.service
+%attr(644, root, root) %{_unitdir}/recovery.service.wants/clone_partitions_recovery.service
# Image verifier
%{_sbindir}/img-verifier