Skip to content

Implement "mount_options" and "mount_type" capabilities, persisting shared folders after manual reboot#377

Merged
romankulikov merged 3 commits intoParallels:masterfrom
legal90:fix-shared-folder
Dec 14, 2020
Merged

Implement "mount_options" and "mount_type" capabilities, persisting shared folders after manual reboot#377
romankulikov merged 3 commits intoParallels:masterfrom
legal90:fix-shared-folder

Conversation

@legal90
Copy link
Collaborator

@legal90 legal90 commented Dec 13, 2020

This PR ports the functionality "Persist Shared Folders after manual reboot" for Linux gusest, which has been recently implemented in upstream Vagrant :

Now shared folder mounts are added to /etc/fstab on the guest side, so the they will be properly re-mounted after a "manual" reboot of the VM.

Fixes #376
Fixes #290

Among the other things, it enables the auto-mount of shared folder after a manual guest reboot
This commit reverts Parallels@04a4770
as it's not needed anymore.
Thanks to "mount_name" synced folder capability, the multi-mount of a single shared folder works just fine
mount_uid = detected_ids[:uid]
mount_gid = detected_ids[:gid]

mount_options << "uid=#{mount_uid}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious why are uid/gid mount options used but not share?

@romankulikov
Copy link
Collaborator

Frankly speaking I can hardly understand what's going on this change-set. So my review ineffective. Sorry.

@romankulikov romankulikov merged commit 04ad925 into Parallels:master Dec 14, 2020
@legal90 legal90 deleted the fix-shared-folder branch December 14, 2020 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shared Folders not mounted after manual reboot Automounting disabled

2 participants