--- trunk/mkinitrd-magellan/livecd/linuxrc.sh 2011/09/07 17:45:14 1514 +++ trunk/mkinitrd-magellan/livecd/linuxrc.sh 2012/04/02 11:39:05 1792 @@ -70,7 +70,16 @@ # mount essential filesystems mount -t proc proc /proc mount -t sysfs sysfs /sys -mount -t tmpfs tmpfs /dev -o rw,mode=0644,size=1024 +if [[ -z $(grep '[[:space:]]/dev[[:space:]]' /proc/mounts | cut -d ' ' -f2) ]] +then + # many video drivers needed exec access + fstype=ramfs + # tmpfs was suggested by Greg Kroah-Hartman + [[ $(grep '[[:space:]]tmpfs' /proc/filesystems | cut -d $'\t' -f2) = tmpfs ]] && fstype=tmpfs + # mount devtmpfs if supported + [[ $(grep '[[:space:]]devtmpfs' /proc/filesystems | cut -d $'\t' -f2) = devtmpfs ]] && fstype=devtmpfs + mount -t ${fstype} dev /dev -o exec,nosuid,mode=0755,size=10M +fi # install all busybox applets busybox --install -s