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
parent
commit
ed33382d4f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      rpi3-convert-stage-5.sh

2
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

Loading…
Cancel
Save