From 334567d763259c33a5527a8e58a22257fbe6046c Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Tue, 7 Oct 2014 09:25:40 -0500 Subject: [PATCH] distro_defaults: add backup mmcroot definition --- lib/distro_defaults.cmd | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/distro_defaults.cmd b/lib/distro_defaults.cmd index c16597b..7e2739e 100644 --- a/lib/distro_defaults.cmd +++ b/lib/distro_defaults.cmd @@ -20,7 +20,14 @@ for i in 1 2 3 4 5 6 7 ; do echo Using: [uuid=${uuid}] ...; else echo Warning: [uuid] is not set in /boot/uEnv.txt ...; - echo Using: [root=${mmcroot} ro] ...; + if test -n ${mmcroot}; then + setenv root ${mmcroot} ro; + echo Using: [root=${mmcroot} ro] ...; + else + echo Warning: [mmcroot] is not set in /boot/uEnv.txt...; + setenv root /dev/mmcblk0p1 ro; + echo Using: [root=/dev/mmcblk0p1 ro] ...; + fi; fi; if test -n ${uname_r}; then