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
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ run_hook ()
|
||||||
|
|
||||||
/bin/modprobe -q isofs >/dev/null 2>&1
|
/bin/modprobe -q isofs >/dev/null 2>&1
|
||||||
msg ":: Scanning cd drives..."
|
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 mount -r -t iso9660 "${cdrom}" ${bootmnt} >/dev/null 2>&1; then
|
||||||
if [ -e "${bootmnt}/archiso.sqfs" ]; then
|
if [ -e "${bootmnt}/archiso.sqfs" ]; then
|
||||||
found=1
|
found=1
|
||||||
|
|
Loading…
Add table
Reference in a new issue