Giter VIP home page Giter VIP logo

Comments (11)

elitak avatar elitak commented on August 28, 2024

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.

ibrahimsag avatar ibrahimsag commented on August 28, 2024

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.

elitak avatar elitak commented on August 28, 2024

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.

ibrahimsag avatar ibrahimsag commented on August 28, 2024

gets stuck on boot menu this time.
anyways, thanks for all the help. please, let me know if you solve this.

from nixos-infect.

elitak avatar elitak commented on August 28, 2024

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.

elitak avatar elitak commented on August 28, 2024

Okay, try the latest commit on Ubuntu 16.04

from nixos-infect.

ibrahimsag avatar ibrahimsag commented on August 28, 2024

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.

elitak avatar elitak commented on August 28, 2024

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.

elitak avatar elitak commented on August 28, 2024

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.

ibrahimsag avatar ibrahimsag commented on August 28, 2024

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.

elitak avatar elitak commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.