diff options
Diffstat (limited to 'src/os-plugins/plugins/emufe/XX_emufe.sh')
-rw-r--r-- | src/os-plugins/plugins/emufe/XX_emufe.sh | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/src/os-plugins/plugins/emufe/XX_emufe.sh b/src/os-plugins/plugins/emufe/XX_emufe.sh index abde18dd..57db6394 100644 --- a/src/os-plugins/plugins/emufe/XX_emufe.sh +++ b/src/os-plugins/plugins/emufe/XX_emufe.sh @@ -36,26 +36,29 @@ if [ -e /initramfs/plugin-conf/emufe.conf ]; then testmkd ${PLUGINCONFDIR} cp /mnt/${PLUGINDIR}/run-virt.include ${PLUGINCONFDIR} cp /initramfs/plugin-conf/emufe.conf ${PLUGINCONFDIR} - fi - ############################################################################ - # emulator stuff provisioning: two scenarios - # * VM images in /usr/share/emufe - then simply link - # * VM images via additional mount (mount source NFS, NBD, ...) + # allow certain memory access for SheepShaver emulator + echo -e "# added by emufe plugin\nvm.mmap_min_addr = 0" >>/mnt/etc/sysctl.conf - # get source of emufe image server (get type, server and path) - if strinstr "/" "${emufe_imagesrc}" ; then - vmimgprot=$(uri_token ${emufe_imagesrc} prot) - vmimgserv=$(uri_token ${emufe_imagesrc} server) - vmimgpath="$(uri_token ${emufe_imagesrc} path)" - fi - if [ -n "${vmimgserv}" -a -n ${vmimgpath} -a -n ${vmimgprot} ] ; then - mnttarget=${VIRTDIR}/emulation - # mount the emufe image source readonly (ro) - fsmount ${vmimgprot} ${vmimgserv} ${vmimgpath} ${mnttarget} ro - else - [ $DEBUGLEVEL -gt 1 ] && error " * Incomplete information in variable \ + ############################################################################ + # emulator stuff provisioning: two scenarios + # * VM images in /usr/share/emufe - then simply link + # * VM images via additional mount (mount source NFS, NBD, ...) + + # get source of emufe image server (get type, server and path) + if strinstr "/" "${emufe_imagesrc}" ; then + vmimgprot=$(uri_token ${emufe_imagesrc} prot) + vmimgserv=$(uri_token ${emufe_imagesrc} server) + vmimgpath="$(uri_token ${emufe_imagesrc} path)" + fi + if [ -n "${vmimgserv}" -a -n ${vmimgpath} -a -n ${vmimgprot} ] ; then + mnttarget=${VIRTDIR}/emulation + # mount the emufe image source readonly (ro) + fsmount ${vmimgprot} ${vmimgserv} ${vmimgpath} ${mnttarget} ro + else + [ $DEBUGLEVEL -gt 1 ] && error " * Incomplete information in variable \ ${emufe_imagesrc}." nonfatal + fi fi else [ $DEBUGLEVEL -gt 0 ] && echo " * Configuration of 'emufe' plugin failed" |