[Pkg-sysvinit-devel] Bug#623934: initscripts: chmod: changing permissions of `tmp': Read-only file system

Sven Joachim svenjoac at gmx.de
Sun Apr 24 15:21:37 UTC 2011

Package: initscripts
Version: 2.88dsf-13.4
Severity: normal

The following code in /etc/init.d/mountkernfs.sh is flawed and leads to
an error message from chmod:

| 	# Mount /tmp as tmpfs if enabled.
| 	[ "${TMP_SIZE:=$TMPFS_SIZE}" ] && TMP_OPT=",size=$TMP_SIZE"
| 	[ "${TMP_MODE:=$TMPFS_MODE}" ] && TMP_OPT="$TMP_OPT,mode=$TMP_MODE"
| 	if [ yes = "$RAMTMP" ] ; then
| 		domount tmpfs shmfs /tmp tmpfs "-onodev,nosuid$TMP_OPT"
| 	else
| 		if [ rw = "$rootmode" ]; then
| 			chmod "$TMP_MODE" /tmp
| 		fi
| 	fi

The root filesystem is read-only while mountkernfs.sh runs, no matter
what the value of $rootmode says, and /tmp does not live on a separate
filesystem (yet).

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)

Kernel: Linux
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initscripts depends on:
ii  coreutils                   8.5-1        GNU core utilities
ii  debianutils                 3.4.4        Miscellaneous utilities specific t
ii  libc6                       2.11.2-11    Embedded GNU C Library: Shared lib
ii  lsb-base                    3.2-27       Linux Standard Base 3.2 init scrip
ii  mount                       2.17.2-9.1   Tools for mounting and manipulatin
ii  sysv-rc                     2.88dsf-13.2 System-V-like runlevel change mech
ii  sysvinit-utils              2.88dsf-13.2 System-V-like utilities

Versions of packages initscripts recommends:
ii  e2fsprogs                     1.41.12-2  ext2/ext3/ext4 file system utiliti
ii  psmisc                        22.13-1    utilities that use the proc file s

initscripts suggests no packages.

-- no debconf information

More information about the Pkg-sysvinit-devel mailing list