Browse Source

Make the check for boot config more flexible.

Joe Clarke 4 years ago
parent
commit
c9484ab8f7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      eem/tm_sw_autoconf.tcl

+ 2 - 2
eem/tm_sw_autoconf.tcl

@@ -192,11 +192,11 @@ if { $image != {} } {
         }
     }
 
-    if { [catch {cli_exec $cli(fd) "show boot | inc BOOT path-list"} result] } {
+    if { [catch {cli_exec $cli(fd) "show boot | inc $image"} result] } {
         error $result $errorInfo
     }
 
-    if { ! [regexp "$fstype$image" $result] } {
+    if { ! [regexp "$image" $result] } {
         action_syslog msg "FAILED BOOT: Failed to set boot variable: '$result'"
         exit 1
     }