Skip to content
Discussion options

You must be logged in to vote

I generally feel like this is something you're not really supposed to do unfortunately. The custom image you are building is like your own operating system, and operating systems aren't generally meant to make assumptions on what external disks exist and should be mounted at what places.

What I would do:

  • Just copy the set of tested known-good lines you want from /etc/fstab on one machine to all other machines

What you can do (as a hacky thing to automate it):

  • Bundle a custom script or a just recipe with your image that adds correct lines into /etc/fstab when called by a user
  • Create a systemd mount unit and see if that solves the problem

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sj-ferdinand
Comment options

Answer selected by sj-ferdinand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants