Browse Source
Merge pull request #57 from tuupola/double-commandline-txt
Avoid duplicating cmdline.txt contents
1.1.x
Adam Podogrocki
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
rpi3-convert-stage-5.sh
|
|
@ -103,7 +103,7 @@ install_files() { |
|
|
|
# case it is missing, add it back to cmdline.txt |
|
|
|
if ! grep -q "init=/usr/lib/raspi-config/init_resize.sh" ${output_dir}/cmdline.txt; then |
|
|
|
cmdline=$(cat ${output_dir}/cmdline.txt) |
|
|
|
sh -c -e "echo '${cmdline} init=/usr/lib/raspi-config/init_resize.sh' >> ${output_dir}/cmdline.txt"; |
|
|
|
sh -c -e "echo '${cmdline} init=/usr/lib/raspi-config/init_resize.sh' > ${output_dir}/cmdline.txt"; |
|
|
|
fi |
|
|
|
|
|
|
|
# Update Linux kernel command arguments with our custom configuration |
|
|
|