From 277246bfd8c9d2db5576f406f66c455a63787824 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Mon, 22 Mar 2010 21:48:27 +0000 Subject: [PATCH] extract correct lxc.rootfs git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@194 191e9f34-6774-4a6d-acfc-7664dacd4a2a --- recepies/lxc/lxc-watchdog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recepies/lxc/lxc-watchdog.sh b/recepies/lxc/lxc-watchdog.sh index 435e1a2..077b4aa 100755 --- a/recepies/lxc/lxc-watchdog.sh +++ b/recepies/lxc/lxc-watchdog.sh @@ -37,7 +37,7 @@ lxc_exists() { lxc_rootfs() { - grep lxc.rootfs "/var/lib/lxc/$1/config" | cut -d= -f2 | sed 's/^ *//' + grep '^ *lxc\.rootfs *=' "/var/lib/lxc/$1/config" | cut -d= -f2 | sed 's/^ *//' } -- 2.20.1