Re: Is initramfs freed after kernel is booted?
From: Olaf Hering
Date: Wed Nov 19 2003 - 09:21:06 EST
On Mon, Nov 17, viro@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/