Skip to content

--command still runs BEFORE the storage mounts (EFS/FSx/volumes): #166 fixed --user-data but not --command #668

Closed

Description

@scttfrdmn

Summary

--command is started from linuxBootstrapBody (pkg/launcher/bootstrap.go:178, the "▶️ Executing --command" block around :609). The storage script (EFS, FSx, attached volumes) is appended after that body (bootstrap.go:201). #166 fixed the ordering for --user-data/CustomUserData, but --command still starts first, backgrounded, so the workload runs before its mounts exist.

Evidence (0.116.0, --efs-id, t4g.small us-east-1a)

/var/log/spawn-command.log for a command that does df -h /efs; dd ... of=/efs/probe.bin:

df: /efs: No such file or directory
dd: failed to open '/efs/probe.bin': No such file or directory
❌ --command FAILED (exit 2)

/efs was created afterwards, by the storage block. This holds even when the mount succeeds: the command has already failed by then.

Fix

Run the storage script before the --command launch block. Alternatively, have the command wrapper wait on a sentinel written at the end of the storage block, e.g. /run/spawn/storage-ready (the same readiness-barrier idea as #664 for MPI/EFA). A mount failure should be visible in spawn-command.log, not just cloud-init-output.

Activity

  1. added
    bug
    on Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions