From ba8909f05dca5347252e47afc2e23ca8296d7437 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Fri, 7 Jun 2019 16:03:27 +0100 Subject: [PATCH] partition_setup.sh: Fix cmdline.txt handling Add sdhci.debug_quirks2=4 to cmdline.txt when resizing Only remove 'quiet' from cmdline if splash screen is off --- export-noobs/00-release/files/partition_setup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/export-noobs/00-release/files/partition_setup.sh b/export-noobs/00-release/files/partition_setup.sh index 0f45f20..851290e 100644 --- a/export-noobs/00-release/files/partition_setup.sh +++ b/export-noobs/00-release/files/partition_setup.sh @@ -33,7 +33,12 @@ if [ -z "$restore" ]; then fi if ! grep -q resize /proc/cmdline; then - sed -i 's| init=/usr/lib/raspi-config/init_resize.sh||;s| quiet||2g' /tmp/1/cmdline.txt + if ! grep -q splash /tmp/1/cmdline.txt; then + sed -i "s| quiet||g" /tmp/1/cmdline.txt + fi + sed -i 's| init=/usr/lib/raspi-config/init_resize.sh||' /tmp/1/cmdline.txt + else + sed -i '1 s|.*|& sdhci.debug_quirks2=4|' /tmp/1/cmdline.txt fi fi