From 8e944cbffdf5235c244d0bb22fc57c4cb279a3ed Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 8 Feb 2012 20:22:27 -0500 Subject: [PATCH] ostree-switch-root: Correctly prepend sysroot before mounts to move from dracut --- src/switchroot/ostree-switch-root.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switchroot/ostree-switch-root.c b/src/switchroot/ostree-switch-root.c index f02edd8f..151b50f8 100644 --- a/src/switchroot/ostree-switch-root.c +++ b/src/switchroot/ostree-switch-root.c @@ -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);