vpnor: Add hostfw symlinks
On eMMC, in addition to the PNOR files, there are hostfw
files. Create symlinks for the 2 versions on flash, so that
pldm (which will replace mboxd) can read/write.
Tested: Both pnor and hostfw links are created:
root@rainier:~# ls -l /var/lib/phosphor-software-manager/*
/var/lib/phosphor-software-manager/hostfw:
lrwxrwxrwx 1 root root 23 Jul 16 20:37 alternate -> /media/hostfw/alternate
lrwxrwxrwx 1 root root 21 Jul 16 20:37 running -> /media/hostfw/running
/var/lib/phosphor-software-manager/pnor:
lrwxrwxrwx 1 root root 21 Jul 16 20:37 prsv -> /media/hostfw/running
lrwxrwxrwx 1 root root 21 Jul 16 20:37 ro -> /media/hostfw/running
lrwxrwxrwx 1 root root 21 Jul 16 20:37 rw -> /media/hostfw/running
Change-Id: I2fe726641611112bc7a447eed5c2d64db268ce8e
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/vpnor/obmc-vpnor-updatesymlinks.service b/vpnor/obmc-vpnor-updatesymlinks.service
index 8184f51..31ca628 100644
--- a/vpnor/obmc-vpnor-updatesymlinks.service
+++ b/vpnor/obmc-vpnor-updatesymlinks.service
@@ -1,5 +1,6 @@
[Unit]
Description=Updates symlinks for active PNOR version
+Before=pldmd.service
Before=mboxd.service
Before=mboxd-reload@0.service
After=org.open_power.Software.Host.Updater.service