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.
This commit is contained in:
Andrew Walker
2023-10-16 08:14:14 -04:00
committed by GitHub
parent e500ae81fd
commit 24a95474b0

View File

@@ -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",