From 4433351b9550224054cb8264dfff1e63e2e4e430 Mon Sep 17 00:00:00 2001 From: elishl Date: Sun, 2 Jul 2017 17:20:22 +0300 Subject: [PATCH] Update miso --- initcpio/hooks/miso | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/initcpio/hooks/miso b/initcpio/hooks/miso index e51d34e..3c32645 100644 --- a/initcpio/hooks/miso +++ b/initcpio/hooks/miso @@ -55,10 +55,11 @@ _mnt_sfs() { local mnt="${2}" local img_fullname="${img##*/}" local sfs_dev + local oper=$( [[ -n "${ip}" && -n "${miso_http_srv}" ]] && echo "mv" || echo "cp" ) if [[ "${copytoram}" == "y" ]]; then msg -n ":: Copying squashfs image to RAM..." - if ! cp "${img}" "/run/miso/copytoram/${img_fullname}" ; then + if ! "${oper}" "${img}" "/run/miso/copytoram/${img_fullname}" ; then echo "ERROR: while copy '${img}' to '/run/miso/copytoram/${img_fullname}'" launch_interactive_shell fi