cdist-type__chroot_mount - Man Page

mount a chroot

Description

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"

Authors

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

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.

Referenced By

cdist-type__chroot_umount(7).

Apr 20, 2021 6.9.6 cdist