[lxc-users] Fedora 20 template on LVM not working

Serge Hallyn serge.hallyn at ubuntu.com
Fri May 9 03:57:39 UTC 2014


Could you try applying this patch to the fedora template and show
us the result?

>From 2b7717f410b824bd960e3a3ef2c85ea739dc5678 Mon Sep 17 00:00:00 2001
From: Serge Hallyn <serge.hallyn at ubuntu.com>
Date: Thu, 8 May 2014 22:53:47 -0500
Subject: [PATCH 1/1] debug rootfspath in fedora

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
---
 templates/lxc-fedora.in | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/templates/lxc-fedora.in b/templates/lxc-fedora.in
index 2e14cc8..4e9f3f4 100644
--- a/templates/lxc-fedora.in
+++ b/templates/lxc-fedora.in
@@ -1291,7 +1291,9 @@ if [ -n "$needed_pkgs" ]; then
     exit 1
 fi
 
+echo "path came in as .$path."
 if [ -z "$path" ]; then
+    echo "default_path is .$default_path."
     path=$default_path/$name
 fi
 
@@ -1318,12 +1320,15 @@ if [ "$(id -u)" != "0" ]; then
 fi
 
 
+echo "1. rootfs_path comes in as .$rootfs_path."
 if [ -z "$rootfs_path" ]; then
     rootfs_path=$path/rootfs
+    echo "2. rootfs_path becomes .$rootfs_path."
     # check for 'lxc.rootfs' passed in through default config by lxc-create
     if grep -q '^lxc.rootfs' $path/config 2>/dev/null ; then
         rootfs_path=$(sed -e '/^lxc.rootfs\s*=/!d' -e 's/\s*#.*//' \
             -e 's/^lxc.rootfs\s*=\s*//' -e q $path/config)
+        echo "3. rootfs_path is .$rootfs_path."
     fi
 fi
 config_path=$path
-- 
1.8.3.2



More information about the lxc-users mailing list