Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDiskNameByPartName ¶
GetDiskNameByPartName returns disk name /dev/sda for part name /dev/sda1 if exists inside we resolve symlink for dev for example /dev/sda9 -> /sys/class/block/mmcblk1p9 -> ../../devices/platform/emmc2bus/fe340000.mmc/mmc_host/mmc1/mmc1:0001/block/mmcblk1/mmcblk1p9 and check if the last part of the path is device, i.e. exists in /sys/block, if not, we use the part of the path before the last part
func GetRootDevice ¶
GetRootDevice returns device EVE booted from, i.e. /dev/sda
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.