startupitem issue with unmounted volume (non-default prefix)

Daniel J. Luke dluke at geeklair.net
Tue Jul 21 15:07:11 PDT 2015


> On Jul 20, 2015, at 5:25 PM, Brandon Allbery <allbery.b at gmail.com> wrote:
> 
> 
> On Mon, Jul 20, 2015 at 5:19 PM, Daniel J. Luke <dluke at geeklair.net> wrote:
> Maybe we should add something like:
> 
>     <key>KeepAlive</key>
>     <dict>
>         <key>PathState</key>
>         <dict>
>             <key>$prefix</key>
>             <true/>
>         </dict>
>     </dict>
> 
> to our auto-generated plists? (I /think/ that will make launchd wait until $prefix is available, but haven’t tested it yet).
> 
> The problem is that MacPorts installs the plists themselves as symlinks under $prefix. They can't be resolved if $prefix hasn't been mounted yet.

ok, so we should probably be copying the plist (instead of symlinking it - which is a lesson we should have already learned from back in the ‘images’ days) - and we likely also want something like the above.

--
Daniel J. Luke                                                                   
+========================================================+                        
| *---------------- dluke at geeklair.net ----------------* |                          
| *-------------- http://www.geeklair.net -------------* |                          
+========================================================+                        
|   Opinions expressed are mine and do not necessarily   |                          
|          reflect the opinions of my employer.          |                          
+========================================================+






More information about the macports-dev mailing list