ostree-switch-root: Correctly prepend sysroot before mounts to move from dracut

This commit is contained in:
Colin Walters 2012-02-08 20:22:27 -05:00
parent 78bc1bbb20
commit 8e944cbffd
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ main(int argc, char *argv[])
{
const char *path = initramfs_move_mounts[i];
snprintf (srcpath, sizeof(srcpath), path);
snprintf (destpath, sizeof(destpath), "/ostree/%s%s", ostree_target, path);
snprintf (destpath, sizeof(destpath), "%s/ostree/%s%s", root_mountpoint, ostree_target, path);
if (mount (srcpath, destpath, NULL, MS_MOVE, NULL) < 0)
{
perrorv ("failed to move mount of %s to %s", srcpath, destpath);