Skip to content

Commit

Permalink
Image: touch /boot/config.txt if not present (workaround for opicm4)
Browse files Browse the repository at this point in the history
  • Loading branch information
miklschmidt committed Jun 13, 2024
1 parent c64b5b6 commit f660c81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/piconfig/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ echo_green "Copying temporary file ..."
unpack /filesystem/tmp /tmp root

echo_green "Merge RatOS configuration with default config.txt ..."

if [[ ! -f "${PICONFIG_CONFIG_TXT_FILE}" ]]; then
echo_red "Default config.txt not found. Putting in an empty one ..."
touch "${PICONFIG_CONFIG_TXT_FILE}"
fi

# Step 2: Copy default config to "/tmp"
cp "${PICONFIG_CONFIG_TXT_FILE}" /tmp

Expand Down

0 comments on commit f660c81

Please sign in to comment.