diff options
| author | Serge Schneider <serge@raspberrypi.com> | 2024-01-22 14:48:55 +0000 |
|---|---|---|
| committer | Serge Schneider <serge@raspberrypi.com> | 2024-01-22 14:48:55 +0000 |
| commit | a12534473182eb234a1751da7348f784b9271f42 (patch) | |
| tree | 6eb8a08590f9ad5abe7f68397f50b356524c1f61 | |
| parent | e682f62aed71be53fd8d49ac94c4d11f01996efe (diff) | |
Remove cmdline.txt and config.txt symlinks
| -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 |
