Re: [PATCH] udev: Add udev rules to create by-partuuid for md device

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

 



On Tue, Mar 19 2019, Liwei Song wrote:

> This rules will create link under /dev/disk/by-partuuid/ for
> MD devices partition, with which will support specify
> root=PARTUUID=XXX to boot rootfs.
>
> Signed-off-by: Liwei Song <liwei.song@xxxxxxxxxxxxx>
> ---
>  udev-md-raid-arrays.rules | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/udev-md-raid-arrays.rules b/udev-md-raid-arrays.rules
> index c95ec7b1e4a9..5b99d5873ade 100644
> --- a/udev-md-raid-arrays.rules
> +++ b/udev-md-raid-arrays.rules
> @@ -30,6 +30,7 @@ IMPORT{builtin}="blkid"
>  OPTIONS+="link_priority=100"
>  OPTIONS+="watch"
>  ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
> +ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_PART_ENTRY_UUID}=="?*", SYMLINK+="disk/by-partuuid/$env{ID_PART_ENTRY_UUID}"
>  ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
>  
>  ENV{MD_LEVEL}=="raid[1-9]*", ENV{SYSTEMD_WANTS}+="mdmonitor.service"
> -- 
> 2.7.4

This doesn't make any sense to me.
Presumably you want the by-partuuid link to point to a partition in the
array?
But this code will create a link pointing to the array.

Maybe I'm confused, but I need a more detailed explanation before this
can make sense to me.

Thanks,
NeilBrown

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux