CDIST-TYPE__INSTALL_MOUNT(7)

🌸 cdist-type__install_mount β€” mount filesystems in the installer 🌸

okay bestie, this is a cdist type page (it's cdist-type__install_mount, from the cdist manual, section 7) and it's literally just here to mount your filesystems inside the installer and keep receipts so /etc/fstab can get written. let's go πŸ’…


✨ DESCRIPTION ✨

So basically: this type mounts filesystems in the installer. That's the whole main character moment. 🫢

And the way it does it? It collects data as it goes, so that /etc/fstab can be generated at the end. no cap, every mount you do here is feeding the fstab pipeline. πŸŽ€


πŸ’– REQUIRED PARAMETERS πŸ’–

  • device β€” the device you wanna mount. you gotta give this one, it's not optional, periodt.

πŸ¦‹ OPTIONAL PARAMETERS πŸ¦‹

  • dir β€” where to mount device. if you don't say anything, it just defaults to object_id. iconic behaviour honestly.
  • options β€” the mount options. these get passed straight to mount(8) and they get used in /etc/fstab. two jobs, one flag, we love a multitasker ✨
  • type β€” the filesystem type. also gets passed to mount(8) and also used in /etc/fstab. and here's the lil plot twist: if type is swap, dir is ignored. bye dir πŸ‘‹ Also, if you don't specify it, it defaults to the filesystem used in __install_mkfs for the same device. so it remembers what you did. iykyk. 🧚
  • prefix β€” the prefix to prepend to dir when mounting in the installer. defaults to /target. it's giving "everything lives under /target during install" energy. 🌈

πŸ”₯ EXAMPLES πŸ”₯

look at these, they're so clean:

__install_mount slash --dir / --device /dev/sda5 --options noatime
require="__install_mount/slash" __install_mount /boot --device /dev/sda1
__install_mount swap --device /dev/sda2 --type swap
require="__install_mount/slash" __install_mount /tmp --device tmpfs --type tmpfs

see how require="__install_mount/slash" is chaining them up? slay. that's dependency ordering and it's lowkey the whole vibe. πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘


🌟 AUTHORS 🌟

Steven Armstrong <steven-cdist--@--armstrong.cc> β€” the icon who wrote this 🫢


πŸŽ€ COPYING πŸŽ€

Copyright (C) 2011 Steven Armstrong. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.


ungleich GmbH 2021


okay so real talk bestie β€” if you're setting type to swap, don't stress about dir, it gets ignored. that's not me being cute, that's literally the documented behaviour. πŸ“

and that's the page!! version 7.0.0, dated Jul 31, 2022 β€” go mount something, you got this, bye bestie πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from