Skip to content

Commit

Permalink
add test if mksquashfs is available, remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Apr 17, 2015
1 parent 7ce2af0 commit 40de66c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions bin/fai-cd
Expand Up @@ -286,9 +286,6 @@ burniso() {
# - - - - - - - - - - - - - - - - - - - - - - - - - -
# main program

rsync=0
if [ -x "$(which rsync)" ] ; then rsync=1 ; fi

# Parse commandline options
while getopts "nkfhHg:JbSBMm:C:d:" opt ; do
case "$opt" in
Expand Down Expand Up @@ -324,8 +321,8 @@ if [ $bootonly -eq 0 ]; then
[ $(id -u) != "0" ] && die 9 "Run this program as root."
fi

[ -x "$(which xorriso)" ] || die 8 "xorriso not found. Please install package."

[ $squash_only -eq 1 -o -x "$(which xorriso)" ] || die 8 "xorriso not found. Please install package."
[ -x "$(which mksquashfs)" ] || die 8 "mksquashfs not found. Please install the package mksquashfs-tools."
[ -x "$(which strings)" ] || die 8 "command strings not found. Please install package binutils."

# use FAI_ETC_DIR from environment variable
Expand Down

0 comments on commit 40de66c

Please sign in to comment.