-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible race condition in stage1? #35
Comments
Hm, I think you're onto something. The snippet of the relevant code is this: ## Enable networking
log "Setting up chroot networking"
cd host
mkdir -p etc dev proc sys
cp /etc/resolv.conf etc/external-resolv.conf
for fn in dev dev/shm dev/pts proc sys; do mount --bind "/$fn" "$fn"; done
## Patch the ISO for local chroot
log_start "Looking for NixOS init... "
INIT=$(find . -type f -path '*nixos*/init')
log_end "$INIT" If any of those mounts have not yet finished, though the command is run synchronously, you may fail the find. In your case, it looks like mounting Are you able to continue testing this to see how often you can reproduce it? If so, I would recommend changing that |
After some more research and question asking, it looks like the race is not to do with the mounts, but just to do with In short, this issue happened because, as you were running Thanks for reporting this in such a helpful fashion! |
Just hit this with Debian Stretch on a OVH dedicated server. Repro'ed 2nd time as well. Adding a |
I got on an OVH cloud server running Ubuntu 14.04:
Running it again made it go past that without problems.
Maybe there's a race?
The text was updated successfully, but these errors were encountered: