Re: when to remount sysfs ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 06, 2013 at 12:31:17AM +0800, ishare wrote:
>  Hi:
>    
>    As i know , when kernel is  booting , sysfs is mounted at /sys before the real root fs is mounted .
>   
>    Then , after the real root fs is mounted , when does i need to remount sysfs at the new /sys location ?
>   
>    I know the devfs is remounted by do_mount ("none", "/dev", "devfs", 0, "") , so how is that for sysfs?

 It depends on initramfs, for example switch_root(8) command from
 util-linux or "systemctl switch-root" (systemd reimplementation)
 moves /dev, /proc, /sys and /run to the new root by MS_MOVE mount(2)
 operation.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux