slitaz-tools rev 273
slitaz-installer: ensure /dev/ present in TARGET_DEV
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 21 07:32:37 2008 +0000 (2008-11-21) |
parents | f90f05c43654 |
children | 682760cabf36 |
files | installer/slitaz-installer |
line diff
1.1 --- a/installer/slitaz-installer Sun Oct 19 09:05:25 2008 +0000 1.2 +++ b/installer/slitaz-installer Fri Nov 21 07:32:37 2008 +0000 1.3 @@ -173,6 +173,9 @@ 1.4 # Check if specified device exists in /proc/partitions. 1.5 DEV_NAME=${TARGET_DEV#/dev/} 1.6 if cat /proc/partitions | grep -q $DEV_NAME; then 1.7 + if [ "$DEV_NAME" = "$TARGET_DEV" ]; then 1.8 + TARGET_DEV="/dev/$DEV_NAME" 1.9 + fi 1.10 echo "ask_for_target_dev: $TARGET_DEV" >>$LOG 1.11 else 1.12 ERROR_MSG="Partition \Z2$TARGET_DEV\Zn doesn't exist."