Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
#298: Skip resize on FreeBSD (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
dann1 authored Jun 2, 2023
1 parent 40459a5 commit fd3ccb0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/etc/one-context.d/loc-05-grow-rootfs
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,15 @@ export DEBUG
_exit_result=0
for _FS in ${GROW_FS} ; do

# avoid resizing FS on FreeBSD
# https://github.com/OpenNebula/addon-context-linux/issues/298
[ "${OS}" = 'freebsd' ] && continue

# FreeBSD
if [ "${OS}" = 'freebsd' ]; then
case "$_FS" in
/)
# This breaks the image unless executed manually
/etc/rc.d/growfs onestart || _exit_result=$?
;;
*)
Expand Down

0 comments on commit fd3ccb0

Please sign in to comment.