Makefile | 2 +- tools/livecd-iso-to-disk.sh | 39 +++++++++++++++++++++++---------------- tools/liveimage-mount | 2 +- 3 files changed, 25 insertions(+), 18 deletions(-)
New commits: commit 5f7cf45761ce7fd6ee899c65f02574686b771f1e Author: Brian C. Lane <[email protected]> Date: Thu Nov 3 15:55:31 2011 -0700 Version 16.9 diff --git a/Makefile b/Makefile index c4a49e9..a2f9f78 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -VERSION = 16.8 +VERSION = 16.9 INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} commit 8427cb572f58b3b38f475f5b0663815d52105951 Author: Brian C. Lane <[email protected]> Date: Thu Nov 3 14:34:51 2011 -0700 Fix indent and typo in liveimage-mount (#749643) diff --git a/tools/liveimage-mount b/tools/liveimage-mount index 80d67d1..185f070 100755 --- a/tools/liveimage-mount +++ b/tools/liveimage-mount @@ -272,7 +272,7 @@ def main(): if os.path.ismount(destmnt): call(['/bin/umount', destmnt]) if img_type is 'blk': - m_cow: + if dm_cow: call(['/sbin/dmsetup', '--noudevrules', '--noudevsync', 'remove', dm_cow]) if overlayloop: commit 1ae8a45ffe5dc6f0ed65c4d7fbb9dea203030514 Author: Brian C. Lane <[email protected]> Date: Thu Nov 3 14:06:40 2011 -0700 Make sure the target is labeled LIVE (#751213) Anaconda needs to be able to find the boot device. It does this by looking for the filesystem labeled LIVE. Previously we set the label when formatting, but now we always set it to LIVE, even when not formatting. diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh index 43c825e..dcc152d 100755 --- a/tools/livecd-iso-to-disk.sh +++ b/tools/livecd-iso-to-disk.sh @@ -534,27 +534,34 @@ checkFilesystem() { fi fi - - TGTLABEL=$(/sbin/blkid -s UUID -o value $dev) - if [ -n "$TGTLABEL" ]; then - TGTLABEL="UUID=$TGTLABEL" - else - TGTLABEL=$(/sbin/blkid -s LABEL -o value $dev) - if [ -n "$TGTLABEL" ]; then - TGTLABEL="LABEL=$TGTLABEL" - else - echo "Need to have a filesystem label or UUID for your target device" - if [ "$TGTFS" = "vfat" -o "$TGTFS" = "msdos" ]; then - echo "Label can be set with /sbin/dosfslabel" - elif [ "$TGTFS" = "ext2" -o "$TGTFS" = "ext3" -o "$TGTFS" = "ext4" ]; then - echo "Label can be set with /sbin/e2label" - elif [ "$TGTFS" = "btrfs" ]; then - echo "Eventually you'll be able to use /sbin/btrfs filesystem label to add a label." + TGTLABEL=$(/sbin/blkid -s LABEL -o value $dev) + if [ "$TGTLABEL" != "LIVE" ]; then + if [ "$TGTFS" = "vfat" -o "$TGTFS" = "msdos" ]; then + /sbin/dosfslabel $dev LIVE + if [ $? -gt 0 ]; then + echo "dosfslabel failed on $dev, device not setup" + exitclean + fi + elif [ "$TGTFS" = "ext2" -o "$TGTFS" = "ext3" -o "$TGTFS" = "ext4" ]; then + /sbin/e2label $dev LIVE + if [ $? -gt 0 ]; then + echo "e2label failed on $dev, device not setup" + exitclean fi + else + echo "Unknown filesystem type. Try setting its label to LIVE and re-running" exitclean fi fi + # Use UUID if available + TGTUUID=$(/sbin/blkid -s UUID -o value $dev) + if [ -n "$TGTUUID" ]; then + TGTLABEL="UUID=$TGTUUID" + else + TGTLABEL="LABEL=LIVE" + fi + if [ "$TGTFS" = "vfat" -o "$TGTFS" = "msdos" ]; then mountopts="-o shortname=winnt,umask=0077" fi -- livecd mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/livecd
