mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
remove more /dev/hd references
This commit is contained in:
parent
07c44319f2
commit
6877cbd71f
1 changed files with 1 additions and 10 deletions
|
@ -351,18 +351,9 @@ get_media() {
|
|||
done
|
||||
|
||||
AUTOMOUNT="1"
|
||||
|
||||
# ide devices
|
||||
if [[ "${SET_MEDIA}" == "0" ]]; then
|
||||
for dev in $(ls ${block} | egrep '^hd'); do
|
||||
if [[ "$(cat ${block}/${dev}/device/media)" = "cdrom" ]]; then
|
||||
check_media
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [[ "${SET_MEDIA}" == "0" ]]; then
|
||||
# scsi/sata and other devices
|
||||
# ide/scsi/sata and other devices
|
||||
for dev in $(ls ${block} | egrep '^[sv]d|^sr|^scd|^sg'); do
|
||||
if ! [[ -e "${block}/${dev}/device/type" ]]; then
|
||||
#check virtio devices
|
||||
|
|
Loading…
Reference in a new issue