From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Willem Stumpel Subject: Re: cannot map temp file pool Date: Wed, 20 Sep 2006 19:03:53 +0200 Message-ID: <45117479.7040809@my.home> References: <450FE24A.30906@my.home> <450FEFA0.5070800@modsoftsys.com> <45100BB0.2020905@my.home> <45101F74.9050107@sbcglobal.net> <45103310.2040507@my.home> <45104207.1070603@my.home> <4511104F.1090207@my.home> <45116A88.2020909@sbcglobal.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: In-reply-to: <45116A88.2020909@sbcglobal.net> Sender: linux-msdos-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: Mike McCarty Cc: dosemu Mike McCarty wrote: > Jan Willem Stumpel wrote: > >> Bart Oldeman wrote: >> >> >>> Anyway. another way to work around it is to change $_mapping. >>> If you set it to "mapashm" or "mapfile" then dosemu should work >>> again. >> >> >> Thanks a lot. This worked. > > > GREAT! But, why did it fail in the first place? The immediate reason has been pointed out by Bart. A change in the Debian initscripts package. The latest version in which dosemu worked by default is initscripts_2.86.ds1-15_i386.deb. Last Saturday, this was replaced by initscripts_2.86.ds1-20_i386.deb. So the breakage seems to be Debian-specific (for now). One of the "initscripts" is /etc/init.d/mountdevsubfs.sh, which contains line like (version 15, does not break dosemu) SHM_OPT= [ "${SHM_SIZE:=$TMPFS_SIZE}" ] && SHM_OPT="-osize=$SHM_SIZE" domount tmpfs shmfs /dev/shm $SHM_OPT ("improved" version 20, breaks dosemu) SHM_OPT= [ "${SHM_SIZE:=$TMPFS_SIZE}" ] && SHM_OPT=",size=$SHM_SIZE" domount tmpfs shmfs /dev/shm -onoexec,nosuid,nodev$SHM_OPT This must have been done for security reasons, although I have no clue about (the severity of) the security issues which are at stake here. I do not know why the Debian maintainer of dosemu himself did not tweak to this breakage. Or maybe he did, and the Debian version of dosemu now has a different $_mapping default. Haven't checked this yet. Though a Debian user, I've been compiling my own dosemu from source for years, not liking Debian's dosemu package (see my "dosemu for dummies" page). Regards, Jan