Skip to content

How to setup ephemeral disks? #1618

Answered by arnaldo2792
arnaldo2792 asked this question in Q&A
Discussion options

You must be logged in to vote

Starting with Bottlerocket v1.1.2, it will be possible to use bootstrap containers to partition, format and mount the devices on the host. Users will be able to can create an "always-executed" bootstrap container that partitions, formats and mounts the devices, using the tools they are familiar with. Here is an example on how to do so.

Given a bootstrap container called setup-ephemeral-disks with the following configuration:

[settings.bootstrap-containers.setup-ephemeral-disks]
source = "<SOURCE>"
mode = "always"
essential = false

Where <SOURCE> is the URL of an image with the following definition:

FROM alpine
RUN apk add e2fsprogs bash parted
ADD setup-ephemeral-disks ./
RUN chmod +x ./s…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by arnaldo2792
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants