From 24a95474b0254bc89a527d5bca170689a8fc42f1 Mon Sep 17 00:00:00 2001 From: Andrew Walker Date: Mon, 16 Oct 2023 08:14:14 -0400 Subject: [PATCH] Fix upgrade path for Core to SCALE (#512) TrueNAS Core installs by default do not have a /home directory and so it should be omitted when copying data to new boot environment on that platform. No attempt is made to copy a non-default /home configuration because that directory is used in SCALE and may cause undesired behavior post-upgrade. --- truenas_install/__main__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/truenas_install/__main__.py b/truenas_install/__main__.py index 7cbdc63..de628d9 100644 --- a/truenas_install/__main__.py +++ b/truenas_install/__main__.py @@ -494,14 +494,16 @@ def main(): rsync = [ "etc/hostid", "data", - "home", "root", ] if is_freebsd_upgrade: if not IS_FREEBSD: setup_machine_id = True else: - rsync.append("etc/machine-id") + rsync.extend([ + "etc/machine-id", + "home" + ]) run_command([ "rsync", "-aRx",