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"