summary refs log tree commit diff
path: root/relink-newroot
blob: ad765cba803de494de61aadad5de9d11c58ceb55 (plain) (blame)
1
2
3
4
5
6
7
8
#!/bin/sh

bwrap --unshare-user --share-net --bind $PWD/newroot / --setenv PATH /bin \
  /pkg/chroot/s6-update-symlinks/0/usr/bin/s6-update-symlinks \
  /usr $(find newroot/pkg -name usr -type d | sed 's/^newroot//' |sort -r)
bwrap --unshare-user --share-net --bind $PWD/newroot / --setenv PATH /bin \
  /pkg/chroot/s6-update-symlinks/0/usr/bin/s6-update-symlinks \
  /etc $(find newroot/pkg -name etc -type d | sed 's/^newroot//' |sort -r)