X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id D12FEDC014C for ; Thu, 27 Mar 2014 19:47:15 +0000 (UTC) Received: by mail-ve0-f177.google.com with SMTP id sa20so4597550veb.22 for ; Thu, 27 Mar 2014 12:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=DyKE2nX+cjO6+rX5FOcZS8WxFhGRy4wb8lNeHmxBBIE=; b=N9SCQjWsgvduR3c4hBrMB+6HadJOxheHF0n64LEPMewsfLzUO0XFWDzsbWm8zkogH1 7yFLI2vjLNOEXhpcpP8/eXsy726Iiq2AF5yeIOUQUF4TIIuGyLfRG2tt8WH1x0ySkErT UHRQ+8xzMa+WIZN8ogkUCVAINGWT8Y20UCPPVfT9Q3GM3YOhY8v+xxBXeimEbU8EsULa 0SB77TVEq6/SHjNZRoBRRn2qy6QrNFDxAvcrGgTHB+TVMpo2IcVVbQQRgX3Fo08F+KI2 i85aLra3HHb9XPOZV3BvFqeFkq2NChvYDOKq57VnDZqortPf56MN8EkdAkDd956hgGQd nWQQ== X-Received: by 10.221.37.1 with SMTP id tc1mr2192200vcb.32.1395949632615; Thu, 27 Mar 2014 12:47:12 -0700 (PDT) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.220.136.74 with HTTP; Thu, 27 Mar 2014 12:46:52 -0700 (PDT) In-Reply-To: <20140327194522.5a4d04b8@ncopa-laptop> References: <20140327194522.5a4d04b8@ncopa-laptop> From: Alan Messias Date: Thu, 27 Mar 2014 16:46:52 -0300 Message-ID: Subject: Re: [alpine-devel] How to rescue your edge box after the mkinitfs incident To: Natanael Copa Cc: Alpine Devel List Content-Type: multipart/alternative; boundary=001a11334c38f9ffdf04f59bd9fd --001a11334c38f9ffdf04f59bd9fd Content-Type: text/plain; charset=ISO-8859-1 Is it useful to be placed on wiki.al.o ? 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 > --- > > -- Atenciosamente, Alan Messias Cordeiro *The nice thing about standards is that there are so many to choose from. And if you really don't like all the standards you just have to wait another year until the one arises you are looking for. -- A. Tanenbaum, "Introduction to Computer Networks"* --001a11334c38f9ffdf04f59bd9fd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Is it useful to be placed on wiki.al.o ?


On Thu, Mar 27, 2014 at= 4:45 PM, Natanael Copa <ncopa@alpinelinux.org> 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<= br> 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
=A0 session)

* make sure you have new apk-tools:

=A0 =A0 apk upgrade -U

* I have my root on lvm so:

=A0 =A0 apk add lvm2
=A0 =A0 lvchange -a y vg0

* mount the root:

=A0 =A0 mount -t /dev/vg0/lv_root /mnt

* mount the boot partition. In my case this is /dev/sda2:

=A0 =A0 mount /dev/sda2 /mnt/boot

* I had to mount /mnt/proc otherwise readlink -f wouldn't work in the =A0 chroot. Not sure if it is needed for uclibc:

=A0 =A0 mount --bind /proc /mnt/proc

* Upgrade the broken system:

=A0 =A0 apk upgrade -U --root /mnt

* Verify that you get mkinitfs-2.6.0-r3 and check that mkinitfs trigger
=A0 don't give any cpio errors.

* cleanup and reboot.

=A0 =A0 umount /mnt/proc /mnt/boot /mnt
=A0 =A0 reboot

That should be it.

-nc


---
Unsubscribe: =A0alpine-devel+unsubscribe@lists.alpinelinux.org
Help: =A0 =A0 =A0 =A0 alpine-devel+help@lists.alpinelinux.org
---




--
Atenciosamente,
Alan Messias Cordeiro

The nice thing about standards is that there are= so many to choose from. And if you really don't like all the standards= you just have to wait another year until the one arises you are looking fo= r.=A0--=A0A. Tanenbaum, "Introduction to Computer Networks"= ;

--001a11334c38f9ffdf04f59bd9fd-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---