Closed t184256 closed 3 months ago
fakedroid seems to be broken.. I will test the new bootstrap on my device, did you push that bootstrap.zip somewhere already?
6bccf0a passes on-device and fails on NixOS+fakedroid. so far no idea why shm would be broken in fakedroid, as the entire /dev/ is mounted over
The issue with the missing profile.lock is caused by https://github.com/NixOS/nix/pull/5226. A workaround is
diff --git c/pkgs/bootstrap.nix i/pkgs/bootstrap.nix
index 7e76299..f7ea097 100644
--- c/pkgs/bootstrap.nix
+++ i/pkgs/bootstrap.nix
@@ -3,7 +3,8 @@
{ runCommand, nixDirectory, prootTermux, bash, pkgs, config, initialPackageInfo }:
runCommand "bootstrap" { } ''
- mkdir --parents $out/{.l2s,bin,dev/shm,etc,nix,root,tmp,usr/{bin,lib}}
+ mkdir --parents $out/{.l2s,bin,dev/shm,etc,root,tmp,usr/{bin,lib}}
+ mkdir --parents $out/nix/var/nix/{profiles,gcroots}/per-user/nix-on-droid
cp --recursive ${nixDirectory}/store $out/nix/store
cp --recursive ${nixDirectory}/var $out/nix/var
shm issue seems to be an interplay with link2symlink, as the shm file gets linked around across different names. I guess I'm gonna drop link2symlink in fakedroid
Incorporated both changes, let's see what the CI thinks...
whoa, CI sure is slow today
OK, please review.
If the CI keeps being that unreliable, I think I'll configure a $1 VPS as a self-hosted runner or something. =/
Thank you for the review and testing!
I give up on doing it cleanly, let's just release already before it's May.