devrandom / gitian-builder Public
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
Failure having to do with grub and upgrading #86
Comments
|
Update: Rerunning make-base-vm worked, and I was able to build without that problem, and as of right now I was again able to build, still without this problem. |
|
/me pings @devrandom |
|
This seems to be related to 7d1e7c5 . Before this commit, the grub package was being picked up, which was causing issues with Ubuntu trusty. However, it looks like the package change is not backwards compatible with existing VM images. I don't have the bandwidth to look into the root cause right now. The workaround is to recreate the base VM image. |
|
Oh, I see. That's good to know... I was worried that I'd have to redo that every time package x got updated or something. |
|
Wait, I thought grub is removed before the upgrade? |
|
Yes, |
|
@devrandom Looks like it's not just a matter of backwards compatibility. It's happening again. Looking at the list of packages: I'm trying to think what might be pulling it in, and I suspect it may have something to do with upgrading Linux... |
|
Please let me know here if this happens again. |
|
It seems like the root issue is that we don't need a kernel and grub on LXC, but vmbuilder doesn't know that. Perhaps it's time to move to a different bootstrapping method, at least for LXC. |
|
There's On Sunday, May 17, 2015, Dev Random notifications@github.com wrote:
|
|
FWIW, I think I see what's going on here, at least in my case (an Ubuntu 12.04 container). The |
|
Wait, but in that case, shouldn't it refuse to remove grub? Or rather, On Sunday, May 17, 2015, Christopher Gurnee notifications@github.com
|
|
@Michagogo That's the last time I'll try to analyze something on a Saturday night ;-) You're right again, I just checked the link above, and it's not a dependency, just a recommendation. I don't have time to test this at the moment, but I suspect a much better idea would be to revert my entire commit, and then just add |
|
I have a revamped support for LXC in the new |
|
@devrandom This looks great, thanks! I tried building Bitcoin 0.10.1 (12.04 container on a 14.04 host), and ran into one blocking issue and two minor annoyances. I added comments to the commit with proposed small updates to fix what I ran into. Although I only built the Windows binaries, I can confirm that they match the official release. |
|
I made some updates to the |
|
Does debootstrap pull from -updates and -security? I suspect not, since on first use of a freshly created container it needs to upgrade 122 packages and install 9 new ones. (and I assume it'll need to do that every time, and it's taking ages... and also, it failed. I'm trying it again with a |
|
@Michagogo that's correct, it unfortunately does not. Is that a concern? You can use |
|
Well, it's just really annoying that it takes several times longer now to On Tue, May 19, 2015 at 1:00 AM, Dev Random notifications@github.com
|
|
Will look into improving this. |
Some recent changes have to do with grub and/or upgrading the guest system before
gbuilding. Not sure what's going on exactly, but I'm having a problem where theUpgrading system, may take a whilesection took a while, and then failed with this message:./bin/gbuild:21:in 'system!': failed to run on-target -u root bash < target-bin/upgrade-system.sh > var/install.log 2>&1 (RuntimeError).Editing
upgrade-system.shto remove the redirections to files and/dev/nullreveals that thepurgeofgrubworks, and thedist-upgradeseems to proceed normally, until this happens: https://www.irccloud.com/pastebin/xLjCr9YRThe weird thing is that I used
gbuildlast night and it worked without a problem, so I don't know what changed between last night and now.Right now I've removed the base container and am rerunning
make-base-vm, hoping that then there won't be anything to upgrade and I'll skip over this issue, but that shouldn't be necessary. Also, I noticed that there was some stuff that looked weird inupgrade-system.sh-- there seems to be two different redirects, both to/dev/nulland to a log file. What's up with that?The text was updated successfully, but these errors were encountered: