tools/livecd-iso-to-disk.sh | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
New commits:
commit 74434baadbfeb9c3407a2a673c7e5a0f1c18834b
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Tue Mar 22 11:00:04 2011 -0700
Check for spaces in fs label when using overlay (#597599)
Spaces don't work in the overlay filename, don't allow them.
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index b48dd79..088188b 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -821,11 +821,17 @@ checkSyslinuxVersion
checkMBR $TGTDEV
-if [ "$overlaysizemb" -gt 0 -a "$TGTFS" = "vfat" ]; then
- if [ "$overlaysizemb" -gt 2047 ]; then
+if [ "$overlaysizemb" -gt 0 ]; then
+ if [ "$TGTFS" = "vfat" -a "$overlaysizemb" -gt 2047 ];
then
echo "Can't have an overlay of 2048MB or greater on VFAT"
exitclean
fi
+ LABEL=$(/sbin/blkid -s LABEL -o value $TGTDEV)
+ if [[ "$LABEL" =~ ( ) ]]; then
+ echo "The LABEL($LABEL) on $TGTDEV has spaces in it, which not work with the
overlay"
+ echo "You can re-format or use dosfslabel/e2fslabel to change it"
+ exitclean
+ fi
fi
if [ "$homesizemb" -gt 0 -a "$TGTFS" = "vfat" ]; then