Skip to content

Commit

Permalink
remove test if LVM is used on the host
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Jan 16, 2017
1 parent 35e3f35 commit 8f3df7b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions bin/fai-diskimage
Expand Up @@ -4,7 +4,7 @@

# This script is part of FAI (Fully Automatic Installation)
#
# Copyright (C) 2016 Thomas Lange, lange@informatik.uni-koeln.de
# Copyright (C) 2016-2017 Thomas Lange, lange@informatik.uni-koeln.de
# Universitaet zu Koeln

# this script neither needs /etc/fai nor the nfsroot. Only the config space is needed
Expand Down Expand Up @@ -174,16 +174,6 @@ if [ $(id -u) != "0" ]; then
die 1 "Run this program as root."
fi

# currently fai-diskimage can't be used if the host contains logical volumes
set +e
if [ -f /sbin/dmsetup ]; then
dmsetup ls 2>&1 | grep -q 'No devices found'
if [ $? -eq 1 ]; then
die 9 "Currently fai-diskimage can't be run if the host uses logical volumes."
fi
fi
set -e

# create empty disk image, loop setup, temp mount point
rm -f $rawname
qemu-img create $rawname $size
Expand Down

0 comments on commit 8f3df7b

Please sign in to comment.