X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from ncopa-desktop.alpinelinux.org (unknown [79.160.13.133]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id 8A0F2DC00DB; Thu, 29 Jan 2015 11:02:30 +0000 (UTC) Date: Thu, 29 Jan 2015 12:02:27 +0100 From: Natanael Copa To: Thomas Zelch Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] apk package rollback feature? Message-ID: <20150129120227.2d69bb49@ncopa-desktop.alpinelinux.org> In-Reply-To: References: X-Mailer: Claws Mail 3.11.0 (GTK+ 2.24.25; 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 On Thu, 22 Jan 2015 09:49:36 -0800 Thomas Zelch wrote: > Hi, > > Yesterday i ran into an issue with the linux-grsec package. Which version was it? > I searched the wiki and help output of apk, but couldn't find a way to > downgrade the package comfortably. > I ended up taking an older version of the package from an older iso file > that i still had in my downloads folder. > > Is there a more comfortable way implemented? > If not, what does everybody think about it? > I think it would be a great addition. I think so too but there are no easy way to solve it. Partially because there are different ways to run alpine. for example, if you run a diskless (aka tmpfs) install, the boot media will not be in a package. Instead it will be a kernel and modloop squashfs image on boot media. We now have an experimental update-kernel which could have support for this. For traditional disk installs, we would need keep old versions of packages. I think this is ok-ish for stable release branches but not for edge as it would mean we would keep every package ever built. Alternatively we would need create new package for each kernel version, so you could have multiple kernel packages installed in parallel. I don't know if we want that either. Other options would be to do LVM snapshots before upgrade and do rollback of that in case emergency. That would be kinda nice because it would make the upgrade/rollback atomic. that would not work with the kernel itself though because /boot on LVM is not supported... I am open to other ideas how to properly implement a kernel rollback feature. > > Regards, > Thomas --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---