1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00

Use the kernel cmdline elide patch to load config into RancherOS that isn't visible in /pro/cmdline

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-03-11 00:23:22 +10:00
parent 4981e76755
commit f6ce1f0685
7 changed files with 45 additions and 3 deletions

View File

@@ -29,6 +29,10 @@ while [ "$#" -gt 0 ]; do
shift 1
QEMU_APPEND="${QEMU_APPEND} $1"
;;
--append-init)
shift 1
APPEND_INIT="${APPEND_INIT} $1"
;;
--memory)
shift 1
MEMORY="$1"
@@ -125,6 +129,9 @@ fi
if [ "$RM_USR" == "1" ]; then
KERNEL_ARGS="${KERNEL_ARGS} rancher.rm_usr"
fi
if [ "$APPEND_INIT" != "" ]; then
KERNEL_ARGS="${KERNEL_ARGS} -- ${APPEND_INIT}"
fi
if [ "$BOOT_PXE" == "1" ]; then
sudo pixiecore boot \