-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hb-service occupies mountpoint when home folder symlinked to software RAID on macOS #680
Comments
Can you show the contents of this file?
|
Unfortunately, no. I nuked it so I could get my computer to boot up again. Whatever was there was generated by the latest version of |
This is definitely the line that's causing the issue: https://github.com/oznu/homebridge-config-ui-x/blob/master/src/bin/hb-service.ts#L553 And it looks like the |
I couldn't get PathState to work how I need it to. Instead I made a change to This means until This is currently in https://github.com/oznu/homebridge-config-ui-x/wiki/How-To-Test-Upcoming-Changes |
That sounds like a workable solution, but does that mean that users will have to manually create the |
It will create it for them still. It just checks for the presence of $HOME path first. |
Describe The Bug:
I have my OS booting from a SSD, with my home folder symlinked to a folder on a software RAID array. This lets me keep my user storage and OS storage separate so I can freely tinker with my OS, boot different versions from other drives with the same home folder, etc.
After installing
hb-service
, when I rebooted, I was alarmed to find my home folder completely missing and macOS awfully confused about my Keychain.I was worried I lost my RAID array, so I checked status in Disk Utility -- it's fine, and when I navigated to it in the Finder, everything was there. However, in
/Volumes/lazdRAID/
, where my RAID array's mount point should be, was a bare folder. Next to it was/Volumes/lazdRAID 1/
, where my array ended up mounting...There was but one thing inside of the bare folder:
/Volumes/lazdRAID/Users/lazd/.homebridge
. Every time I deleted/Volumes/lazdRAID/
, the whole directory structure would magically appear again with only the/Volumes/lazdRAID/Users/lazd/.homebridge
inside of it.Since
nvm
was hosed due to no home folder, I had to manually find plist for homebridge, stop it withlaunchctl
, delete the pllist, delete the bare folder at/Volumes/lazdRAID/
, and reboot. Then, my system was finally back to normal.To Reproduce:
hb-service
Expected behavior:
Well, certainly not that.
Insight
I imagine there is a bit of
mkdir -p
going on somewhere inhb-service
, and I imagine thathb-service
is starting up at too low of a runlevel, long before software RAID mounts, and long before my home folder exists. This is very bad behavior, but an understandable bug.Environment:
The text was updated successfully, but these errors were encountered: