From acbdb0ed3ce832b2fd77fb7140da39cb2f2f7a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Font=C3=A1n=20Mui=C3=B1os?= Date: Mon, 26 Jan 2009 11:37:28 +0000 Subject: [PATCH] Added full path to mkswap command git-svn-id: http://svn.opennebula.org/one/trunk@324 3034c82b-c49b-4eb3-8279-a7acafdc01c0 --- src/tm_mad/nfs/tm_mkswap.sh | 2 +- src/tm_mad/ssh/tm_mkswap.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tm_mad/nfs/tm_mkswap.sh b/src/tm_mad/nfs/tm_mkswap.sh index 7540c31147..56935d48f9 100755 --- a/src/tm_mad/nfs/tm_mkswap.sh +++ b/src/tm_mad/nfs/tm_mkswap.sh @@ -34,7 +34,7 @@ log "Creating ${SIZE}Mb image in $DST_PATH" exec_and_log "dd if=/dev/zero of=$DST_PATH bs=1 count=1 seek=${SIZE}M" log "Initializing swap space" -exec_and_log "mkswap $DST_PATH" +exec_and_log "/sbin/mkswap $DST_PATH" exec_and_log "chmod a+w $DST_PATH" diff --git a/src/tm_mad/ssh/tm_mkswap.sh b/src/tm_mad/ssh/tm_mkswap.sh index a8afb15b91..9bb4adc7f6 100755 --- a/src/tm_mad/ssh/tm_mkswap.sh +++ b/src/tm_mad/ssh/tm_mkswap.sh @@ -38,7 +38,7 @@ exec_and_log "ssh $DST_HOST mkdir -p $DST_DIR" exec_and_log "ssh $DST_HOST dd if=/dev/zero of=$DST_PATH bs=1 count=1 seek=${SIZE}M" log "Initializing swap space" -exec_and_log "ssh $DST_HOST mkswap $DST_PATH" +exec_and_log "ssh $DST_HOST /sbin/mkswap $DST_PATH" exec_and_log "ssh $DST_HOST chmod a+w $DST_PATH"