Messages in this thread | | | Date | Wed, 19 Nov 2003 15:19:30 +0100 | From | Olaf Hering <> | Subject | Re: Is initramfs freed after kernel is booted? |
| |
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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |