reading init/noinitramfs.c, which is what is compiled into the
kernel, this is what happens if you choose no initrd/initramfs support
whatsoever:

=====

/*
 * Create a simple rootfs that is similar to the default initramfs
 */
static int __init default_rootfs(void)
{
        int err;

        err = sys_mkdir("/dev", 0755);
        if (err < 0)
                goto out;

        err = sys_mknod((const char __user *) "/dev/console",
                        S_IFCHR | S_IRUSR | S_IWUSR,
                        new_encode_dev(MKDEV(5, 1)));
        if (err < 0)
                goto out;

        err = sys_mkdir("/root", 0700);
        if (err < 0)
                goto out;

        return 0;

out:
        printk(KERN_WARNING "Failed to create a rootfs\n");
        return err;
}

=====

  fair enough, but what is it that is currently mounted(?) that these
files/directories are being created in?   is this an initial tmpfs, or
what?  is there a line somewhere in init/main.c that corresponds to
where this initial mount point comes from?  thanks.

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to