Open main menu

Aram's Wiki β

Changes

Create Debian sysroots

2 bytes removed, 14:09, 24 November 2019
See also
for arch in $arches; do IFS=","; set $arch; find "$2" -type l -lname '/*' -exec sh -c 'file="$0"; dir=$(dirname "$file"); target=$(readlink "$0"); prefix=$(dirname "$dir" | sed 's@[^/]*@\.\.@g'); newtarget="$prefix$target"; ln -snf $newtarget $file' {} \; ; unset IFS; done
=== See also ===
* [https://wiki.debian.org/Debootstrap debootstrap]