Skip to content

Commit

Permalink
Always set canmount=noauto when doing new BE's
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Moore committed May 3, 2016
1 parent b9d89be commit 8146794
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions beadm
Original file line number Diff line number Diff line change
Expand Up @@ -842,14 +842,7 @@ EOF
| grep -E "^${POOL}/${BEDS}/${ACTBE}(/|$)" \
| while read NAME
do
# If we are using GRUB, don't set canmount=on, since it clobbers
# what we set in grub.cfg for vfs.root.mountfrom
if [ -e /boot/grub/grub.cfg ]
then
zfs set canmount=noauto ${NAME}
else
zfs set canmount=on ${NAME}
fi
zfs set canmount=noauto ${NAME}
while __be_clone ${NAME}
do
zfs promote ${NAME}
Expand Down

0 comments on commit 8146794

Please sign in to comment.