accomodate for absolute symbolic link handling of fakechroot
This commit is contained in:
parent
36b15b89f2
commit
db7904ee73
1 changed files with 10 additions and 0 deletions
10
polystrap.sh
10
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
|
||||
|
|
Loading…
Reference in a new issue