summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-05-09 15:31:52 +0100
committerLinus Groh <mail@linusgroh.de>2021-05-09 15:31:52 +0100
commit5eb062d8d3f5f74102662cb7c3f6016afa6d6396 (patch)
treeae824ecd841ef1c0fd5799cbae5483744fcb3ce1 /Documentation
parente4db18e6443d84e44c6f2713780cce1c3739f463 (diff)
downloadserenity-5eb062d8d3f5f74102662cb7c3f6016afa6d6396.zip
Documentation: Update sync-local.sh keyboard layout example
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/BuildInstructions.md13
1 files changed, 5 insertions, 8 deletions
diff --git a/Documentation/BuildInstructions.md b/Documentation/BuildInstructions.md
index 659cc618f2..a04ad94585 100644
--- a/Documentation/BuildInstructions.md
+++ b/Documentation/BuildInstructions.md
@@ -227,20 +227,17 @@ To add a package from the ports collection to Serenity, for example curl, go int
## Customize disk image
-To add, modify or remove files of the disk image's file system, e.g. to change the default keyboard layout, you can create a file with the exact name `sync-local.sh` in the project root (the same directory as `.clang-format`), with content like this:
+To add, modify or remove files of the disk image's file system, e.g. to change the default keyboard layout, you can create a shell script with the name `sync-local.sh` in the project root, with content like this:
```sh
#!/bin/sh
set -e
-cat << 'EOF' >> mnt/etc/SystemServer.ini
-
-[keymap]
-Executable=/bin/keymap
-Arguments=de
-User=anon
+cat << 'EOF' > mnt/etc/Keyboard.ini
+[Mapping]
+Keymap=de
EOF
```
-This will configure your keymap to German (`de`) instead of US English. See [`Base/res/keymaps/`](../Base/res/keymaps/) for a full list.
+This will configure your keymap to German (`de`) instead of US English. See [`Base/res/keymaps/`](../Base/res/keymaps/) for a full list. Note that the `keymap` program itself will also modify the `/etc/Keyboard.ini` config file, but this way the change will persist across image rebuilds.