Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default console replacement script fix #2880

Closed
gyohng opened this issue Jun 7, 2021 · 0 comments · Fixed by #3819
Closed

Default console replacement script fix #2880

gyohng opened this issue Jun 7, 2021 · 0 comments · Fixed by #3819
Labels
Help needed We need your involvement

Comments

@gyohng
Copy link

gyohng commented Jun 7, 2021

debootstrap.sh replaces extraargs or another line in the environment where it finds 'console=' before the line that starts with console=

Suggested the following fix:

--- a/lib/debootstrap.sh
+++ b/lib/debootstrap.sh
@@ -626,7 +626,7 @@ prepare_partitions()
 	# if we have a headless device, set console to DEFAULT_CONSOLE
 	if [[ -n $DEFAULT_CONSOLE && -f $SDCARD/boot/armbianEnv.txt ]]; then
 		if grep -lq "^console=" $SDCARD/boot/armbianEnv.txt; then
-			sed -i "s/console=.*/console=$DEFAULT_CONSOLE/" $SDCARD/boot/armbianEnv.txt
+			sed -i "s/^console=.*/console=$DEFAULT_CONSOLE/" $SDCARD/boot/armbianEnv.txt
 		else
 			echo "console=$DEFAULT_CONSOLE" >> $SDCARD/boot/armbianEnv.txt
 	        fi
@igorpecovnik igorpecovnik added Help needed We need your involvement and removed good first issue labels May 2, 2022
peter279k added a commit to peter279k/build that referenced this issue May 26, 2022
@peter279k peter279k mentioned this issue May 26, 2022
6 tasks
igorpecovnik pushed a commit that referenced this issue May 26, 2022
zamentur pushed a commit to YunoHost/arm-images that referenced this issue May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help needed We need your involvement
Development

Successfully merging a pull request may close this issue.

3 participants