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 mountdevice. if you don't say anything, it just defaults toobject_id. iconic behaviour honestly.optionsβ the mount options. these get passed straight tomount(8)and they get used in/etc/fstab. two jobs, one flag, we love a multitasker β¨typeβ the filesystem type. also gets passed tomount(8)and also used in/etc/fstab. and here's the lil plot twist: iftypeisswap,diris ignored. bye dir π Also, if you don't specify it, it defaults to the filesystem used in__install_mkfsfor the samedevice. so it remembers what you did. iykyk. π§prefixβ the prefix to prepend todirwhen 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 π
cdist-type__install_mkfs(7)cdist-type__install_mount_apply (7)
π 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.
π COPYRIGHT π
ungleich GmbH 2021
okay so real talk bestie β if you're settingtypetoswap, don't stress aboutdir, 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
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms