X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from dal-a2.localdomain (unknown [74.117.189.115]) by mail.alpinelinux.org (Postfix) with ESMTP id 834FCDC056E for ; Fri, 28 Mar 2014 16:05:12 +0000 (UTC) Received: from ncopa-desktop.alpinelinux.org (3.203.202.84.customer.cdi.no [84.202.203.3]) (using SSLv3 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ncopa@tanael.org) by dal-a2.localdomain (Postfix) with ESMTPSA id C7705BC2957; Fri, 28 Mar 2014 16:05:11 +0000 (UTC) Date: Fri, 28 Mar 2014 17:05:07 +0100 From: Natanael Copa To: Alan Messias Cc: Alpine Devel List Subject: Re: [alpine-devel] How to rescue your edge box after the mkinitfs incident Message-ID: <20140328170507.44eb116d@ncopa-desktop.alpinelinux.org> In-Reply-To: References: <20140327194522.5a4d04b8@ncopa-laptop> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.20; x86_64-alpine-linux-uclibc) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 27 Mar 2014 16:46:52 -0300 Alan Messias wrote: > Is it useful to be placed on wiki.al.o ? I first though no, because this should not happen, but on the other hand, it might be useful to have a general rescue wiki page. -nc > On Thu, Mar 27, 2014 at 4:45 PM, Natanael Copa wrote: > > > Hi, > > > > It turned out that there were 2 bugs in mkinitfs, one that only > > affected uClibc and one that affected both uClibc and musl. > > > > I thought I'd write how I rescued my laptop after it became unbootable > > after upgrading to broken mkinitfs. > > > > * Boot a rescue boot USB, with alpine v2.7 > > > > * Configure network (run setup-alpine -q for setting up the live > > session) > > > > * make sure you have new apk-tools: > > > > apk upgrade -U > > > > * I have my root on lvm so: > > > > apk add lvm2 > > lvchange -a y vg0 > > > > * mount the root: > > > > mount -t /dev/vg0/lv_root /mnt > > > > * mount the boot partition. In my case this is /dev/sda2: > > > > mount /dev/sda2 /mnt/boot > > > > * I had to mount /mnt/proc otherwise readlink -f wouldn't work in the > > chroot. Not sure if it is needed for uclibc: > > > > mount --bind /proc /mnt/proc > > > > * Upgrade the broken system: > > > > apk upgrade -U --root /mnt > > > > * Verify that you get mkinitfs-2.6.0-r3 and check that mkinitfs trigger > > don't give any cpio errors. > > > > * cleanup and reboot. > > > > umount /mnt/proc /mnt/boot /mnt > > reboot > > > > That should be it. > > > > -nc > > > > > > --- > > Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org > > Help: alpine-devel+help@lists.alpinelinux.org > > --- > > > > > > --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---