What is purpose of /init

richard -rw- weinberger richard.weinberger at gmail.com
Wed Aug 1 19:54:30 EDT 2012


On Wed, Aug 1, 2012 at 4:03 PM, Rahul Bedarkar <rpal143 at gmail.com> wrote:
> Hi,
>
> I just saw contents of /init on my system.
>
> #!/bin/sh
> # devtmpfs does not get automounted for initramfs
> /bin/mount -t devtmpfs devtmpfs /dev
> exec 0</dev/console
> exec 1>/dev/console
> exec 2>/dev/console
> exec /sbin/init $*
>
> Can someone explain what is meant for ?

It's a hack to get devtmpfs mounted before init starts...
Looks like your distro does not know CONFIG_DEVTMPFS_MOUNT. :-)

-- 
Thanks,
//richard



More information about the Kernelnewbies mailing list