Commit 0b9cfed7 authored by Martin Peres's avatar Martin Peres
Browse files

initscript: declare the global variables above the function that defines them

parent 41f6143d
......@@ -45,6 +45,9 @@ function setup_env {
export HOME=/root
}
ARG_MODULES=""
ARG_CONTAINER=""
ARG_CACHE_DEVICE="none"
function parse_cmdline {
cmdline=$(busybox cat /proc/cmdline)
......@@ -223,9 +226,6 @@ setup_busybox
setup_env
# Parse the kernel command line, in search of the b2c parameters
ARG_MODULES=""
ARG_CONTAINER=""
ARG_CACHE_DEVICE="none"
parse_cmdline
# Now that the early boot is over, let's log every command executed
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment