cdist-type__chroot_mount(7)

cdist-type__chroot_mount7

Mount a chroot

Overview

Mount and prepare a chroot for running commands within it.

Required parameters

None

Optional parameters

manage-resolv-conf

manage /etc/resolv.conf inside the chroot. Use the value of this parameter as the suffix to save a copy of the current /etc/resolv.conf to /etc/resolv.conf.$suffix. This is used by the __chroot_umount type to restore the initial file content when unmounting the chroot.

Boolean parameters

None.

Examples

__chroot_mount /path/to/chroot
__chroot_mount /path/to/chroot \
  --manage-resolv-conf "some-known-string"

Copying

Copyright (C) 2012-2017 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.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Authors

Steven Armstrong <[email protected]>

From cdist 7.0.0-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.