mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-15 06:33:45 +00:00
Output kernel command line to a file in the kernel+initrd output case
Trying to find the relevant yaml file was an issue as we now support `--name` and it might be in a different directory, so although it is a bit verbose outputing a whole file at least it is more consistent. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
@@ -20,13 +20,13 @@ then
|
||||
PREFIX="moby"
|
||||
KERNEL="$PREFIX-bzImage"
|
||||
INITRD="$PREFIX-initrd.img"
|
||||
CMDLINE=$(bin/moby --cmdline ${PREFIX}.yaml)
|
||||
CMDLINE="$PREFIX-cmdline"
|
||||
elif [ $# -eq 1 ]
|
||||
then
|
||||
PREFIX="$1"
|
||||
KERNEL="$PREFIX-bzImage"
|
||||
INITRD="$PREFIX-initrd.img"
|
||||
CMDLINE=$(bin/moby --cmdline ${PREFIX}.yaml)
|
||||
CMDLINE="$PREFIX-cmdline"
|
||||
else
|
||||
KERNEL=$1
|
||||
INITRD=$2
|
||||
|
Reference in New Issue
Block a user