diff --git a/entry.sh b/entry.sh
index 5d2b76c..45b8f84 100755
--- a/entry.sh
+++ b/entry.sh
@@ -2,6 +2,7 @@
 
 
 function first_stage(){
+	set -e
 	echo foo first_stage
 	
 	apt install debootstrap
@@ -23,6 +24,7 @@ function first_stage(){
 }
 
 function second_stage(){
+	set -e
 	echo bar second_stage
 	passwd
 	echo -n > /etc/motd