Be careful when upgrading today: broken boot possible because of mkcpioinit failure during pacman -Syu due to LVM package changes
archlinux.orghttps://www.archlinux.org/news/changes-to-lvm/About this post
- Posted
- Archived
- Score
- 56 · 100% up
- Kind
- Link
- ID
- 18eaub
34 comments
This should be the first or second sentence in the news blurb.
I didn't test it, but the error is probably non-critical. There'll be a file missing in the initramfs, but it is probably not needed.
Does this affect people who don't use LVM?
Shouldn't. I've updated three systems today all without LVM and without a problem.
I dislike such tricky updates. :(
(yeah, it could be worse)
No, it really can't. Totally unacceptable.
Have some standards and QA at least.
What did you expect, Debian? It was in the news page, and it seems the fix is simply booting with install media, chrooting, then running mkinitcpio. This isn't a big deal, and certainly isn't the distro's fault.
Ok, I updated and didn't check the website. Now my computer can't boot and I'm dropped to a recovery shell. Short of booting off a live image to try and fix it, is there a better way?
If you don't have a working initramfs, then boot from an install disc, mount your volumes to /mnt and do "arch-chroot /mnt mkinitcpio -p linux" (or something like that, I didn't actually try).
So to actually answer the question: no.
Yeah, I wanted to avoid that, but I have no choice. I just booted to the latest live medium, mounted, chroot, pacman -Sf mkinitcpio lvm2, mkinitcpio -p linux. Had to reinstall mkinitcpio because it was corrupted for some reason.
Assuming you don't mean the grub shell, you can try downgrading to a previous kernel with
pacman -U /var/cache/pacman/pkg/linux-3.7.6-1...
I mean I'm dropped to the recovery shell, in the initrd. I can't mount anything and
ls /dev/sd*doesn't show anything. Nothing is detected.Deleted before we saved it.
Always read the wiki before installing any update in Arch because you can expect crippling breakage from every update.
Every update is a bit much.
True.
Or just use pacmatic.
Wow, the fact that this app actually exists says something.
After my switch to Debian I really can only laugh about stuff like this. Even though I'm using Sid the so called "unstable" branch, a breakage of this kind severity most likely will never occur to me. Arch always gets in your way when you want to do some actual work. In retrospect it is actually pretty stupid to use Arch in the first place if your goal is to be productive.
In three years with Arch, I've never been stuck with a broken system... but I also don't find pinging Arch's homepage to be really all that taxing.
But, hey, I'm sure things are fun back there on the 2.6.x kernel running Firefox 3.6. You enjoy that.
You can install bleeding edge software via PPAs. Right now I do this for Firefox, Chrome and Wine. If something breaks I can downgrade pretty simple without the need to cache old packages like in Arch.
If I have time to tinker I sometimes compile my own kernel only to find out that it makes no difference at all on my systems because 3.2.0 already supports all hardware I own.
I use my arch boxes for productivity. My production boxes are all Centos and Debian boxes, however
This kind of breakage is easily avoidable at the distro level, but it's an ideology thing. Debian aims to keep the burden of maintenance in the distro by changing upstream packages for the administrator. Arch aims to ship stock upstream packages and put the burden of maintenance on the system administrator. This is the meaning of minimal. The changes that the distro team puts into the packaging will be minimal.
I think a lot of people get confused by the fact that when they install there is nothing but linux and some core tools and think that is the meaning of minimal. But the stock arch install is not much different from a Debian net install (other that the "minimal' effort the maintainers put into arches install mechanism). It always amazes me when people get annoyed when the Arch project does exactly what it says it will do. [1] [2] Arch is a system for people who want to get into every detail and don't want the distro deciding how to implement packages or fix incompatibilities. There's really nothing wrong with that ideology it's just a different way to do things. I'm not sure why people keep installing it and then bitching when they have to get into the details and fix the packages themselves.
[1]
[2]
Just updated, ran "mkinitcpio -p linux," and we're good to go. Thanks for the head's up.
i went through the same thing on gentoo a week ago or so, although if you roll on testing branch things are not announced with a workaround on hand :/
Why do Arch devs insist on borking user systems on a weekly basis?