From 2e20ad8feff67a61ff3513b3335d5d0ec8fa83d6 Mon Sep 17 00:00:00 2001 From: Dig Gashinsky Date: Wed, 12 Aug 2026 10:52:54 -0400 Subject: images: wsl2: Do not point the dummy bootloader at /dev/null. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Nguyễn Gia Phong --- gnu/system/images/wsl2.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/system') 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." (bootloader (name 'dummy-bootloader) (package dummy-package) - (configuration-file "/dev/null") + (configuration-file "/var/lib/wsl-bootloader.cfg") (configuration-file-generator (lambda (. _rest) (plain-file "dummy-bootloader" ""))) -- cgit v1.2.3