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