X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from ncopa-laptop (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: nc@alpinelinux.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id A05A5DC014C for ; Thu, 27 Mar 2014 19:45:26 +0000 (UTC) Date: Thu, 27 Mar 2014 19:45:22 +0000 From: Natanael Copa To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] How to rescue your edge box after the mkinitfs incident Message-ID: <20140327194522.5a4d04b8@ncopa-laptop> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.20; x86_64-alpine-linux-musl) 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 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 ---