Skip to content
Snippets Groups Projects
Commit f9de4a97 authored by Anton Bambura's avatar Anton Bambura
Browse files

Parse cmdline.txt

Let users do something like:

$ echo "console=tty1 PMOS_NOSPLASH" | sudo tee /etc/boot/cmdline.txt
$ sudo mkinitfs

To apply custom cmdline
parent 02c7c603
No related branches found
No related tags found
No related merge requests found
......@@ -520,7 +520,13 @@ get_size_of_files() {
}
get_cmdline() {
echo "$deviceinfo_kernel_cmdline"
ret="$deviceinfo_kernel_cmdline"
if [ -f "/etc/boot/cmdline.txt" ]; then
ret="$ret $(xargs < /etc/boot/cmdline.txt)"
fi
echo "$ret"
}
# Check that the the given list of files can be copied to the destination, $output_dir,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment