unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Wiping /tmp?
@ 2019-07-19 21:23 Christopher Lemmer Webber
  2019-07-20  9:20 ` Pierre Neidhardt
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Christopher Lemmer Webber @ 2019-07-19 21:23 UTC (permalink / raw)
  To: help-guix@gnu.org

I'm sure there's something obvious, but what does one put in one's guix
config so that /tmp is wiped by default on reboot?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Wiping /tmp?
  2019-07-19 21:23 Wiping /tmp? Christopher Lemmer Webber
@ 2019-07-20  9:20 ` Pierre Neidhardt
  2019-07-20 14:48 ` N
  2019-07-20 20:41 ` Ricardo Wurmus
  2 siblings, 0 replies; 5+ messages in thread
From: Pierre Neidhardt @ 2019-07-20  9:20 UTC (permalink / raw)
  To: Christopher Lemmer Webber, help-guix@gnu.org

[-- Attachment #1: Type: text/plain, Size: 550 bytes --]

Maybe not exactly what you want, but you can mount /tmp as tmpfs in memory:

--8<---------------cut here---------------start------------->8---
(file-systems (cons* ...
                         (file-system
                           (mount-point "/tmp")
                           (device "none")
                           (type "tmpfs")
                           (check? #f))
                         %base-file-systems))
--8<---------------cut here---------------end--------------->8---

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Wiping /tmp?
  2019-07-19 21:23 Wiping /tmp? Christopher Lemmer Webber
  2019-07-20  9:20 ` Pierre Neidhardt
@ 2019-07-20 14:48 ` N
  2019-07-20 20:41 ` Ricardo Wurmus
  2 siblings, 0 replies; 5+ messages in thread
From: N @ 2019-07-20 14:48 UTC (permalink / raw)
  To: Christopher Lemmer Webber; +Cc: help-guix@gnu.org

Christopher Lemmer Webber transcribed 124 bytes:
> I'm sure there's something obvious, but what does one put in one's guix
> config so that /tmp is wiped by default on reboot?

There used to be a bug where it doesn't get wiped. Or was the workaround/fix
for this to simply not do it anymore?

You could try and see how much of /etc/rc.d/cleartmp of NetBSD is applicable
for you in a small shepherd service:

http://cvsweb.netbsd.org/bsdweb.cgi/src/etc/rc.d/cleartmp?rev=1.13&content-type=text/x-cvsweb-markup&only_with_tag=MAIN

By which I mean, see how early or how late you could run an equivalent
chain of commands. This is what I would try when I'd setup GuixSD
again somewhere.

Hope it helps to some extent.
N.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Wiping /tmp?
  2019-07-19 21:23 Wiping /tmp? Christopher Lemmer Webber
  2019-07-20  9:20 ` Pierre Neidhardt
  2019-07-20 14:48 ` N
@ 2019-07-20 20:41 ` Ricardo Wurmus
  2019-07-20 21:47   ` Christopher Lemmer Webber
  2 siblings, 1 reply; 5+ messages in thread
From: Ricardo Wurmus @ 2019-07-20 20:41 UTC (permalink / raw)
  To: cwebber; +Cc: help-guix


Christopher Lemmer Webber <cwebber@dustycloud.org> writes:

> I'm sure there's something obvious, but what does one put in one's guix
> config so that /tmp is wiped by default on reboot?

This is done by the “cleanup-service-type”.

-- 
Ricardo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Wiping /tmp?
  2019-07-20 20:41 ` Ricardo Wurmus
@ 2019-07-20 21:47   ` Christopher Lemmer Webber
  0 siblings, 0 replies; 5+ messages in thread
From: Christopher Lemmer Webber @ 2019-07-20 21:47 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

Ricardo Wurmus writes:

> Christopher Lemmer Webber <cwebber@dustycloud.org> writes:
>
>> I'm sure there's something obvious, but what does one put in one's guix
>> config so that /tmp is wiped by default on reboot?
>
> This is done by the “cleanup-service-type”.

Huhm!  It looks like this is already done by default in
operating-system-default-essential-services.  I guess I don't have to do
anything.

I wonder why I didn't see it wipe things before.  I guess I'll try and
see if it wipes things next time.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-07-20 21:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-19 21:23 Wiping /tmp? Christopher Lemmer Webber
2019-07-20  9:20 ` Pierre Neidhardt
2019-07-20 14:48 ` N
2019-07-20 20:41 ` Ricardo Wurmus
2019-07-20 21:47   ` Christopher Lemmer Webber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).