[arch-projects] [initscripts][PATCH 4/4] avoid check for /sys/block

Thomas Bächler 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...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20120608/4fec0cda/attachment.asc>


More information about the arch-projects mailing list