Bug#522319: assumes swapfiles are directly accessible

2009-08-24 Thread Alan Jenkins

> /var/swap is there but uswsusp runs from inside a chroot. It shouldn't
> assume swap is going to be directly accessible when it is a file (for a
> dev I guess it's fine since /dev has to be bind-mounted anyway).
>
> S'està configurant uswsusp (0.8-1.1+b1) ...
> stat: ha fallat stat() sobre /var/swap: El fitxer o directori no existeix
> dpkg: s'ha produït un error en processar uswsusp (--configure):
> el subprocés post-installation script retornà el codi d'eixida d'error 1
> S'han trobat errors en processar:
> uswsusp

Do you have any more specific suggestions as to how this would work, or 
a pointer on why this is a grave issue?


It seems reasonable to expect that the swapfile can be accessed as 
listed in /etc/fstab.  The problem isn't really unique to uswsusp; e.g. 
"swapoff -a; swapon -a" isn't going to work either.


You already have to do a bit of namespace manipulation and careful 
thinking.  You can bind mount individual files.  What's wrong with 
adding /var/swap to the list of things you have to bind-mount?


Regards
Alan


Bug#522319: assumes swapfiles are directly accessible

2009-04-02 Thread Robert Millan
Package: uswsusp
Version: 0.8-1.1+b1
Severity: grave

/var/swap is there but uswsusp runs from inside a chroot.  It shouldn't
assume swap is going to be directly accessible when it is a file (for a
dev I guess it's fine since /dev has to be bind-mounted anyway).

S'està configurant uswsusp (0.8-1.1+b1) ...
stat: ha fallat stat() sobre /var/swap: El fitxer o directori no existeix
dpkg: s'ha produït un error en processar uswsusp (--configure):
 el subprocés post-installation script retornà el codi d'eixida d'error 1
S'han trobat errors en processar:
 uswsusp

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages uswsusp depends on:
ii  debconf [debconf-2.0]1.5.26  Debian configuration management sy
ii  libc62.9-6   GNU C Library: Shared libraries
ii  libdirectfb-1.2-01.2.7-2 direct frame buffer graphics - sha
ii  libgcc1  1:4.3.3-5   GCC support library
ii  libgcrypt11  1.4.4-2 LGPL Crypto library - runtime libr
ii  libglib2.0-0 2.20.0-2The GLib library of C routines
ii  libgpg-error01.6-1   library for common error values an
ii  liblzo2-22.03-1  data compression library
ii  libpci3  1:3.1.2-3   Linux PCI Utilities (shared librar
ii  libsplashy1  0.3.13-3+b2 Library to draw splash screen on b
ii  libx86-1 1.1+ds1-2   x86 real-mode library

Versions of packages uswsusp recommends:
ii  initramfs-tools   0.93.1 tools for generating an initramfs
ii  mount 2.13.1.1-1 Tools for mounting and manipulatin

Versions of packages uswsusp suggests:
pn  splashy(no description available)

-- debconf information excluded



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org