~ubuntu-branches/ubuntu/precise/ecryptfs-utils/precise-security

« back to all changes in this revision

Viewing changes to src/utils/ecryptfs-setup-swap

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-04-18 15:52:45 UTC
  • Revision ID: package-import@ubuntu.com-20120418155245-ehdhkj9xfwehhgdt
Tags: 96-0ubuntu3
src/utils/ecryptfs-setup-swap: Skip /dev/zram* swap devices
(LP: #979350).

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
                continue
93
93
        fi
94
94
        
95
 
        if [ "${swap#/dev/ram}" != "$swap" ]; then
 
95
        if [ "${swap#/dev/ram}" != "$swap" ] || [ "${swap#/dev/zram}" != "$swap" ]; then
96
96
                warn "[$swap]" `gettext "is a RAM device, skipping."`
97
97
                continue
98
98
        fi