[Emdebian-logs] [SCM] Root filesystem generation tool (multistrap wrapper) branch, master, updated. db7904ee73e8a399bca6f1847bec4f19cb9ddd8f

josch josch at pyneo.org
Thu Mar 15 10:21:25 UTC 2012


The following commit has been merged in the master branch:
commit db7904ee73e8a399bca6f1847bec4f19cb9ddd8f
Author: josch <josch at pyneo.org>
Date:   Thu Mar 15 11:21:13 2012 +0100

    accomodate for absolute symbolic link handling of fakechroot

diff --git a/polystrap.sh b/polystrap.sh
index be5277c..3f4f279 100755
--- a/polystrap.sh
+++ b/polystrap.sh
@@ -122,6 +122,16 @@ multistrap $MSTRAP_SIM -f "$MULTISTRAPCONF"
 
 rm -f "$MULTISTRAPCONF"
 
+# convert absolute symlinks for fakechroot
+for link in `find $ROOTDIR -type l`; do
+        target=`readlink $link`
+        if [ "${target%%/*}" = "" ]; then # target begins with slash
+		echo "I: convert symlink: ${link#$ROOTDIR} -> $target"
+		rm $link
+                ln -s $ROOTDIR/$target $link
+        fi
+done
+
 # copy initial directory tree - dereference symlinks
 echo "I: copy initial directory root tree $BOARD/root/ to $ROOTDIR/"
 if [ -r "$BOARD/root" ]; then

-- 
Root filesystem generation tool (multistrap wrapper)



More information about the Emdebian-logs mailing list