From fb4d46d71a5793a9c39b7a16ba7ce4c9598dab75 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Fri, 18 Oct 2019 17:43:45 +0200 Subject: [PATCH] fix: fixed Invalid cross-device link error --- pwnagotchi/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pwnagotchi/utils.py b/pwnagotchi/utils.py index af6ea59..419d80d 100644 --- a/pwnagotchi/utils.py +++ b/pwnagotchi/utils.py @@ -35,7 +35,8 @@ def load_config(args): if os.path.exists("/boot/config.yml"): # logging not configured here yet print("installing /boot/config.yml to %s ...", args.user_config) - os.rename("/boot/config.yml", args.user_config) + # https://stackoverflow.com/questions/42392600/oserror-errno-18-invalid-cross-device-link + shutil.move("/boot/config.yml", args.user_config) # if not config is found, copy the defaults if not os.path.exists(args.config):