Merge pull request #208 from truenas/NAS-113918

NAS-113918 / 22.02 / Do not crash on upgrading FreeBSD installations without `bootfs` prop…
This commit is contained in:
themylogin
2021-12-23 21:05:27 +01:00
committed by GitHub

View File

@@ -356,7 +356,8 @@ def main():
# Set bootfs before running update-grub
run_command(["zpool", "set", f"bootfs={dataset_name}", pool_name])
if is_freebsd_upgrade:
run_command(["zfs", "set", "truenas:12=1", old_bootfs_prop])
if old_bootfs_prop != "-":
run_command(["zfs", "set", "truenas:12=1", old_bootfs_prop])
cp = run_command([f"{root}/usr/local/bin/truenas-initrd.py", root], check=False)
if cp.returncode > 1: