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

Commit fd3ccb0

Browse files
authored
#298: Skip resize on FreeBSD (#299)
1 parent 40459a5 commit fd3ccb0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/etc/one-context.d/loc-05-grow-rootfs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,15 @@ export DEBUG
188188
_exit_result=0
189189
for _FS in ${GROW_FS} ; do
190190

191+
# avoid resizing FS on FreeBSD
192+
# https://github.com/OpenNebula/addon-context-linux/issues/298
193+
[ "${OS}" = 'freebsd' ] && continue
194+
191195
# FreeBSD
192196
if [ "${OS}" = 'freebsd' ]; then
193197
case "$_FS" in
194198
/)
199+
# This breaks the image unless executed manually
195200
/etc/rc.d/growfs onestart || _exit_result=$?
196201
;;
197202
*)

0 commit comments

Comments
 (0)