diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-06-08 14:19:11 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-06-08 14:58:24 +0900 |
| commit | f869ff95a12756de97827b4afd93763f9661f144 (patch) | |
| tree | 6f5445ae623f44ceb99c8f7ddb5bb4cd1fb04aa0 /hst/fsephemeral.go | |
| parent | 725f2e0ef3eaba1ad46b597604a684125ab93911 (diff) | |
all: apply modernisers
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/fsephemeral.go')
| -rw-r--r-- | hst/fsephemeral.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/hst/fsephemeral.go b/hst/fsephemeral.go index 9da79003..d1c01bca 100644 --- a/hst/fsephemeral.go +++ b/hst/fsephemeral.go @@ -43,18 +43,13 @@ func (e *FSEphemeral) Apply(z *ApplyState) { return } - size := e.Size - if size < 0 { - size = 0 - } - perm := e.Perm if perm == 0 { perm = fsEphemeralDefaultPerm } if e.Write { - z.Tmpfs(e.Target, size, perm) + z.Tmpfs(e.Target, max(e.Size, 0), perm) } else { z.Readonly(e.Target, perm) } |
