Bug#558823: /dev/disk/by-uuid not populated in d-i with LVM

Martin Michlmayr tbm at cyrius.com
Fri Jul 9 13:29:44 UTC 2010


I just verified that this is still a problem with the daily images:
/dev/disk/by-uuid is not populated for LVM/DM partitions.  Adding the
60-persistent-storage-dm.rules file from dmsetup to d-i didn't work
for me, but this simplified 60-persistent-storage-dm.rules does:

SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}"
ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}"

IMPORT{program}="/sbin/blkid -o udev -p $tempnode"
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_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"

-- 
Martin Michlmayr
http://www.cyrius.com/





More information about the pkg-mdadm-devel mailing list