Skip to content

Commit

Permalink
Fix upgrade path for Core to SCALE
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
anodos325 committed Oct 16, 2023
1 parent e500ae8 commit 63d151f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions truenas_install/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 63d151f

Please sign in to comment.