jeaye / nixos-in-place

Install NixOS on top of any existing Linux distribution without rebooting
MIT License
458 stars 57 forks source link

Create required directories. #17

Closed kevincox closed 8 years ago

kevincox commented 8 years ago

Trying to install fails on DigitalOcean VPSs because the assumed directories don't exist. This creates them before using them.

jeaye commented 8 years ago

On which distro did you not have a /root? I've tried this on about a dozen distros and every single one had it.

kevincox commented 8 years ago

I ran into this problem on the DigitalOcean Ubuntu15.10 image. I don't think the problem is that the distribution doesn't have it but it appears that this script is run before the first build of the system (just suspicion, I haven't actually confirmed) but this patch fixes the issue. It is very reproducible giving an error "file doesn't exist" on theln call.