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

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



From: "Brian C. Lane" <bcl redhat com>

For F17 updates images are now relative to /
---
 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
-- 
1.7.7.6


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