Index: build/docker/Dockerfile ================================================================== --- build/docker/Dockerfile +++ build/docker/Dockerfile @@ -1,5 +1,5 @@ FROM scratch -COPY init appfsd /bin/ +COPY init appfsd appfs-cache /bin/ ENTRYPOINT ["/bin/init"] Index: build/docker/init.c ================================================================== --- build/docker/init.c +++ build/docker/init.c @@ -49,25 +49,29 @@ return(1); } mkdir("/bin", 0755); + mkdir("/lib", 0755); mkdir("/opt", 0755); mkdir("/opt/appfs", 0755); mkdir("/var", 0755); mkdir("/var/cache", 0755); mkdir("/var/cache/appfs", 0755); run("/bin/appfsd", "appfsd", "/var/cache/appfs", "/opt/appfs", NULL); symlink(".", "/usr"); + symlink("lib", "/lib64"); + symlink("/opt/appfs/core.appfs.rkeene.org/bash/platform/latest/bin/bash", "/bin/bash"); symlink("/opt/appfs/core.appfs.rkeene.org/coreutils/platform/latest/bin/env", "/bin/env"); symlink("/bin/bash", "/bin/sh"); setenv("PATH", "/bin:/opt/appfs/core.appfs.rkeene.org/coreutils/platform/latest/bin", 1); - run("/bin/appfs-install-pkg", "appfs-install-pkg", "core.appfs.rkeene.org", "coreutils", NULL); + run("/bin/appfs-cache", "appfs-cache", "install", "-lib", "core.appfs.rkeene.org", "glibc", NULL); + run("/bin/appfs-cache", "appfs-cache", "install", "core.appfs.rkeene.org", "coreutils", NULL); setenv("PATH", "/bin", 1); if (argc == 1) { run("/bin/sh", "sh", NULL); } else {