[arch-projects] [initscripts][PATCH 4/4] avoid check for /sys/block
thomas at archlinux.org
Fri Jun 8 11:11:49 EDT 2012
Am 08.06.2012 16:58, schrieb Dave Reisner:
> This is a deprecated path in sysfs, and the check is illogical.
> -[[ $USELVM = [Yy][Ee][Ss] && -x $(type -P lvm) && -d /sys/block ]] &&
> +[[ $USELVM = [Yy][Ee][Ss] && -x $(type -P lvm) ]] &&
History lesson: Back when 2.4 was still supported, we would never know
if sysfs was mounted. This check is the "/sys contains something useful,
thus sysfs is mounted" check.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 900 bytes
Desc: OpenPGP digital signature
More information about the arch-projects