Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1487265imu; Sat, 26 Jan 2019 04:06:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN5hTAHQ4El8bDESViPws8G3XQ4EO4MwQUYL6AKVH5vU5c3R9ho/74icbLHSzjUOGZFjgUJd X-Received: by 2002:a62:6385:: with SMTP id x127mr14898874pfb.15.1548504394884; Sat, 26 Jan 2019 04:06:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548504394; cv=none; d=google.com; s=arc-20160816; b=o9ZSUfXIC1LXdcyg3FsDtEeo8GpgoIA/I3mhmTK+Oo58822za4zabTCnF3MiQZBbFM XDRvDJqDgUfmJMTziOAcE9Xnuwb3wxbLKFroEAV1oOU1IWsP1EQDwpTSJ6gWxByQQw8Q Me3KzQyMOn9dcBgugp5px++Z+oWgyWwtT6cG8mBE4D6MYQpRkBXY4FHGlDT5bgOJaQFG ZKRIgUCCaiimpvlLsrPQDxcr95iZgtRCUtC7WbftfsLSujKgSROM6krvT/uN+vhJ6TBa tkai6IeBPe1aGyhwVh8JXXA3YzTOHiwxJcmaKpBYw+1YMV23i13Ich9rEbqMFFFkIJ1D /vmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :mime-version:dkim-signature; bh=U9jQiYwR3FRsJtNwD+Z0f3EV/KdZtUx4eXxemqoLUUk=; b=nXus2wK/2liJXiQto2pXPyiokh7bRxSwTJ3H7xZuwtIoFefJEubQAvzvOyqFd7h+Sj mmJw3+Z3moKHzKarMLbRuwuS6tjTnPfOAGScmtKfrxk5zKrMKbU0g7FSxUHsdKwX8O29 +L/RDb81CR2r9PUzEjEN9nU95fmMwZsfy+y6del9JU5xK2X3ELFqWnGgpGLUqpKgaXnP Riit7x4h2X8OhB2PIC5xd/4Vr4jN0IqQiJHV5163JUgCxfgBpCmyG4xnwqdKgJwMWtOq tuWLkZ+81Q0niKOOsJDlYY1Mfc+LnaaIzbahDx9X6yhmnqG8wY/9B/mHK5jBfZBGRWu5 9x+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lfCPmFDs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si27219625pgm.250.2019.01.26.04.06.19; Sat, 26 Jan 2019 04:06:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lfCPmFDs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728701AbfAZMGB (ORCPT + 99 others); Sat, 26 Jan 2019 07:06:01 -0500 Received: from mail-it1-f195.google.com ([209.85.166.195]:33343 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbfAZMGB (ORCPT ); Sat, 26 Jan 2019 07:06:01 -0500 Received: by mail-it1-f195.google.com with SMTP id m8so7028692itk.0 for ; Sat, 26 Jan 2019 04:06:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=U9jQiYwR3FRsJtNwD+Z0f3EV/KdZtUx4eXxemqoLUUk=; b=lfCPmFDsHlSCb+hxVaW9XjzDhjT7Wajl7+cMIJvPNEoZAXGJRIRJnfsB2fzww37MoG fyHV1ZLctVYl/uuh8V4ylHa064VViXgbtjxaB41YGH1Ne8eRqLwGEAjkaVvroCzddvCX LHg3o5YG3ZI8Jv7n37WJioTJujOpa6eF+Y2r4b0KDpJRX5JtpgluRt0MMAkVVv4N/4Mh lYwrlil0w8wo4cDCmHvD0EwQPTagn63lxtUH7Hsrpy1k3UCcGVH9aeDTvQKaNB0BK8/K zMAUH9eTvC5rl3SxnCKv3ahdhXLP5tSiZsDR/qOIgG2mB2P2+Oz+gS+repJVIbNkysSc Uv5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=U9jQiYwR3FRsJtNwD+Z0f3EV/KdZtUx4eXxemqoLUUk=; b=oWS6grYgHhbojJWs0nycfl3K5NmlvwI5baoJg16D2tYSpUpuU/2sClGuuK/f3d0sML +BrlxBA58kbpocmy2BEG+ZdZpz5e7MYb4W+UwZlNV4/Oty8zr7l/fQgYX4rU9McoUv2s K3tCKKNZ7gMGhCJLSi35TUDlFWHJ5l/xU1nd2WVUytKEN0hfRt13ho+shzdC1qdLwhaY qFJBez6kMMPzmRHPdyWA1bpWqh6Lno3DWr5HyLHAvpqZ1nXDxlAC0aU8hQ9596Abbii/ kFJO+mYUKqzykhdQBBHSYoc3yLqdQvYTuLFGQ4bZ1Y8qDPjsDLEtDmeZMl2OtvcTWcMe S0rg== X-Gm-Message-State: AJcUukdtTxXH0gr3pmfqeLuCZdimYsRtXnPeMnrkhoodQWmF7SEf9/87 WwEff59bWiTTs9DklFOOVeJqWc0T8vUXlh0j50AdQXVR X-Received: by 2002:a24:cb02:: with SMTP id u2mr5371562itg.87.1548504360275; Sat, 26 Jan 2019 04:06:00 -0800 (PST) MIME-Version: 1.0 From: Norbert Lange Date: Sat, 26 Jan 2019 13:05:49 +0100 Message-ID: Subject: Re: [RFC] Provide in-kernel headers for making it easy to extend the kernel To: linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I have a similar problem, which is caused by an attempt to separate the kernel installation from the rootfs. updates of the kernel should not affect the (read-only) rootfs or initramfs. For technical reasons I am unable to built all modules static. - have multiple kernels #K and rootfs installations #R without needing #R times #N module subdirectories. (think of fallback kernels/installations) - be able to use readonly rootfs, and need to regenerate it for new kernels. - ideally be as space efficient as possible I ended up embedding an initramfs in the kernel, but this has the annoying drawback of disabling the builtin init of the kernel so I needed to further add busybox and shellscripts just to get it to parse the cmdline and boot. I used a compressed squashfs for the kernel modules, further requiring a loop device. So the point I am trying to make, that there could be a better approach for my problem, like having the kernel expose a blockdevice in /proc/bundle.img (no need for a loopdevice). Maybe some more generic approach would cover both this issue as well as the problem with kernel headers on android. The /proc/kheaders.tgz file is very specific. (Well, I would be happy if there is a way to keep the kernels builtin init enabled, even if a custon initramfs is builtin)