diff options
author | Tobias Powalowski <tpowa@archlinux.org> | 2006-05-08 10:38:17 +0200 |
---|---|---|
committer | Tobias Powalowski <tpowa@archlinux.org> | 2006-05-08 10:38:17 +0200 |
commit | de0eddc73b5e720d6e6214c38758962f38a8d4a2 (patch) | |
tree | 7f23d2d9a8782850320c55a9da820e86eca4e29d | |
parent | dfdb10cd264d9e928908cb13104041fd4c00d7eb (diff) | |
download | mkinitcpio-de0eddc73b5e720d6e6214c38758962f38a8d4a2.tar.gz mkinitcpio-de0eddc73b5e720d6e6214c38758962f38a8d4a2.tar.xz |
' added error message for missing permission on blockdevices'
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@83 880c04e9-e011-0410-abf7-b926e227c9cd
-rw-r--r-- | install/autodetect | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/install/autodetect b/install/autodetect index 88c26eb..ea2393a 100644 --- a/install/autodetect +++ b/install/autodetect @@ -8,7 +8,11 @@ install () -e "/usb/" -e "/ide/" -e "/ieee1394/" -e "/cdrom"\ -e "/net/" -e "/pcmcia") $(cat /proc/filesystems | grep -v nodev) \ - $([ -e /sbin/mdadm ] && mdadm -E -s /dev/hd* /dev/sd* | awk -Flevel= '{print $2}' | awk '{print $1}') " + $([ -e /sbin/mdadm ] && mdadm -E -s /dev/hd* /dev/sd* /dev/rd/* /dev/ida/* \ + /dev/cciss/* /dev/ataraid/* | awk -Flevel= '{print $2}' | awk '{print $1}') " + + [ -e /sbin/mdadm ] && if ! [ $UID -eq 0 -o "$(groups | grep disk)" != "" ]; then \ + err "User does not have proper permissions to read superblocks, raid modules are not detected" ;fi for m in $AUTODETECT; do modname="$(basename ${m%%\.ko})" |