[Pkg-sysvinit-devel] Bug#457783: Mount spufs on systems machines with the Cell CPU?
Petter Reinholdtsen
pere at hungry.com
Tue Dec 25 17:13:20 UTC 2007
Package: initscripts
Version: 2.86.ds1-38
Severity: wishlist
While browsing the ubuntu patch for sysvinit version
2.86.ds1-14.1ubuntu32, I came across a change to support spufs. The
change consist of changes in debian/changelog, debian/control
debian/initscripts/etc/init.d/mountkernfs.sh and
debian/initscripts/postinst.
I find documentation on the spufs on
<URL: http://www.mjmwired.net/kernel/Documentation/filesystems/spufs.txt >,
and it is related to the Cell microprocessor. I am not sure if this
mounting belong in the initscripts package, or if it should be part of
some Cell specific package. I am adding this bug report to track the
issue and collect feedback. I'm not sure how important it is to mount
the file system, nor what it is used for.
These are the changes implemented in Ubuntu.
sysvinit (2.86.ds1-14.1ubuntu19) gutsy; urgency=low
* initscripts:
- Create mountpoint for spufs on systems which support it.
- mountkernfs.sh: Mount spufs on systems which support it.
- Add dependency on passwd.
-- Matthias Klose <doko at ubuntu.com> Wed, 13 Jun 2007 15:27:10 +0200
debian/initscripts/etc/init.d/mountkernfs.sh
# Mount spufs, if Cell Broadband processor is detected
if mountpoint -q /proc && grep -qs '^cpu.*Cell' /proc/cpuinfo; then
mkdir -p /spu
domount spufs "" /spu -ogid=spu
fi
debian/initscripts/postinst
#
# Create mount point for spufs, and create spu system group
#
if mountpoint -q /proc && grep -qs '^cpu.*Cell' /proc/cpuinfo; then
if ! getent group spu >/dev/null; then
# the adduser package is priority important; cannot use addgroup
#addgroup --system spu
groupadd -K GID_MAX=1000 spu
fi
mkdir -p /spu
if ! mountpoint -q /spu; then
mount -t spufs -ogid=spu spufs /spu
fi
fi
debian/control
Add passwd to the depends of initscripts.
Happy hacking,
--
Petter Reinholdtsen
More information about the Pkg-sysvinit-devel
mailing list