[ostree] ostree-switch-root: Correctly prepend sysroot before mounts to move from dracut
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] ostree-switch-root: Correctly prepend sysroot before mounts to move from dracut
- Date: Thu, 9 Feb 2012 01:23:22 +0000 (UTC)
commit 8e944cbffdf5235c244d0bb22fc57c4cb279a3ed
Author: Colin Walters <walters verbum org>
Date: Wed Feb 8 20:22:27 2012 -0500
ostree-switch-root: Correctly prepend sysroot before mounts to move from dracut
src/switchroot/ostree-switch-root.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/switchroot/ostree-switch-root.c b/src/switchroot/ostree-switch-root.c
index f02edd8..151b50f 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]