[Pkg-sysvinit-devel] Bug#390339: upgrade of initscripts fails when no tmpfs is mounted (sid)

Ingo Juergensmann ij at 2006.bluespice.org
Sun Oct 1 12:00:23 UTC 2006


On Sat, Sep 30, 2006 at 11:52:40PM +0200, Petter Reinholdtsen wrote:

> > 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?

Yes. 

| zgrep TMPFS /proc/config.gz
| # CONFIG_TMPFS is not set

>  If this is the case, do this patch work?  How is /dev/shm/
> mounted on your system if tmpfs isn't supported?

It's not mounted at all: 

| muaddib:/usr/src# zgrep SHM /proc/config.gz
| CONFIG_SHMEM=y
| # CONFIG_TINY_SHMEM is not set
| muaddib:/usr/src# grep shm /etc/fstab
| muaddib:/usr/src#  

> Index: debian/initscripts/postinst
> ===================================================================
>  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

With that patch sh /var/lib/dpkg/info/initscripts.postinst is running
without complains, but note that I've commented the mount line out after I
reported that bug.  

-- 
Ciao...                //        Fon: 0381-2744150 
      Ingo           \X/         SIP: 2744150 at sipgate.de

gpg pubkey: http://www.juergensmann.de/ij/public_key.asc




More information about the Pkg-sysvinit-devel mailing list