Skip to content
Snippets Groups Projects
Commit 1a666329 authored by Nils K's avatar Nils K
Browse files

use $TARGET not always nvme0n1p1

parent acd9d8f8
No related branches found
No related tags found
1 merge request!18support encrypted usb storage device, reform-migrate fixes and improvement
...@@ -24,7 +24,7 @@ then ...@@ -24,7 +24,7 @@ then
exit exit
fi fi
if [ ! -e $TARGET ] if [ ! -e "$TARGET" ]
then then
echo "Error: The partition $TARGET does not exist." echo "Error: The partition $TARGET does not exist."
exit exit
...@@ -37,7 +37,7 @@ fi ...@@ -37,7 +37,7 @@ fi
echo "Trying to mount $TARGET... (if this fails, format the disk/partition as explained above)" 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 "Target partition successfully mounted. The next step will copy all your files over to the target, overwriting existing files in the process."
echo "" echo ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment