Ensure that `oeapkman root` doesn't produce other output.
ROOT_FS creation is skipped. Will happen as necessary during
subsequent invocation of oeapkman.
@@ -245,6 +245,12 @@ alpine_exec()
fi
}
+# oeapkman root should not produce any output other than the root path.
+# Delay setting up the root-fs until the next call.
+if [ "$1" = "root" ]; then
+ echo "$ROOTFS_PATH"
+ exit 0
+fi
# Setup alpine file system.
mkdir -p "${OEAPKMAN_DIR}" || exit 1
@@ -278,10 +284,6 @@ case "$1" in
print_usage
;;
- "root")
- echo "$ROOTFS_PATH"
- ;;
-
"search")
alpine_exec flock "$LOCK_FILE" apk "$@" -v | sort
;;
