diff --git a/stage3/EXPORT_IMAGE b/stage4/EXPORT_IMAGE similarity index 100% rename from stage3/EXPORT_IMAGE rename to stage4/EXPORT_IMAGE diff --git a/stage3/EXPORT_NOOBS b/stage4/EXPORT_NOOBS similarity index 100% rename from stage3/EXPORT_NOOBS rename to stage4/EXPORT_NOOBS diff --git a/stage4/prerun.sh b/stage4/prerun.sh new file mode 100644 index 00000000..9acd13cb --- /dev/null +++ b/stage4/prerun.sh @@ -0,0 +1,5 @@ +#!/bin/bash -e + +if [ ! -d "${ROOTFS_DIR}" ]; then + copy_previous +fi