core: Add /var/lib/vagrant -> /usr/lib/vagrant

I'm thinking this list of things actually needs to live outside of the
source code and be more obvious (and we should file bugs to get the
packages fixed), but in the short term my demo today uses Vagrant and
it'd be nice if it was installable.

Closes: #364
Approved by: jlebon
This commit is contained in:
Colin Walters 2016-06-30 08:36:39 -04:00 committed by Atomic Bot
parent 1489fc9bbe
commit c68ea0a29a

View File

@ -1168,6 +1168,7 @@ rpmostree_rootfs_symlink_emptydir_at (int rootfs_fd,
*
* - Symlink /usr/local -> /var/usrlocal
* - Symlink /var/lib/alternatives -> /usr/lib/alternatives
* - Symlink /var/lib/vagrant -> /usr/lib/vagrant
*/
gboolean
rpmostree_rootfs_prepare_links (int rootfs_fd,
@ -1183,6 +1184,10 @@ rpmostree_rootfs_prepare_links (int rootfs_fd,
return FALSE;
if (!rpmostree_rootfs_symlink_emptydir_at (rootfs_fd, "../../usr/lib/alternatives", "var/lib/alternatives", error))
return FALSE;
if (!glnx_shutil_mkdir_p_at (rootfs_fd, "usr/lib/vagrant", 0755, cancellable, error))
return FALSE;
if (!rpmostree_rootfs_symlink_emptydir_at (rootfs_fd, "../../usr/lib/vagrant", "var/lib/vagrant", error))
return FALSE;
return TRUE;
}