summarylogtreecommitdiffstats
path: root/01-uuid
blob: 204d97723e2cea8182892a041af4cb10ca8acc00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
[ "$DEVNAME" ] && [ "$DEVTYPE" = "disk" -o "$DEVTYPE" = "partition" ] && /bin/sh -c '
	test -d /dev/disk || mkdir -p /dev/disk
	export $(blkid --info -p -o udev /dev/$DEVNAME | grep UUID)
	[ $ID_FS_UUID ] && {
		test -d /dev/disk/by-uuid || mkdir -p /dev/disk/by-uuid
		ln -sf /dev/$DEVNAME /dev/disk/by-uuid/$ID_FS_UUID
	}
	[ $ID_PART_ENTRY_UUID ] && {
		test -d /dev/disk/by-partuuid || mkdir -p /dev/disk/by-partuuid
		ln -sf /dev/$DEVNAME /dev/disk/by-partuuid/$ID_PART_ENTRY_UUID
	}
'