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.

(cherry picked from commit 63d151f)
  • Loading branch information
anodos325 authored and Vladimir Vinogradenko committed Oct 16, 2023
1 parent d8ae8ee commit 5259bfc
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 @@ -453,14 +453,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 5259bfc

Please sign in to comment.