From 3dc970231a1d838f433bae0bcf4c1544ee74fb23 Mon Sep 17 00:00:00 2001 From: "Martin T. H. Sandsmark" Date: Mon, 10 Jul 2017 18:49:44 +0200 Subject: [PATCH] zero-gravitas.h: ensure we always have a uboot.env file, so update-engine is happy --- include/configs/zero-gravitas.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/zero-gravitas.h b/include/configs/zero-gravitas.h index 7e5d31eeaf..87db88d1fc 100644 --- a/include/configs/zero-gravitas.h +++ b/include/configs/zero-gravitas.h @@ -113,6 +113,9 @@ /* Always try to boot from memory first, in case of USB download mode */ #define CONFIG_BOOTCOMMAND \ + "if test ! -e mmc 1:1 uboot.env; then " \ + "saveenv; " \ + "fi; " \ "run memboot; " \ "run mmcargs; " \ "setenv mmcpart ${active_partition}; " \