need to make my boot config partition unable to be edited by the system.
jtkblue last edited by jtkblue
does anybody here have a clue on how to make that one simple little annoying little file be uneditable by my system?
There's this script I want to test out, but it keeps adding a "#" to my dtoverlay=vc4-fkms-v3d. This makes it unable to deploy the emulationstation thingy.
my boot config: https://pastebin.com/G6zP9sXy
(if i can also get somebody to help me make a script which removes the # at boot, it'll work exactly the way I want to.) linux newbie over here.
been struggling with this back and forth all day.
@jtkblue Making the
/bootpartition inaccessible will break system upgrades for the Linux kernel, it's not a proper solution to your issue.
config.txtis read by the bootloader, before the system starts properly, so any script that will change it on boot will run after the bootloader has read the file, making the changes to have no effect.
jtkblue last edited by
@mitu i'm good now, I fixed the script on my side, I'm making a post about my finished project right now!
Thanks for your help today!
Clyde last edited by Clyde
Just for the record, this command removes write permissions from the file:
sudo chmod -w /boot/config.txt
Restore them only for the owner (the default) with
But note that any script that runs with admin rights can change the file nonetheless.
edit: Ah, I noticed the logical flaw in this. The file is owned by the admin user
rootand it is already only editable by the owner. So removing
wwouldn't make any difference in this case. 😇