diff options
| author | Serge Schneider <serge@raspberrypi.com> | 2024-01-22 14:49:34 +0000 |
|---|---|---|
| committer | Serge Schneider <serge@raspberrypi.com> | 2024-01-22 14:49:34 +0000 |
| commit | 62eeab3a86c2f0ae533855244ebf196e8cb8fd4e (patch) | |
| tree | 271fac64acfb8e975275abb0c9b18838dbcd6209 /stage1 | |
| parent | 94bb86632d2987c910d488e4432ef33aabee52f1 (diff) | |
| parent | a12534473182eb234a1751da7348f784b9271f42 (diff) | |
Merge branch 'master' into arm64
Diffstat (limited to 'stage1')
| -rwxr-xr-x | stage1/00-boot-files/00-run.sh | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/stage1/00-boot-files/00-run.sh b/stage1/00-boot-files/00-run.sh index ddb0f5b..8f1f823 100755 --- a/stage1/00-boot-files/00-run.sh +++ b/stage1/00-boot-files/00-run.sh @@ -7,11 +7,8 @@ if ! [ -L "${ROOTFS_DIR}/boot/overlays" ]; then fi install -m 644 files/cmdline.txt "${ROOTFS_DIR}/boot/firmware/" -if ! [ -L "${ROOTFS_DIR}/boot/cmdline.txt" ]; then - ln -s firmware/cmdline.txt "${ROOTFS_DIR}/boot/cmdline.txt" -fi - install -m 644 files/config.txt "${ROOTFS_DIR}/boot/firmware/" -if ! [ -L "${ROOTFS_DIR}/boot/config.txt" ]; then - ln -s firmware/config.txt "${ROOTFS_DIR}/boot/config.txt" -fi + +for file in cmdline.txt config.txt; do + printf "DO NOT EDIT THIS FILE\n\nThe file you are looking for has moved to %s\n" "/boot/firmware/${file}" > "${ROOTFS_DIR}/boot/${file}" +done |
