commit: 08f473ab6638f721fd87683edb0472340ea1e7b6
parent dd0e8de4b1a7f232e2a63e4c6c0b02cfa26a59aa
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 30 Apr 2024 22:46:29 +0200
README: Add `./make-root.sh && bwrap` command
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md
@@ -74,3 +74,11 @@ $ qemu-system-x86_64 -enable-kvm -m 512 -kernel /boot/vmlinuz-6.6.21-gentoo -ini
```
* Combination of `panic=1` and `-no-reboot` allows to exit+relaunch
+
+## Dev setup via bubblewrap
+
+```
+$ ./make-root.sh && bwrap --clearenv --unshare-all --bind initramfs-tcc/ / --proc /proc --dev /dev --uid 0 /init
+```
+
+Useful as it allows to manipulate the environment externally (there's no `sed -i` nor editors yet…).