Skip to content

Commit

Permalink
Remove cmdline.txt and config.txt symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
XECDesign authored and kayhannay committed Feb 12, 2024
1 parent ef904aa commit e0fa8dc
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions stage1/00-boot-files/00-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e0fa8dc

Please sign in to comment.