From 1a66632942f335f10f445df33bb895bce6907e70 Mon Sep 17 00:00:00 2001 From: Nils K <git@nkn-it.de> Date: Mon, 29 Mar 2021 15:04:00 +0200 Subject: [PATCH] use $TARGET not always nvme0n1p1 --- reform2-imx8mq/reform-tools_1.0-6/usr/sbin/reform-migrate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reform2-imx8mq/reform-tools_1.0-6/usr/sbin/reform-migrate b/reform2-imx8mq/reform-tools_1.0-6/usr/sbin/reform-migrate index 098ff19..108ff45 100755 --- a/reform2-imx8mq/reform-tools_1.0-6/usr/sbin/reform-migrate +++ b/reform2-imx8mq/reform-tools_1.0-6/usr/sbin/reform-migrate @@ -24,7 +24,7 @@ then exit fi -if [ ! -e $TARGET ] +if [ ! -e "$TARGET" ] then echo "Error: The partition $TARGET does not exist." exit @@ -37,7 +37,7 @@ fi echo "Trying to mount $TARGET... (if this fails, format the disk/partition as explained above)" -mount /dev/nvme0n1p1 /mnt +mount "$TARGET" /mnt echo "Target partition successfully mounted. The next step will copy all your files over to the target, overwriting existing files in the process." echo "" -- GitLab