libguestfs-tools.conf5
Configuration file for guestfish, guestmount, virt-rescue
Usage
/etc/libguestfs-tools.conf$XDG_CONFIG_DIRS/libguestfs/libguestfs-tools.conf$HOME/.libguestfs-tools.rc$XDG_CONFIG_HOME/libguestfs/libguestfs-tools.conf
Overview
libguestfs-tools.conf (or $HOME/.libguestfs-tools.rc) changes the defaults for the following programs only:
•
|
|
|---|---|
•
|
|
•
|
There is currently only one setting which is controlled by this file. Adding (or uncommenting):
read_only = true;
changes these programs so they act as if the --ro flag was given on the command line. You can use this to make the programs safe against accidental modification of a live guest (users would have to explicitly add the --rw flag to modify guests). This is not the default because it is not backwards compatible. See also "OPENING DISKS FOR READ AND WRITE" in guestfish(1).
Note that the semicolon is required.
This file is parsed by the libconfig library. For more information about the format, see: http://www.hyperrealm.com/libconfig/libconfig_manual.html
File location
The order of the configuration files being read is, by importance:
- •
-
$XDG_CONFIG_HOME/libguestfs/libguestfs-tools.conf ($XDG_CONFIG_HOMEis $HOME/.config if not set).
- •
-
$HOME/.libguestfs-tools.rc
- •
-
$XDG_CONFIG_DIRS/libguestfs/libguestfs-tools.conf (where$XDG_CONFIG_DIRSmeans any of the directories in that environment variable, or just /etc/xdg if not set)
- •
-
/etc/libguestfs-tools.conf
This means local users can override the system configuration by copying the configuration file (or creating it anew) into $XDG_CONFIG_HOME/libguestfs/libguestfs-tools.conf.
/etc/libguestfs-tools.conf and $HOME/.libguestfs-tools.rc are the old non-XDG paths which are read for compatibility.
Releases
7 releases since Debian 8 (Jessie); the text changed 6 times.