summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-02-05 12:18:10 +0100
committerLeah Neukirchen <leah@vuxu.org>2020-02-05 12:18:10 +0100
commit7e2aaa5c842f6ed5e8fa2797cbef0e83fb73162b (patch)
treeadf91105a9e46c029a99b034d0d4302d3ca36e4c
parentcc97d326f2533245dc1b074666e3410901c1852d (diff)
downloadmewix-7e2aaa5c842f6ed5e8fa2797cbef0e83fb73162b.tar.gz
mewix-7e2aaa5c842f6ed5e8fa2797cbef0e83fb73162b.tar.xz
mewix-7e2aaa5c842f6ed5e8fa2797cbef0e83fb73162b.zip
also assemble /etc
-rwxr-xr-xmake-mewix-base4
-rwxr-xr-xrelink-newroot3
2 files changed, 5 insertions, 2 deletions
diff --git a/make-mewix-base b/make-mewix-base
index 31e9499..ddf9484 100755
--- a/make-mewix-base
+++ b/make-mewix-base
@@ -3,9 +3,9 @@
 mkdir newroot
 
 mkdir -p newroot/pkg
+mkdir -p newroot/pkg/user/etc
 
-mkdir -p newroot/etc
-echo 'nameserver 8.8.8.8' >newroot/etc/resolv.conf
+echo 'nameserver 8.8.8.8' >newroot/pkg/user/etc/resolv.conf
 
 ln -s usr/bin newroot/bin
 ln -s usr/lib newroot/lib
diff --git a/relink-newroot b/relink-newroot
index a466856..ad765cb 100755
--- a/relink-newroot
+++ b/relink-newroot
@@ -3,3 +3,6 @@
 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)