Skip to content

Commit

Permalink
do not count empty fstab files
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed May 28, 2015
1 parent c6dd71d commit 31dc266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fai-mount-disk
Expand Up @@ -41,7 +41,7 @@ mount_local_disks() {
fi

# \ && echo $partition mounted successfully
if [ -f $FAI_ROOT/$devname/etc/fstab ]; then
if [ -s $FAI_ROOT/$devname/etc/fstab ]; then
echo "/etc/fstab found in $dev"
fstabpart=$devname # used in fstab_mount
fstablist="$fstablist $devname"
Expand Down

0 comments on commit 31dc266

Please sign in to comment.