Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| modify_the_system_while_it_s_running [2021/04/09 12:29] – [Other system files] edited the location of the exemple, as python3.9 is used nowadays. fishou | modify_the_system_while_it_s_running [2023/04/09 14:10] (current) – [Creating a Batocera filesystem overlay] maximumentropy | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | By default, batocera.linux is like a firmware. It's a file called ''/ | + | |
| - | You cannot modify it directly, and for most use cases, you shouldn' | + | |
| - | That said, in case you need to modify the system, there are tips to do it. | + | Batocera is like a firmware. It's a huge filesystem image at ''/ |
| - | ===== /boot/ directory ===== | + | {{batocera_drive_layout.png? |
| - | For any modification in ''/ | + | |
| - | mount -o remount,rw /boot | + | Under normal circumstances, this file cannot be written to, and any changes made to the filesystem mounted in RAM will be lost upon shutdown. That said, you can utilize overlays to " |
| - | | + | |
| - | ===== Other system files ===== | + | ===== Creating a Batocera filesystem overlay |
| - | For any other modifications, | + | |
| - | | + | For modifications to the regular Batocera filesystem, you can directly edit the files in their directory using [[: |
| - | + | ||
| - | This script creates a file at ''/ | + | |
| - | <WRAP center round important 50%>**WARNING**: This overlay file is automatically removed at the next upgrade.</ | + | <WRAP center round tip> |
| + | Refer to [[:notable_files|the notable files/ | ||
| + | </ | ||
| - | If you don't use the '' | + | By default, Batocera overlay files are limited to 100 MB. If your modifications are over 100 MB, you can specify |
| - | If you want to remove all your customizations, | + | <WRAP center round important> |
| + | This overlay file is automatically removed at the next upgrade. | ||
| + | </ | ||
| - | By default, Batocera overlay files are limited to 50MB. If your modifications are over 50MB, you can specify | + | <WRAP center round tip> |
| + | To view the contents | ||
| - | **Note** : it cannot | + | < |
| + | mount / | ||
| + | find /mnt | ||
| + | umount /mnt | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== Removing the overlay ===== | ||
| + | |||
| + | Even if you don't use the '' | ||
| ===== Cases when you don't need to modify the system ===== | ===== Cases when you don't need to modify the system ===== | ||
| + | |||
| Some best practices here: | Some best practices here: | ||
| - | * You generally | + | * You don't need to edit ''/ |
| - | * You should not modify ''/ | + | * You should not modify ''/ |
| + | |||
| + | ===== I want to modify something in the boot folder though ===== | ||
| + | |||
| + | The boot partition is mounted with read-only permissions at ''/ | ||
modify_the_system_while_it_s_running.1617971361.txt.gz · Last modified: by fishou