From 9e8c8328f976f07e98083e5c23278f20f098e1a2 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 19 Dec 2013 11:50:27 -0800 Subject: [PATCH] Add check for extlinux tools (#881317) --- tools/livecd-iso-to-disk.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh index d6f21a4..5f4b697 100755 --- a/tools/livecd-iso-to-disk.sh +++ b/tools/livecd-iso-to-disk.sh @@ -567,6 +567,12 @@ checkFilesystem() { fi fi + if [ "$TGTFS" = "ext2" -o "$TGTFS" = "ext3" -o "$TGTFS" = "ext4" -a ! -x /sbin/extlinux ]; then + echo "Target filesystem ($TGTFS) requires syslinux-extlinux to be installed." + exitclean + fi + + TGTLABEL=$(/sbin/blkid -s LABEL -o value $dev) if [ "$TGTLABEL" != "$label" ]; then if [ "$TGTFS" = "vfat" -o "$TGTFS" = "msdos" ]; then -- 2.11.4.GIT