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
pull/295/head
Serge Schneider 2019-06-07 16:03:27 +01:00
parent 33dfe5404c
commit ba8909f05d
1 changed files with 6 additions and 1 deletions

View File

@ -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