Skip to content

Question About Custom Persistent/Mutable Root Directories and Resources for Kairos Cloud-Init (Yip) #3236

Answered by Itxaka
AlexanderTheGrey asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @AlexanderTheGrey

you can get this by gollowing the https://kairos.io/docs/advanced/customizing/#customizing-the-file-system-hierarchy-using-cloud-config examples for creating the dir under the rootfs and then adding your extra bind with persistent with the https://kairos.io/docs/advanced/customizing/#customizing-the-file-system-hierarchy-using-custom-mounts part

Basically something like this in you cloud config would work:


#cloud-config

install:
  bind_mounts: # This adds extra bind paths that will be bind mounted to the COS_PERSISTENT partition
    - /data

stages:
  after-install-chroot: # Creates the data dir after install inside the final system chroot
    - &createdatadir
    …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AlexanderTheGrey
Comment options

Answer selected by AlexanderTheGrey
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