installer media: use INSTALL_MEDIA variable value, not name

At the point of saving the bootcmd for the second stage of the install
process we want to use the variable value, not the variable name
since this variable doesn't exist after the environment is reset.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-9711
This commit is contained in:
Hector Palacios 2025-07-04 17:54:08 +02:00
parent 6858f8aa25
commit 1e726ebcf5
8 changed files with 16 additions and 16 deletions

View File

@ -173,7 +173,7 @@ setenv bootcmd "
echo \"Aborted.\"; echo \"Aborted.\";
exit; exit;
fi; fi;
if test \"\$\{INSTALL_MEDIA\}\" = "usb"; then if test "${INSTALL_MEDIA}" = "usb"; then
usb start; usb start;
fi; fi;
if test \"\$\{dualboot\}\" = yes; then if test \"\$\{dualboot\}\" = yes; then
@ -203,7 +203,7 @@ setenv bootcmd "
exit; exit;
fi; fi;
fi; fi;
if test \"\$\{INSTALL_MEDIA\}\" = "usb"; then if test "${INSTALL_MEDIA}" = "usb"; then
usb reset; usb reset;
fi; fi;
echo \"\"; echo \"\";

View File

@ -180,7 +180,7 @@ setenv bootcmd "
echo \"Aborted.\"; echo \"Aborted.\";
exit; exit;
fi; fi;
if test \"\$\{INSTALL_MEDIA\}\" = "usb"; then if test "${INSTALL_MEDIA}" = "usb"; then
usb start; usb start;
fi; fi;
if test \"\$\{dualboot\}\" = yes; then if test \"\$\{dualboot\}\" = yes; then
@ -210,7 +210,7 @@ setenv bootcmd "
exit; exit;
fi; fi;
fi; fi;
if test \"\$\{INSTALL_MEDIA\}\" = "usb"; then if test "${INSTALL_MEDIA}" = "usb"; then
usb reset; usb reset;
fi; fi;
echo \"\"; echo \"\";

View File

@ -174,7 +174,7 @@ setenv bootcmd "
else else
force_erase=\"-e\"; force_erase=\"-e\";
fi; fi;
if test \"\$\{INSTALL_MEDIA\}\" = "usb"; then if test "${INSTALL_MEDIA}" = "usb"; then
usb start; usb start;
fi; fi;
if test \"\$\{dualboot\}\" = yes; then if test \"\$\{dualboot\}\" = yes; then
@ -204,7 +204,7 @@ setenv bootcmd "
exit; exit;
fi; fi;
fi; fi;
if test \"\$\{INSTALL_MEDIA\}\" = "usb"; then if test "${INSTALL_MEDIA}" = "usb"; then
usb reset; usb reset;
fi; fi;
echo \"\"; echo \"\";

View File

@ -149,7 +149,7 @@ setenv bootcmd "
echo \"Aborted.\"; echo \"Aborted.\";
exit; exit;
fi; fi;
if test \"\$\{INSTALL_MEDIA\}\" = "usb"; then if test "${INSTALL_MEDIA}" = "usb"; then
usb start; usb start;
fi; fi;
if test \"\$\{dualboot\}\" = yes; then if test \"\$\{dualboot\}\" = yes; then
@ -179,7 +179,7 @@ setenv bootcmd "
exit; exit;
fi; fi;
fi; fi;
if test \"\$\{INSTALL_MEDIA\}\" = "usb"; then if test "${INSTALL_MEDIA}" = "usb"; then
usb reset; usb reset;
fi; fi;
echo \"\"; echo \"\";

View File

@ -160,7 +160,7 @@ setenv bootcmd "
echo \"Aborted.\"; echo \"Aborted.\";
exit; exit;
fi; fi;
if test \"\$\{INSTALL_MEDIA\}\" = "usb"; then if test "${INSTALL_MEDIA}" = "usb"; then
usb start; usb start;
fi; fi;
if test \"\$\{dualboot\}\" = yes; then if test \"\$\{dualboot\}\" = yes; then
@ -190,7 +190,7 @@ setenv bootcmd "
exit; exit;
fi; fi;
fi; fi;
if test \"\$\{INSTALL_MEDIA\}\" = "usb"; then if test "${INSTALL_MEDIA}" = "usb"; then
usb reset; usb reset;
fi; fi;
echo \"\"; echo \"\";

View File

@ -183,7 +183,7 @@ setenv bootcmd "
echo \"Aborted.\"; echo \"Aborted.\";
exit; exit;
fi; fi;
if test \"\$\{INSTALL_MEDIA\}\" = "usb"; then if test "${INSTALL_MEDIA}" = "usb"; then
usb start; usb start;
fi; fi;
if test \"\$\{dualboot\}\" = yes; then if test \"\$\{dualboot\}\" = yes; then
@ -213,7 +213,7 @@ setenv bootcmd "
exit; exit;
fi; fi;
fi; fi;
if test \"\$\{INSTALL_MEDIA\}\" = "usb"; then if test "${INSTALL_MEDIA}" = "usb"; then
usb reset; usb reset;
fi; fi;
echo \"\"; echo \"\";

View File

@ -191,7 +191,7 @@ setenv bootcmd "
setenv rootfstype ${rootfstype}; setenv rootfstype ${rootfstype};
setenv install_dualboot ${install_dualboot}; setenv install_dualboot ${install_dualboot};
run ubivolscript; run ubivolscript;
if test \"\$\{INSTALL_MEDIA\}\" = "usb"; then if test "${INSTALL_MEDIA}" = "usb"; then
usb start; usb start;
fi; fi;
if test \"\$\{dualboot\}\" = yes; then if test \"\$\{dualboot\}\" = yes; then
@ -221,7 +221,7 @@ setenv bootcmd "
exit; exit;
fi; fi;
fi; fi;
if test \"\$\{INSTALL_MEDIA\}\" = "usb"; then if test "${INSTALL_MEDIA}" = "usb"; then
usb reset; usb reset;
fi; fi;
echo \"\"; echo \"\";

View File

@ -198,7 +198,7 @@ setenv bootcmd "
echo \"Aborted.\"; echo \"Aborted.\";
exit; exit;
fi; fi;
if test \"\$\{INSTALL_MEDIA\}\" = "usb"; then if test "${INSTALL_MEDIA}" = "usb"; then
usb start; usb start;
fi; fi;
if test \"\$\{dualboot\}\" = yes; then if test \"\$\{dualboot\}\" = yes; then
@ -228,7 +228,7 @@ setenv bootcmd "
exit; exit;
fi; fi;
fi; fi;
if test \"\$\{INSTALL_MEDIA\}\" = "usb"; then if test "${INSTALL_MEDIA}" = "usb"; then
usb reset; usb reset;
fi; fi;
echo \"\"; echo \"\";