Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4906

Raspberry Pi OS • Re: /boot/config.txt symlink changed to file

$
0
0
The Sleep Pixies reminded me that the SD Card may be mounted on a Windows or Mac computer and editors for those may be the ones which don't fully respect symlinks.
They only see the boot partition which is what is mounted to /boot/firmware. There are no symlinks in there as FAT doesn’t support them.
But why make '/boot/config.txt' a dummy file rather than make '/boot/config.txt' the live file and delete '/boot/firmware/config.txt' ?

The Pi software has had to be updated to check if '/boot/firmware/config.txt' or '/boot/config.txt' should be used so why not change Pi software to check the symlink; if '/boot/config.txt' is a symlink, follow that, otherwise use it ?

If there's any worry about having both, the Pi can auto-delete or rename '/boot/firmware/config.txt' on boot if '/boot/config.txt' is not a symlink.

Or if '/boot/config.txt' isn't a symlink, copy that over '/boot/firmware/config.txt' and make '/boot/config.txt' a symlink again ?

It seems there are a number of options which would have been transparent to users but an option was chosen which isn't.
The firmware only knows how to read the boot partition. It can’t peer into the root FS to look at /boot

Statistics: Posted by trejan — Wed Jan 31, 2024 9:30 am



Viewing all articles
Browse latest Browse all 4906

Trending Articles