diff --git a/src/libpriv/rpmostree-postprocess.c b/src/libpriv/rpmostree-postprocess.c index bda87658..e11cd75d 100644 --- a/src/libpriv/rpmostree-postprocess.c +++ b/src/libpriv/rpmostree-postprocess.c @@ -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; }