Modello-Installer: wait for tmp.mount, remove redundant rm
authorPatrick Ohly <patrick.ohly@intel.com>
Tue, 3 Feb 2015 14:01:21 +0000 (06:01 -0800)
committerPatrick Ohly <patrick.ohly@intel.com>
Tue, 3 Feb 2015 15:22:49 +0000 (07:22 -0800)
The installer depends on the final /tmp. Without specifying
that, there's a race condition. At least once it was seen
that installation failed because /tmp was not mounted.

The "rm" command is part of the install script itself. There is
no need to duplicate that.

Change-Id: I69e2fc97ba7f1a2f7f44323e0caa2ec2cdece4d6

meta-tizen-ivi/recipes-modello/Modello-Installer/Modello-Installer/modello-installer-postinst.service

index c306f6f..5e2da8e 100644 (file)
@@ -1,12 +1,12 @@
 [Unit]
 Description=Install Modello applications
 Before=Modello_Homescreen.service
+After=tmp.mount
 
 [Service]
 Type=oneshot
 SmackExecLabel=User
 ExecStart=/usr/share/modello-installer/modello-installer-postinst.sh
-ExecStartPost=/bin/rm -f /usr/lib/systemd/system/multi-user.target.wants/modello-installer-postinst.service
 
 [Install]
 WantedBy=multi-user.target