Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Add support to mount Linux host homedir #1086

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ automatically mounted at the location specified:
3. `c/Users` share at `/c/Users`
4. `/c/Users` share at `/c/Users`
5. `c:/Users` share at `/c/Users`
6. `/home` share at `/hosthome`

If some other path or share is desired, it can be mounted at run time by doing
something like:
Expand Down
10 changes: 10 additions & 0 deletions rootfs/rootfs/etc/rc.d/vbox
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,20 @@ if modprobe vboxguest &> /dev/null && modprobe vboxsf &> /dev/null; then
# bfirsh gets all the credit for this hacky workaround :)
try_mount_share /Users 'Users' \
|| try_mount_share /Users \
|| try_mount_share /hosthome 'hosthome' \
|| try_mount_share /hosthome \
|| try_mount_share /c/Users 'c/Users' \
|| try_mount_share /c/Users \
|| try_mount_share /c/Users 'c:/Users' \
|| true
# If /hosthome exists, link the user homedirs
if [ -d /hosthome ]
then
ls -1 /hosthome | while read d
do
ln -s "/hosthome/${d}" "/home/${d}"
done
fi
# TODO replace this whole hacky bit with VBoxService --only-automount
# (the problem with that being that we can't run VBoxService because the
# 32bit VBoxService won't work with the 64bit kernel modules, but the 64bit
Expand Down