[Pkg-sysvinit-devel] Bug#390339: upgrade of initscripts fails when
no tmpfs is mounted (sid)
Petter Reinholdtsen
pere at hungry.com
Sat Sep 30 21:52:40 UTC 2006
[Ingo Juergensmann]
> Apparently initscripts assumes the existance of tmpfs:
Yes, it does, to mount /dev/shm/ during boot among other things, and
recently to mount /lib/init/rw/. Is your kernel missing tmpfs
support? If this is the case, do this patch work? How is /dev/shm/
mounted on your system if tmpfs isn't supported?
Index: debian/initscripts/postinst
===================================================================
--- debian/initscripts/postinst (revision 993)
+++ debian/initscripts/postinst (working copy)
@@ -187,9 +187,11 @@
#
# Make sure packages needing a writable tmpfs available can depend on
-# initscripts version 2.86.ds1-27 or newer to get it.
+# initscripts version 2.86.ds1-27 or newer to get it. Skip it if the
+# system do not support tmpfs
#
if dpkg --compare-versions "$PREV_VER" lt "2.86.ds1-27" \
+ && grep -E -qs "tmpfs\$" /proc/filesystems \
&& [ ! -f /lib/init/rw/.ramfs ] && ! chrooted ; then
[ -f /etc/default/tmpfs ] && . /etc/default/tmpfs
Friendly,
--
Petter Reinholdtsen
More information about the Pkg-sysvinit-devel
mailing list