Re: [F17-BRANCH 1/2] liveinst: adjust updates path (#807397)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/27/2012 01:21 PM, Brian C. Lane wrote:
From: "Brian C. Lane"<bcl@xxxxxxxxxx>

For F17 updates images are now relative to /

Looks okay to me, for what that's worth.

---
  data/liveinst/liveinst |    9 ++++++---
  1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/data/liveinst/liveinst b/data/liveinst/liveinst
index bb11e27..0a01474 100755
--- a/data/liveinst/liveinst
+++ b/data/liveinst/liveinst
@@ -119,14 +119,17 @@ if [ ! -z "$UPDATES" ]; then
      fi

      curl -o /tmp/updates.img $UPDATES
-    mkdir /tmp/updates

      # We officially support two updates.img formats:  a filesystem image, and
      # a compressed cpio blob.
      if [ ! -z "$(file /tmp/updates.img | grep 'gzip compressed data')" ]; then
-        ( cd /tmp/updates ; gzip -dc /tmp/updates.img | cpio -id )
+        ( cd / ; gzip -dc /tmp/updates.img | cpio -id )
      else
-        mount -t auto /tmp/updates.img /tmp/updates
+        mkdir /tmp/updates.disk
+        mount -t auto /tmp/updates.img /tmp/updates.disk
+        cp -t / /tmp/updates.disk/*
+        umount /tmp/updates.disk
+        rmdir /tmp/updates.disk
      fi

      export PYTHONPATH=/tmp/updates:$PYTHONPATH


--
        Peter

Sanity's just a one trick pony anyway.  You only get one trick -- rational
thinking -- but when you're good and crazy, the sky's the limit!
		-- The Tick

01234567890123456789012345678901234567890123456789012345678901234567890123456789

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux