Best way to add mounts to fstab at build time? #82
|
I have a few external hard drives I use across my machines and like to have them mounted to a static and nice path (e.g. /media/TOSHIBA) with extra mount options. On my non-atomic machines I just add them to /etc/fstab and I know I can do that on BlueBuild atomic builds at runtime, but how can I do it directly at build time? I've tried using a Is there a good way to do that? Should I be using a different method like systemd mount units? (Those are very difficult though so I'd rather avoid them) Or do I just have to make the changes at runtime anyway? Thanks. |
Replies: 1 comment 1 reply
|
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:
What you can do (as a hacky thing to automate it):
|
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:
What you can do (as a hacky thing to automate it):