Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp295607imm; Tue, 25 Sep 2018 22:01:38 -0700 (PDT) X-Google-Smtp-Source: ACcGV61kDGOfmvtzBMutEoSifeDEuV2yLi/zg4e1D3TZDVcCZfXDdmXwI0okiq2AuFaS+uUAlAIf X-Received: by 2002:a63:4f20:: with SMTP id d32-v6mr3815990pgb.231.1537938098914; Tue, 25 Sep 2018 22:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537938098; cv=none; d=google.com; s=arc-20160816; b=F7h8b3tLqjBOYZitL6q7KcaQaHVuFnb6yPDfIgtl/P+T8BVJADarojhpQEOnvzTu9a Rerv9dlfOpPyC7ySBS1dNn1PWhveZudjabpX5wqWW1gzNAq+KKzUaphEUj2m5jLW1kKG qwEhrXWytwS2TJQIWJSm6sA0CWiWcdP6Qx4aBdobkhzgehy5Zs8lO18HtvXFxT9ULtnd Eu9SHdPZYW33pFGuJBQgPgIM5ztq/B1YAVH0fwnUzqOlR7+sf3gzK6OFkO2ikXcKCcls 3B90Vnn4Z9rllwqV8aHx/xwyX6VhTtM3J+G/kXW8xKtBLSOkOkykdLPh3GxZh44gHgt+ 6Z9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=pdjBQDs8/RFeSpTKDZonPxhHI/WpAdo/Fk5awCAKy24=; b=qa19rh1SrAObqAIVPOLME/QmWs6THhGkRIM9+2FD1UUz2tW+R4KFtqCF2pwsRas3NH K5kmqAUcG7JXoDEQWlKyeLlYPu6A9Tc555r7g1bH+KSYFiXi43fugK+Llxu9PTD3IKf7 btGpwYGXTgtbpqr+VIQdCn5moUiIQueAhZp+hPSllFgMMLyiYSW7Uz/5QfDMgcee/9Kv a5IIZwrDjhfENT0/fM31iKQzpCBYWFrQnQ/HqWYJQlo/r0rdDfa9GqAtq/NtlS/XUdaf vXWXHXcK7yzYi0T4UQpEYIYQhdIvmIomhEaRp7msYKum56EB25AoHhk2dMnslGiHix+A kYgg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1-v6si4487028pla.103.2018.09.25.22.01.23; Tue, 25 Sep 2018 22:01:38 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726991AbeIZLMF (ORCPT + 99 others); Wed, 26 Sep 2018 07:12:05 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:53554 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726289AbeIZLME (ORCPT ); Wed, 26 Sep 2018 07:12:04 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: koike) with ESMTPSA id BA809263B51 From: Helen Koike To: dm-devel@redhat.com Cc: agk@redhat.com, snitzer@redhat.com, linux-kernel@vger.kernel.org, enric.balletbo@collabora.com, wad@chromium.org, linux-doc@vger.kernel.org, linux-lvm@redhat.com, kernel@collabora.com Subject: [PATCH 0/2] boot to a mapped device Date: Wed, 26 Sep 2018 02:00:45 -0300 Message-Id: X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series is reviving an old patchwork. Booting from a mapped device requires an initramfs. This series is allows for device-mapper targets to be configured at boot time for use early in the boot process (as the root device or otherwise). Example, the following could be added in the boot parameters. dm="lroot,,,rw, 0 4096 linear 98:16 0, 4096 4096 linear 98:32 0" root=/dev/dm-0 Enric Balletbo i Serra (1): dm ioctl: add a device mapper ioctl function. Will Drewry (1): init: add support to directly boot to a mapped device .../admin-guide/kernel-parameters.rst | 1 + .../admin-guide/kernel-parameters.txt | 3 + Documentation/device-mapper/dm-boot.txt | 63 +++ drivers/md/dm-ioctl.c | 50 ++ include/linux/device-mapper.h | 6 + init/Makefile | 1 + init/do_mounts.c | 1 + init/do_mounts.h | 10 + init/do_mounts_dm.c | 475 ++++++++++++++++++ 9 files changed, 610 insertions(+) create mode 100644 Documentation/device-mapper/dm-boot.txt create mode 100644 init/do_mounts_dm.c -- 2.19.0