From 241cc230c876d26bc7089b83a381ae376ce4e53f Mon Sep 17 00:00:00 2001 From: Daniel Hiepler Date: Sat, 2 Sep 2023 18:29:24 +0200 Subject: [PATCH] remove newlines from cmdline.txt --- bootstrap-plugins/cmdline | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bootstrap-plugins/cmdline b/bootstrap-plugins/cmdline index b66b9d1..66030b5 100644 --- a/bootstrap-plugins/cmdline +++ b/bootstrap-plugins/cmdline @@ -29,6 +29,10 @@ function rpi_cmdline_run() { log "removing ${c} ..." rpi_remove_pattern_from_file "${c}" "${RPI_BOOT}/cmdline.txt" || error "removing ${c}" done + + # remove newlines from cmdline.txt + tr '\n' ' ' < "${RPI_BOOT}/cmdline.txt" > "${RPI_BOOT}/cmdline.new" + mv "${RPI_BOOT}/cmdline.new" "${RPI_BOOT}/cmdline.txt" } function rpi_cmdline_description() {