3 _UDEV_DAEMON=`udev_daemon`
10 ROOT_IMAGE="rootfs.img"
15 if [ -z "$bootparam_root" -o "$bootparam_root" = "/dev/ram0" ]; then
16 echo "Waiting for removable media..."
17 udevadm trigger --action=add
19 echo "Mounted filesystems"
24 for i in `ls /run/media 2>/dev/null`; do
25 if [ -f /run/media/$i/$ROOT_IMAGE ] ; then
29 elif [ -f /run/media/$i/isolinux/$ROOT_IMAGE ]; then
36 if [ "$found" = "yes" ]; then
39 # don't wait for more than $shelltimeout seconds, if it's set
40 if [ -n "$shelltimeout" ]; then
41 echo " " $(( $shelltimeout - $C ))
42 if [ $C -ge $shelltimeout ]; then
44 echo "Mounted filesystems"
46 echo "Available block devices"
48 msg "Cannot find $ROOT_IMAGE file in /run/media/* , dropping to a shell "
51 udevadm trigger --action=add
53 echo "Mounted filesystems"
59 killall -9 "${_UDEV_DAEMON##*/}" 2>/dev/null
60 # The existing rootfs module has no support for rootfs images. Assign the rootfs image.
61 bootparam_root="/run/media/$ROOT_DISK/$ISOLINUX/$ROOT_IMAGE"
64 if [ "$bootparam_LABEL" != "boot" -a -f /init.d/$bootparam_LABEL.sh ] ; then
65 if [ -f /run/media/$ROOT_DISK/$ISOLINUX/$ROOT_IMAGE ] ; then
66 ./init.d/$bootparam_LABEL.sh $ROOT_DISK/$ISOLINUX $ROOT_IMAGE $video_mode $vga_mode $console_params
68 msg "Could not find $bootparam_LABEL script"
72 # If we're getting here, we failed...
73 msg "Target $bootparam_LABEL failed"