Comments (11)
This is because the newer droplet images use a unrecommended partition/bootloader layout. My latest commit addresses this by allowing the grub installation to fail, but still updating the menu. In most cases like yours, you should be able to reboot into the system, after the final printed "WARNING" message.
Please try it and let me know if it works. If not, you may be able to use an older droplet image that doesn't use the GPT partition table, e.g. the previous Debian image(s).
from nixos-infect.
with ubuntu 16.04:
+ rsync -a --delete --exclude=/tmp /tmp/tmp.YX747ln9wx/ /tmp/tmp.7p1USudPdN
rsync: delete_file: rmdir(var/lib/lxcfs) failed: Device or resource busy (16)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
debian 8.5 gives a similar resource busy error.
ubuntu 14.04 and debian 7.5 finishes after this. cant find nixos-rebuild when i log in after reboot.
created 2 symlinks in user environment
finalising the installation...
updating GRUB 2 menu...
setting up /etc...
mount: mount point /dev/shm is a symbolic link to nowhere
Initializing machine ID from KVM UUID.
i really would like to be able to understand what is going on. but i have no clue. can you take another look?
from nixos-infect.
I'm seeing these same problems. The /dev/shm one may be an upstream bug that I can hack around, but these resource busy ones, I don't know why they're happening. I'll keep looking for at least one droplet image that the script can be reliably run on.
I think I'll maybe just append || true
to the rsync line.
from nixos-infect.
gets stuck on boot menu this time.
anyways, thanks for all the help. please, let me know if you solve this.
from nixos-infect.
I think they made some systemic change that affects all images. I'll keep working on it when I have time and post a fix when I get it.
from nixos-infect.
Okay, try the latest commit on Ubuntu 16.04
from nixos-infect.
sorry to report that it stills gets stuck during boot.
there are some messages starting with ipxe, like version numbers. and it says Booting from hard disk
. i guess we couldn't replace the underlying boot files.
from nixos-infect.
So it proceeds to reboot then fails to boot? Can you screenshot the console? You're using the Ubuntu 16.04 image, right? I'm going to be supporting only 1 specific image moving forward; it'll be at the top of the comments in the file.
nixos-install isn't able to deal with the broken partition layout DO has in all its images. They have the volume partitioned with GPT but fail to create a bios partition for grub as one is supposed to do. There used to be some of them that used MSDOS headers, but they're gone now. I will open a ticket with them advising them of this problem.
A solution for you might be to just run grub manually at the end of the script. Since it works for me, can you just try to scp over the script, comment out the reboot at the end, then source nixos-infect
to run the installation. At the end, you can try running something like /nix/store/*grub*/bin/grub2-install --force /dev/sda1
, the goal being to force grub installation using blocklists. Then check the contents of /boot/grub/grub.cfg
to see they're okay and reboot -f
from nixos-infect.
I found that Fedora 24 x64 uses proper partitioning. I've updated the script to work using that image. Let me know if that one works.
from nixos-infect.
Couldn't try to force install the grub as i lost connection couple of times. I can try it later again if we need it.
Fedora installation worked. That's a huge relief.
Thank you!
from nixos-infect.
Yeah, don't worry about the other images. The way I see it, only one needs to work, and that's going to be Fedora 24 for now, since it requires the fewest hacks.
Glad to hear it works.
from nixos-infect.
Related Issues (20)
- Does NOT work on DigitalOcean Droplet with Ubuntu 22.04 without `export doNetConf=y` HOT 4
- Intermittent 'ERROR: Missing bzcat' error
- nixos-infect crashes with a nix syntax error on scaleway instances
- Trimming SSH lines removes spaces from them HOT 1
- Hetzner Cloud IPv6 not working HOT 2
- wishlist: disk encryption HOT 2
- New lightsail instance use /dev/nvme0n1 instead of /dev/xvda as boot device HOT 1
- Does not work for Hetznercloud using cloud config HOT 1
- nixos-infect on Ionos HOT 3
- Tested on arubacloud: working with `doNetConf=y`
- nix-env errors about using a symlink path HOT 3
- No space left on device on nixos-rebuild HOT 3
- SSH key extraction doesn't work with ssh-import-id
- DigitalOcean: `rm: cannot remove '/boot/efi': Device or resource busy` HOT 4
- (Security/Privacy) Stop supporting Vultur, i.e. remove it from the readme HOT 1
- cannot find name for group ID 30000 HOT 4
- Hetnzer: Channel 24.05 not working HOT 4
- DigitalOcean: Incorrect network configuration
- Some way to get some files over to the new system?
- on digitalocean `sudo nixos-rebuild switch` produces no changes HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixos-infect.