[lkml]   [2003]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Is initramfs freed after kernel is booted?
 On Mon, Nov 17, 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!

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:58    [W:0.059 / U:3.932 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site