Skip to content

Commit

Permalink
partition_setup.sh: Fix cmdline.txt handling
Browse files Browse the repository at this point in the history
Add sdhci.debug_quirks2=4 to cmdline.txt when resizing

Only remove 'quiet' from cmdline if splash screen is off
  • Loading branch information
XECDesign authored and fuji246 committed Sep 13, 2019
1 parent d1903a7 commit eefe518
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion export-noobs/00-release/files/partition_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit eefe518

Please sign in to comment.