diff options
| author | Dig Gashinsky <dig@gashinsky.com> | 2026-08-12 10:52:54 -0400 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-08-24 10:12:54 +0900 |
| commit | 2e20ad8feff67a61ff3513b3335d5d0ec8fa83d6 (patch) | |
| tree | e0d9caa37f3ee8346023fa9760338948a1b63c0a /gnu/system | |
| parent | 095caff5858a3fc46441cdd7b8ce48554a7536de (diff) | |
images: wsl2: Do not point the dummy bootloader at /dev/null.
Installing a bootloader configuration replaces the file
it is written to. On WSL2 that file is /dev/null,
so "guix system reconfigure" replaces the character device
with a read-only regular file: afterwards every write to /dev/null
fails with EACCES for non-root users, and programs that create it
when missing turn it into a plain file that accumulates
whatever was meant to be discarded.
* gnu/system/images/wsl2.scm (dummy-bootloader)[configuration-file]:
Use "/var/lib/wsl-bootloader.cfg" instead of "/dev/null".
Merges: https://codeberg.org/guix/guix/pulls/10514
Reviewed-by: gemmaro <gemmaro.dev@gmail.com>
Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
Diffstat (limited to 'gnu/system')
| -rw-r--r-- | gnu/system/images/wsl2.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/system/images/wsl2.scm b/gnu/system/images/wsl2.scm index b772d7b635c..ce58cd55c60 100644 --- a/gnu/system/images/wsl2.scm +++ b/gnu/system/images/wsl2.scm | |||
| @@ -131,7 +131,7 @@ USER." | |||
| 131 | (bootloader | 131 | (bootloader |
| 132 | (name 'dummy-bootloader) | 132 | (name 'dummy-bootloader) |
| 133 | (package dummy-package) | 133 | (package dummy-package) |
| 134 | (configuration-file "/dev/null") | 134 | (configuration-file "/var/lib/wsl-bootloader.cfg") |
| 135 | (configuration-file-generator | 135 | (configuration-file-generator |
| 136 | (lambda (. _rest) | 136 | (lambda (. _rest) |
| 137 | (plain-file "dummy-bootloader" ""))) | 137 | (plain-file "dummy-bootloader" ""))) |
