Return-Path: Received: from mail.dream-property.net (mail.dream-property.net [82.149.226.172]) by mail.openembedded.org (Postfix) with ESMTP id B607477AF0 for ; Fri, 21 Apr 2017 12:48:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.dream-property.net (Postfix) with ESMTP id 172FC31E61E9; Fri, 21 Apr 2017 14:48:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.dream-property.net Received: from mail.dream-property.net ([127.0.0.1]) by localhost (mail.dream-property.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MEtJ1JZX4iVC; Fri, 21 Apr 2017 14:48:18 +0200 (CEST) Received: from t510.zcs.saftware.de (p57A6179E.dip0.t-ipconnect.de [87.166.23.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.dream-property.net (Postfix) with ESMTPSA id 1E1AD31E61CC; Fri, 21 Apr 2017 14:48:18 +0200 (CEST) Date: Fri, 21 Apr 2017 14:48:17 +0200 From: Andreas Oberritter To: David Vincent Message-ID: <20170421144817.66c189b6@t510.zcs.saftware.de> In-Reply-To: References: <1492771191-4445-1-git-send-email-obi@opendreambox.org> <20170421133034.59e68228@t510.zcs.saftware.de> MIME-Version: 1.0 Cc: OE-core Subject: Re: [PATCH] Revert "kernel: Fix symlinks" X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2017 12:48:24 -0000 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 21 Apr 2017 14:37:36 +0200 David Vincent wrote: > On 2017-04-21 13:30 GMT+02:00 Andreas Oberritter : > > On Fri, 21 Apr 2017 13:02:51 +0200 > > Andrea Adami wrote: > > > >> On Fri, Apr 21, 2017 at 12:39 PM, Andreas Oberritter > >> wrote: > >> > This reverts commit c7bc46b9bc29dd0953ab8d63b50fa105bb66892e. > >> > > >> > It broke dpkg's update-alternatives, which requires absolute paths. > >> > >> This is really uncommon. > > > > Actually it's not. Try it on any Debian or Ubuntu system. > > > >> I had already expressed my negative opinion about absolute paths for kernel [1]. > >> Personally, I had to patch the bootloader (kexecboot). > > Same here, that's why I submitted it in the first place. Didn't > thought that would break dpkg... > > >> > >> So please try some workaround instead of changing it back. > > > > Well, there's no workaround. Other than opkg's update-alternatives, dpkg's maintains > > an alternatives database in /etc/alternatives, so the symlink is going to point to > > an absolute path outside of /boot anyway. > > The problem is that, for bootloaders, it is not always possible to > mount the rootfs. So, it must only rely on information in the boot > partition that can be mounted anywhere. I understand the problem the patch tried to address. Those bootloaders don't find the kernel by chance. The name of the image is usually set in the environment. You can update the environment in postinst- scripts or just change the name of the kernel image to match the bootloader's expectations, just to name some alternatives. > > > > To fix your problem, kernel.bbclass should be changed to not use update-alternatives > > at all. But it's definitely wrong to break the original u-a by using invalid command- > > line arguments. > > > > And reverting this patch breaks boot for those who rely on a relative > symlink ; that is also wrong. Yes. However, I'd argue that a regression is worse than a problem that persisted for years. Regards, Andreas