You are correct, I hadn't enabled it.jamesbond wrote:Well It wasn't obvious from the code. Perhaps it's time to upgrade I'm quite sure it supports type because in 1.19.4 it does show type. Perhaps you didn't enable a compile-time option.Ibidem wrote:With busybox 1.21.0, it will produce no output (tested with /dev/sda4)
This is proper behavior, since that device has no UUID.
Also, it seems LABEL is now supported. TYPE, however, isn't.
Probably.Hmm...I wonder if an mdev hook could use blkid for /dev/disks/by-*
It does, in util-linux/volume_id. That's what my patch is for to make a standalone executable out of these filesystem detection code.And I believe busybox has code to detect filesystems, but good luck finding it.
TYPE is conditional.
LABEL support, however, was present by 2008 according to the git log (one commit from just before 1.13.0 was tagged shows sample output with LABEL included)...
Edit: Whoops, you meant the change of behavior when the device specified doesn't have a UUID. That would be this commit:
Code: Select all
commit e8cfc3f693e8a0cbfc489564c76e00c074f63066
Author: Denys Vlasenko
Date: Sat Mar 3 15:09:07 2012 +0100
blkid: if parameters are given, do not scan /dev
Signed-off-by: Denys Vlasenko
Also, here's something I'd forgotten about.
Code: Select all
#!/bin/busybox ash
#Assume $MDEV is the device name
#Make /dev/disk/by-* symlinks
if [ -z "$MDEV" ]
then
echo 'Use from mdev/conf'; env >>/var/log/mdev-blk.log
# This expands to "export" when no output, or to a sequence of assignments
else
export `blkid "/dev/$MDEV" |cut -d : -f 2` >/dev/null|| true
[ -n "$LABEL" ] && mkdir -p /dev/disk/by-label && \
ln -sf "/dev/$MDEV" "/dev/disk/by-label/`echo $LABEL|tr -d '"'`" || true
[ -n "$UUID" ] && mkdir -p /dev/disk/by-uuid && \
ln -sf "/dev/$MDEV" "/dev/disk/by-uuid/`echo $UUID|tr -d '"'`" || true
exec >>/var/log/mdev-blk.log
echo "blkln $@"
env
echo ===
fi