[fix] On rpi reboot before postinstall

This commit is contained in:
ljf 2017-01-13 00:37:52 +01:00
parent fc568f1f30
commit db45db77a2

View file

@ -513,6 +513,11 @@ if [[ "$BUILD_IMAGE" == "1" ]] ; then
fi fi
fi fi
if is_raspbian ; then
# Reboot should be done before postinstall to be able to run iptables rules
reboot
fi
if ! step post_install ; then if ! step post_install ; then
die "Post-installation failed" 13 die "Post-installation failed" 13
fi fi
@ -520,9 +525,4 @@ fi
# Success ! # Success !
success success
if is_raspbian ; then
reboot
fi
exit 0 exit 0