From 1d9c98c5eeec60e1824a9cdcdc6cef0daab4a37f Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 15 Jul 2012 10:04:49 -0400 Subject: [PATCH] enforce user-specified root directory Remove the -r option, forcing the user to explicitly pass a root directory. This removes some confusion wherein we set defaults, but wouldn't allow all the defaults to be accepted. This also adds some mild documentation to the help output for genfstab and pacstrap. --- arch-chroot.in | 2 +- genfstab.in | 19 ++++++++++++------- pacstrap.in | 21 +++++++++------------ 3 files changed, 22 insertions(+), 20 deletions(-) diff --git a/arch-chroot.in b/arch-chroot.in index e85d7f3..de7b543 100644 --- a/arch-chroot.in +++ b/arch-chroot.in @@ -6,7 +6,7 @@ m4_include(common) usage() { cat < +usage: ${0##*/} chroot-dir EOF } diff --git a/genfstab.in b/genfstab.in index eb6e642..2bc121c 100644 --- a/genfstab.in +++ b/genfstab.in @@ -39,14 +39,16 @@ root=/mnt usage() { cat <