On 08/08/2012 02:44 PM, Steven A. Falco wrote:
On 08/07/2012 12:09 PM, Scott Sullivan wrote:
[...]
# Needs to be Modified to support Fedora .zx tar archive and /lib symbolic 
link. Working on a patch.

Here is a patch that fixes both the xz and symbolic link:

--- /home/sfalco/a1x-media-create.sh    2012-08-08 14:10:38.323150167 -0400
+++ ./a1x-media-create.sh       2012-08-08 14:38:29.609848573 -0400
@@ -107,6 +107,8 @@
          sudo tar xzf ../$1
      elif [ ${fileext} == "7z" ] | [ ${fileext} == "lzma" ]; then
          sudo 7z x ../$1
+    elif [ ${fileext} == "xz" ]; then
+        sudo tar xJf ../$1
      else
        echo "Unknown file extension: ${fileext}"
          popd
@@ -217,6 +219,14 @@
                cleanup
        fi
          echo "Copy hwpack rootfs files"
+       # Fedora uses a softlink for lib.  Adjust, if needed.
+       if [ -L mntSDrootfs/lib ]; then
+               # Find where it points.  For Fedora, we expect usr/lib.
+               DEST=`/bin/ls -l mntSDrootfs/lib | sed -e 's,.* ,,'`
+               if [ "$DEST" = "usr/lib" ]; then
+                       mv hwpack/rootfs/lib hwpack/rootfs/usr
+               fi
+       fi
          sudo cp -a hwpack/rootfs/* mntSDrootfs >> ${logfile}
        if [ $? -ne 0 ]; then
                echo "Failed to copy rootfs hwpack files to SD Card"


Thanks Steven. My time got busy and this got pushed to my back burner, greatly appreciated.

Have you tired getting this applied to the upstream yet?

--
Scott Sullivan
_______________________________________________
arm mailing list
arm@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/arm

Reply via email to