All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add mount option for initramfs
@ 2011-12-16 23:15 Roger Leigh
  2011-12-17 10:15 ` [PATCH] Add man page entry " Roger Leigh
  2011-12-20 13:14 ` [PATCH] Add mount option " Karel Zak
  0 siblings, 2 replies; 4+ messages in thread
From: Roger Leigh @ 2011-12-16 23:15 UTC (permalink / raw)
  To: util-linux

[-- 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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-12-19 13:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-16 23:15 [PATCH] Add mount option for initramfs Roger Leigh
2011-12-17 10:15 ` [PATCH] Add man page entry " Roger Leigh
2011-12-20 13:14 ` [PATCH] Add mount option " Karel Zak
2011-12-19 13:40   ` Roger Leigh

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.