---
name: "cdist-type__install_mount"
section: "7"
platform: "linux"
package: "cdist"
version: "7.0.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cdist-type__install_mount"
---

# cdist-type\_\_install\_mount(7)

mount filesystems in the installer

## NAME

cdist-type\_\_install\_mount - mount filesystems in the installer

## DESCRIPTION

Mounts filesystems in the installer. Collects data to generate /etc/fstab.

## REQUIRED PARAMETERS

- **device**

  the device to mount

## OPTIONAL PARAMETERS

- **dir**

  where to mount device. Defaults to object\_id.

- **options**

  mount options passed to [mount(8)](/mount/8.md) and used in /etc/fstab

- **type**

  filesystem type passed to [mount(8)](/mount/8.md) and used in /etc/fstab. If type is swap, 'dir' is ignored. Defaults to the filesystem used in \_\_install\_mkfs for the same 'device'.

- **prefix**

  the prefix to prepend to 'dir' when mounting in the installer. Defaults to /target.

## EXAMPLES

```
__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 ALSO

[**cdist-type\_\_install\_mkfs**(7)](/cdist-type__install_mkfs/7.md), **cdist-type\_\_install\_mount\_apply** (7)

## AUTHORS

Steven Armstrong \<*steven-cdist--@--armstrong.cc*\>

## 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
