Skip to content

Commit

Permalink
add option -c
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Jul 10, 2020
1 parent 493679e commit c2a6726
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions bin/fai-make-nfsroot
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,13 @@ usexz=1
full=1

# option e currently does nothing
while getopts aghervC:B:fkKpPUzsN opt ; do
while getopts aghervc:C:B:fkKpPUzsN opt ; do
case "$opt" in
a) adjust=1 ;;
g) generic=1 ;;
z) usexz=0 ;;
c) classes=$OPTARG
classes=${classes//,/ } ;;
C) cfdir=$OPTARG ;;
B) basetgz=$OPTARG ;;
v) verbose=1 ; v=-v ;;
Expand Down Expand Up @@ -195,7 +197,7 @@ setclasses() {
if [ $full = 1 ]; then
c=FULL
fi
export classes="NFSROOT $c $iarch $distro $nonfree"
export classes="NFSROOT $c $iarch $distro $nonfree $classes"
if [ X$verbose = X1 ] ; then
echo Classes are set to $classes
fi
Expand Down
6 changes: 5 additions & 1 deletion man/fai-make-nfsroot.8
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" Hey, EMACS: -*- nroff -*-
.if \n(zZ=1 .ig zZ
.if \n(zY=1 .ig zY
.TH fai-make-nfsroot 8 "February 2018" "FAI 5.5.4"
.TH fai-make-nfsroot 8 "July 2020" "FAI 5.9"
.de }1
.ds ]X \&\\*(]B\\
.nr )E 0
Expand Down Expand Up @@ -45,6 +45,10 @@ Use specified BASETGZ file as base.tgz (or base.tar.gz, base.tar.xz, base.txz)
for the nfsroot. This avoids
calling debootstrap and therefore reduces the buildtime for the nfsroot.
.TP
.B \-c, --class \fICLASS\fR[,\fICLASS\fR]
Add these classes to the internal list of classes. This is usually not
necessary.
.TP
.B \-C CFDIR
Use CFDIR as configuration directory. Default is /etc/fai. You can
also set the environment variable FAI_ETC_DIR.
Expand Down

0 comments on commit c2a6726

Please sign in to comment.