From d5ff1ca04bb6160d0d371e926240e540246b5531 Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Thu, 3 May 2012 10:46:10 -0400 Subject: [PATCH] Include patch so Fedora Live media is shown --- ...to-show-FS-on-CDs-USB-sticks-created.patch | 34 +++++++++++++++++++ udisks2.spec | 8 ++++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 udisks-1.97.0-Add-work-around-to-show-FS-on-CDs-USB-sticks-created.patch diff --git a/udisks-1.97.0-Add-work-around-to-show-FS-on-CDs-USB-sticks-created.patch b/udisks-1.97.0-Add-work-around-to-show-FS-on-CDs-USB-sticks-created.patch new file mode 100644 index 0000000..edb10b8 --- /dev/null +++ b/udisks-1.97.0-Add-work-around-to-show-FS-on-CDs-USB-sticks-created.patch @@ -0,0 +1,34 @@ +From 6512ec74025a0fec96a58ab330d891e3004b5826 Mon Sep 17 00:00:00 2001 +From: David Zeuthen +Date: Thu, 3 May 2012 09:46:43 -0400 +Subject: [PATCH] Add work-around to show FS on CDs/USB sticks created using + isohybrid + +This happens at least in two cases - when using loop-devices with +LO_PARTSCAN and when dd(1)'ing the image to a USB stick. + +Signed-off-by: David Zeuthen +--- + data/80-udisks2.rules | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/data/80-udisks2.rules b/data/80-udisks2.rules +index f1fe9bc..f6a3e47 100644 +--- a/data/80-udisks2.rules ++++ b/data/80-udisks2.rules +@@ -96,3 +96,12 @@ ENV{ID_FS_TYPE}=="ntfs|vfat", \ + + # read-only non-Linux software installer partitions + ENV{ID_VENDOR}=="Sony", ENV{ID_MODEL}=="PRS*Launcher", ENV{UDISKS_IGNORE}="1" ++ ++# Content created using isohybrid (typically used on CDs and USB ++# sticks for bootable media) is a bit special insofar that the ++# interesting content is on a DOS partition with type 0x00 ... which ++# is hidden above. So undo this. ++# ++# See http://mjg59.dreamwidth.org/11285.html for more details ++# ++ENV{ID_PART_TABLE_TYPE}=="dos", ENV{ID_PART_ENTRY_TYPE}=="0x0", ENV{ID_FS_TYPE}=="iso9660", ENV{UDISKS_IGNORE}="0" +-- +1.7.10 + diff --git a/udisks2.spec b/udisks2.spec index 1ebca1f..2b77616 100644 --- a/udisks2.spec +++ b/udisks2.spec @@ -8,7 +8,7 @@ Summary: Disk Manager Name: udisks2 Version: 1.96.0 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: System Environment/Libraries URL: http://www.freedesktop.org/wiki/Software/udisks @@ -55,6 +55,8 @@ Requires: ntfsprogs # for /proc/self/mountinfo, only available in 2.6.26 or higher Conflicts: kernel < 2.6.26 +Patch0: udisks-1.97.0-Add-work-around-to-show-FS-on-CDs-USB-sticks-created.patch + %description udisks provides a daemon, D-Bus API and command line tools for managing disks and storage devices. This package is for the udisks 2.x @@ -84,6 +86,7 @@ daemon. This package is for the udisks 2.x series. %prep %setup -q -n udisks-%{version} +%patch0 -p1 %build %configure --enable-gtk-doc @@ -141,6 +144,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.a # Note: please don't forget the %{?dist} in the changelog. Thanks %changelog +* Thu May 03 2012 David Zeuthen - 1.96.0-2%{?dist} +- Include patch so Fedora Live media is shown + * Mon Apr 30 2012 David Zeuthen - 1.96.0-1%{?dist} - Update to release 1.96.0