nbdkit-iso-plugin(1) | NBDKIT | nbdkit-iso-plugin(1) |
nbdkit-iso-plugin - create virtual ISO (CD-ROM) from directory
nbdkit iso [dir=]DIRECTORY [[dir=]DIRECTORY ...] [prog=mkisofs] [params='-JrT']
"nbdkit-iso-plugin" is a plugin for nbdkit(1) which creates a virtual ISO (CD-ROM) image from a directory on the fly. The files from DIRECTORY are added to a virtual ISO image which is served read-only over the NBD protocol.
This plugin uses genisoimage(1) or mkisofs(1) to create the ISO content.
To create a FAT-formatted virtual floppy disk instead of a CD, see nbdkit-floppy-plugin(1). To create a Linux compatible virtual disk, see nbdkit-linuxdisk-plugin(1).
Create a virtual ISO which supports Joliet, Rock Ridge and TRANS.TBL extensions, from files in a directory:
nbdkit iso /path/to/directory params='-JrT'
"params" adds -JrT to the genisoimage(1) or mkisofs(1) command line, specifying the required extensions. Note that unless you use at least one of these extensions, filenames inside the ISO will be truncated because of limitations of the basic ISO 9660 format.
This parameter is required and may be specified one or more times. If multiple directories are specified, they are merged together.
"dir=" is a magic config key and may be omitted in most cases. See "Magic parameters" in nbdkit(1).
For example:
params='-JrT -V "My Disk Image"'
would specify Joliet (-J), Rock Ridge (-r) and TRANS.TBL (-T) extensions, and specify the volume ID (-V) as "My Disk Image".
Take care when quoting this parameter; nbdkit passes the resulting string through another layer of shell interpretation without any sanity checks for unquoted shell metacharacters.
Use "nbdkit --dump-config" to find the location of $plugindir.
"nbdkit-iso-plugin" first appeared in nbdkit 1.8.
nbdkit(1), nbdkit-plugin(3), nbdkit-file-plugin(1), nbdkit-floppy-plugin(1), nbdkit-linuxdisk-plugin(1), nbdkit-torrent-plugin(1), genisoimage(1), mkisofs(1).
Richard W.M. Jones
Copyright (C) 2018 Red Hat Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2021-01-20 | nbdkit-1.24.1 |