Bug#572729: Add support to UUID based identification

2013-07-14 Thread Rodolfo García Peñas
Hi,

I have the patch ready here. I will upload it in the next uswsusp version:

Thanks a lot for your report.

kix
-- 
Rodolfo García Peñas kix
k...@debian.org

kix@kentin:~/src/uswsusp/debian$ diff 
1.0+20120915-3/uswsusp-1.0+20120915/debian/uswsusp.config 
1.0+20120915-4-dev/uswsusp-1.0+20120915/debian/uswsusp.config 
25a26,47
 # This function returns the full path in /dev/disk/by-uuid
 # for a given /dev device. If not found, returns the /dev device.
 function dev_to_uuid
 {
   local link
   local path
   local uuid
 
   [ -d /dev/disk/by-uuid ] || return
 
   uuid=$tmpswap
   for path in /dev/disk/by-uuid/*; do
   link=$(readlink -f $path)
   if [ $link = $tmpswap ]; then
   uuid=${path}
   break;
   fi
   done
 
   tmpswap=$uuid
 }
 
30a53
   tmpswap=
38,39c61,63
   for i in `sort -nr -k 3 /proc/swaps | awk '$2!=Type '$NO_FILE' 
{print $1}'`; do
   SWAPLIST=${SWAPLIST}${KOMMA}${i}
---
   for tmpswap in `sort -nr -k 3 /proc/swaps | awk '$2!=Type 
 '$NO_FILE' {print $1}'`; do
   dev_to_uuid
   SWAPLIST=${SWAPLIST}${KOMMA}${tmpswap}
42c66
   SWAPFIRST=${i}
---
   SWAPFIRST=${tmpswap}
kix@kentin:~/src/uswsusp/debian$


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



Bug#572729: Add support to UUID based identification

2010-03-10 Thread Josh Triplett
Package: uswsusp
Severity: normal

uswsusp already supports UUID-based identification for the swap
partition:

~$ grep 'resume device' /etc/uswsusp.conf
resume device = /dev/disk/by-uuid/68d7fc35-dda5-4f60-83ac-56fb77d877d4

I think uswsusp should use UUIDs by default.

- Josh Triplett

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

Kernel: Linux 2.6.33-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages uswsusp depends on:
ii  debconf [debconf- 1.5.28 Debian configuration management sy
ii  libc6 2.10.2-6   Embedded GNU C Library: Shared lib
ii  libdirectfb-1.2-0 1.2.10really1.2.8-1+b1 direct frame buffer graphics - sha
ii  libgcc1   1:4.4.3-3  GCC support library
ii  libgcrypt11   1.4.5-2LGPL Crypto library - runtime libr
ii  libglib2.0-0  2.22.4-1   The GLib library of C routines
ii  liblzo2-2 2.03-2 data compression library
ii  libpci3   1:3.1.7-1  Linux PCI Utilities (shared librar
ii  libsplashy1   0.3.13-5.1 Library to draw splash screen on b
ii  libx86-1  1.1+ds1-6  x86 real-mode library

Versions of packages uswsusp recommends:
ii  initramfs-tools   0.93.4 tools for generating an initramfs
ii  mount 2.16.2-0   Tools for mounting and manipulatin

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

-- debconf information excluded



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