Skip to content

Commit

Permalink
NAS-113750 / 22.12 / Merge pull request #294 from truenas/NAS-113750
Browse files Browse the repository at this point in the history
NAS-113750 / 22.12 / Do not set `hint.isp.X.role` on upgrade if it is already set
  • Loading branch information
rick-mesta authored Jun 15, 2022
2 parents 70bfb04 + b2246a8 commit 66bbea1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/profiles/freenas/packages/base-os/config
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ post-install =

if ! dmidecode -s system-product-name | egrep "^(FREE|TRUE)NAS" > /dev/null; then
for i in `seq 0 3`; do
echo "hint.isp.$i.role=2" >> /boot/loader.conf.local
file=/boot/loader.conf.local
name="hint.isp.$i.role"
if ! cat "$file" | grep -q "$name"; then
echo "$name=2" >> $file
fi
done
fi

Expand Down

0 comments on commit 66bbea1

Please sign in to comment.