From: Olaf Hering <olh@suse.de>
To: viro@parcelfarce.linux.theplanet.co.uk
Cc: Andrey Borzenkov <arvidjaar@mail.ru>,
Chris Friesen <cfriesen@nortelnetworks.com>,
"Kevin P. Fleming" <kpfleming@backtobasicsmgmt.com>,
Jeff Garzik <jgarzik@pobox.com>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Is initramfs freed after kernel is booted?
Date: Wed, 19 Nov 2003 15:19:30 +0100 [thread overview]
Message-ID: <20031119141930.GA24228@suse.de> (raw)
In-Reply-To: <20031117191513.GA24159@parcelfarce.linux.theplanet.co.uk>
On Mon, Nov 17, viro@parcelfarce.linux.theplanet.co.uk wrote:
> Alternatively, you could
> mkdir /root
> mount final root on /root
>
> chdir("/root");
> mount("/", "initramfs", NULL, MS_BIND, NULL);
Does this bind mount really work?
static struct super_block *rootfs_get_sb(struct file_system_type *fs_type,
int flags, const char *dev_name, void *data)
{
return get_sb_nodev(fs_type, flags|MS_NOUSER, data, ramfs_fill_super);
}
static int graft_tree(struct vfsmount *mnt, struct nameidata *nd)
{
if (mnt->mnt_sb->s_flags & MS_NOUSER)
return -EINVAL;
...
--
USB is for mice, FireWire is for men!
sUse lINUX ag, nÜRNBERG
next prev parent reply other threads:[~2003-11-19 14:19 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-16 17:09 Is initramfs freed after kernel is booted? Andrey Borzenkov
2003-11-16 19:51 ` Jeff Garzik
2003-11-17 14:39 ` Chris Friesen
2003-11-17 15:36 ` "Andrey Borzenkov"
2003-11-17 15:39 ` Chris Friesen
2003-11-17 15:46 ` Jeff Garzik
2003-11-17 18:32 ` Bryan O'Sullivan
2003-11-17 15:47 ` Kevin P. Fleming
2003-11-17 16:06 ` Chris Friesen
2003-11-17 16:25 ` Erik Mouw
2003-11-17 17:25 ` viro
2003-11-17 17:47 ` viro
2003-11-17 17:50 ` Chris Friesen
2003-11-17 18:03 ` viro
2003-11-17 18:33 ` Andrey Borzenkov
2003-11-17 19:15 ` viro
2003-11-19 14:19 ` Olaf Hering [this message]
2003-11-19 15:07 ` Hannes Reinecke
2003-11-25 18:26 ` Manuel Estrada Sainz
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=20031119141930.GA24228@suse.de \
--to=olh@suse.de \
--cc=arvidjaar@mail.ru \
--cc=cfriesen@nortelnetworks.com \
--cc=jgarzik@pobox.com \
--cc=kpfleming@backtobasicsmgmt.com \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@parcelfarce.linux.theplanet.co.uk \
/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.