From: Roger Leigh <rleigh@codelibre.net>
To: util-linux@vger.kernel.org
Subject: [PATCH] Add mount option for initramfs
Date: Fri, 16 Dec 2011 23:15:38 +0000 [thread overview]
Message-ID: <20111216231538.GR17458@codelibre.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]
Hi,
I've attached a trivial patch for an "initramfs" mount option. The
purpose of this patch is that selected mounts in /etc/fstab can be
identified for mounting in the generated initramfs. This will
permit e.g. mounting of a separate /etc and /usr and any other
admin-configured filesystems prior to init starting.
Uses: encrypted /etc and unencrypted / and /usr
separate /usr mounted with rootfs
- this means libraries and binaries on /usr are available
from the initramfs onward, solving a whole host of
problems with e.g. nss and pam modules having dependent
libs in /usr, etc., which aren't available during boot.
Feel free to change the name to something more generic; this is
intended for use with Debian's initramfs-tools initramfs
generator, but may have potential for cross-distribution use.
Regards,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
[-- Attachment #2: 0001-mount-Allow-initramfs-dummy-mount-option.patch --]
[-- Type: text/x-diff, Size: 730 bytes --]
>From e588ddb89eb3d8b63291dd7cdad5c134fd221a2d Mon Sep 17 00:00:00 2001
From: Roger Leigh <rleigh@debian.org>
Date: Fri, 16 Dec 2011 23:07:35 +0000
Subject: [PATCH] mount: Allow initramfs dummy mount option
---
mount/mount.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/mount/mount.c b/mount/mount.c
index 9b444c4..05e82fa 100644
--- a/mount/mount.c
+++ b/mount/mount.c
@@ -202,6 +202,7 @@ static const struct opt_map opt_map[] = {
{ "nostrictatime", 0, 1, MS_STRICTATIME }, /* kernel default atime */
#endif
{ "nofail", 0, 0, MS_COMMENT}, /* Do not fail if ENOENT on dev */
+ { "initramfs", 0, 0, MS_COMMENT}, /* Mount filesystem in initramfs */
{ NULL, 0, 0, 0 }
};
--
1.7.7.3
next reply other threads:[~2011-12-16 23:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-16 23:15 Roger Leigh [this message]
2011-12-17 10:15 ` [PATCH] Add man page entry for initramfs Roger Leigh
2011-12-20 13:14 ` [PATCH] Add mount option " Karel Zak
2011-12-19 13:40 ` Roger Leigh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111216231538.GR17458@codelibre.net \
--to=rleigh@codelibre.net \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.