Fix CD-ROM mounting
klibc-udev hasn't created cdrom symlinks in a while, we have to look through kernel names ourselves. Signed-off-by: Simo Leone <simo@archlinux.org>
This commit is contained in:
parent
dee0d28205
commit
7f1a141136
@ -43,7 +43,7 @@ run_hook ()
|
||||
|
||||
/bin/modprobe -q isofs >/dev/null 2>&1
|
||||
msg ":: Scanning cd drives..."
|
||||
for cdrom in /dev/cd/*; do
|
||||
for cdrom in /dev/hd[a-z] /dev/sr[0-9]* /dev/scd[a-z] /dev/sg[0-9]*; do
|
||||
if mount -r -t iso9660 "${cdrom}" ${bootmnt} >/dev/null 2>&1; then
|
||||
if [ -e "${bootmnt}/archiso.sqfs" ]; then
|
||||
found=1
|
||||
|
Loading…
Reference in New Issue
Block a user