summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--febootstrap.pod6
-rwxr-xr-xfebootstrap.sh8
2 files changed, 12 insertions, 2 deletions
diff --git a/febootstrap.pod b/febootstrap.pod
index a8f73ff..26035b1 100644
--- a/febootstrap.pod
+++ b/febootstrap.pod
@@ -64,6 +64,12 @@ RPMs and metadata. However if you give the C<--no-clean> option, then
the yum repository is left. This is useful if you want to run further
yum commands inside the filesystem by hand.
+=item B<-p "proxyurl">
+
+=item B<--proxy="proxyurl">
+
+URL to the proxy server that yum should use.
+
=back
=head1 REPOSITORIES
diff --git a/febootstrap.sh b/febootstrap.sh
index 5386b2c..c7eeca4 100755
--- a/febootstrap.sh
+++ b/febootstrap.sh
@@ -19,8 +19,8 @@
# Written by Richard W.M. Jones <rjones@redhat.com>
TEMP=`getopt \
- -o g:i: \
- --long groupinstall:,group-install:,help,install:,noclean,no-clean \
+ -o g:i:p: \
+ --long groupinstall:,group-install:,help,install:,noclean,no-clean,proxy: \
-n febootstrap -- "$@"`
if [ $? != 0 ]; then
echo "febootstrap: problem parsing the command line arguments"
@@ -45,6 +45,9 @@ while true; do
-i|--install)
packages[i++]="$2"
shift 2;;
+ -p|--proxy)
+ proxy="proxy=$2"
+ shift 2;;
--groupinstall|--group-install)
packages[i++]="@$2"
shift 2;;
@@ -96,6 +99,7 @@ name=febootstrap $repo $arch
failovermethod=priority
enabled=1
gpgcheck=0
+$proxy
__EOF__
# "Mirror" parameter is a bit misnamed, but it means a local mirror,