mirror of
https://github.com/truenas/scale-build.git
synced 2026-02-15 07:29:12 +00:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user