GNU bug report logs - #73494
[PATCH 0/2] tmpfs /run.

Previous Next

Package: guix-patches;

Reported by: Hilton Chain <hako <at> ultrarare.space>

Date: Thu, 26 Sep 2024 07:03:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Vagrant Cascadian <vagrant <at> debian.org>, Hilton Chain <hako <at> ultrarare.space>, 73494 <at> debbugs.gnu.org, Gabriel Wicki <gabriel <at> erlikon.ch>, Z572 <zhengjunjie <at> iscas.ac.cn>
Subject: [bug#73494] [PATCH v6 2/3] services: cleanup: Bind mount /var/run to /run.
Date: Thu, 08 May 2025 14:58:14 +0900
Hi Ludovic,

Ludovic Courtès <ludo <at> gnu.org> writes:

[...]

>> @@ -662,17 +667,17 @@ (define (cleanup-gexp _)
>>                        "/lib/locale"))
>>             (setlocale LC_CTYPE "en_US.utf8")
>>             (delete-file-recursively "/tmp")
>> -           (delete-file-recursively "/var/run")
>> -           (delete-file-recursively "/run")
>>  
>>             ;; Note: The second argument to 'mkdir' is and'ed with umask,
>>             ;; hence the 'chmod' calls.
>>             (mkdir "/tmp" #o1777)
>>             (chmod "/tmp" #o1777)
>> -           (mkdir "/var/run" #o755)
>> -           (chmod "/var/run" #o755)
>> -           (mkdir "/run" #o755)
>> -           (chmod "/var/run" #o755))))))
>> +
>> +           ;; XXX: It'd be cleaner if we could simply register
>> +           ;; %runtime-variable-data/bind-mount in %base-file-systems, that
>> +           ;; fails with: 'statfs-raw: No such file or directory' when
>> +           ;; checking for "/run".
>> +           (mount-file-system %runtime-variable-data/bind-mount #:root "/"))))))
>
> Could you try to get a backtrace or something?
>
> ‘statfs-raw’ is the C primitive used by the statically-linked Guile in
> the initrd, so before shepherd is spawned.  Normally, upon error, you
> get a Guile prompt where you can type “,bt” for a backtrace.

I think perhaps it could be because the file-system 'dependencies' field
is not honored in the early boot? /run mount be mounted as tmpfs before
we can bind mount /var/run to it.

I'm not sure though, so I'll have to try what you suggest.

-- 
Thanks,
Maxim




This bug report was last modified 34 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.