summaryrefslogtreecommitdiff
path: root/src/chroot-tools
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-09-19 07:01:34 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2020-11-20 22:53:31 -0500
commit343946c08902aecad2b52cdda5761e6246825e99 (patch)
tree4e664df178aeaf12e9c3fe19420b3c6a21c7b7a4 /src/chroot-tools
parent6f6a58874ed66111ad0563e77fc01aef413f98ca (diff)
sq - docs
Diffstat (limited to 'src/chroot-tools')
-rwxr-xr-xsrc/chroot-tools/librechroot28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot
index 9367ef8..2462f4b 100755
--- a/src/chroot-tools/librechroot
+++ b/src/chroot-tools/librechroot
@@ -216,6 +216,8 @@ readonly DEF_PACMANCONF_DIR=/usr/share/pacman/defaults
usage() {
eval "$(calculate_directories)"
+ local mount_msg="$(_ 'PATH[:INSIDE_PATH[:OPTIONS]]')"
+
print "Usage: %s [OPTIONS] COMMAND [ARGS...]" "${0##*/}"
echo
print 'Interacts with a libre "archroot" (similarly to `arch-chroot`).'
@@ -287,20 +289,18 @@ usage() {
prose 'Creating/deleting/synchronizing a copy, can be relatively slow;
but can be very fast, if $CHROOTDIR is on a btrfs partition.'
echo
- flag 'Options:' \
- "-n <$(_ NAME)>" 'Name of the chroot to use' \
- "-l <$(_ COPY)>" 'Name of, or absolute path to, the copy to use' \
- "-C <$(_ FILE)>" 'Copy this file to chroot as: `/etc/pacman.conf`
- This option is mutually exclusive with -A.' \
- "-M <$(_ FILE)>" 'Copy this file to chroot as: `/etc/makepkg.conf`
- This option is mutually exclusive with -A.' \
- "-A <$(_ CARCH)>" 'Specify the architecture of a new `root` seed.
- This option is mutually exclusive with -C and -M.' \
- "-N" 'Disable networking in the chroot' \
- "-w <$(_ 'PATH[:INSIDE_PATH[:OPTIONS]]')>" 'Bind mount a file or
- directory, read/write' \
- "-r <$(_ 'PATH[:INSIDE_PATH[:OPTIONS]]')>" 'Bind mount a file or
- directory, read-only'
+ flag 'Options:' \
+ "-n <$(_ NAME)>" 'Name of the chroot to use' \
+ "-l <$(_ COPY)>" 'Name of, or absolute path to, the copy to use' \
+ "-C <$(_ FILE)>" 'Copy this file to chroot as: `/etc/pacman.conf`
+ This option is mutually exclusive with -A.' \
+ "-M <$(_ FILE)>" 'Copy this file to chroot as: `/etc/makepkg.conf`
+ This option is mutually exclusive with -A.' \
+ "-A <$(_ CARCH)>" 'Specify the architecture of a new `root` seed.
+ This option is mutually exclusive with -C and -M.' \
+ "-N" 'Disable networking in the chroot' \
+ "-w <${mount_msg}>" 'Bind mount a file or directory, read/write' \
+ "-r <${mount_msg}>" 'Bind mount a file or directory, read-only'
echo
flag 'Commands (create/copy/delete):' \
'make' 'Create a `root` seed and working copy' \