[Bug 316607] Re: Encrypted SWAP partition not created/mounted

Ulrich Lukas stellplatz-nr.13a at datenparkplatz.de
Thu Jan 15 13:13:24 UTC 2009


Many thanks for your help Shiv!


I've applied the patch to vol_id and un_vol_id in /lib/cryptsetup/checks/.

Now, the automated creation of the swap device works again.

Looking at the scripts, your explanation seems absolutely plausible to
me.


I've even cross-checked the detection by trying the following once with dev="/dev/null" and dev="/dev/sda1":
> vol_id=`/lib/udev/vol_id -t $dev 2>&1`
> pattern=`echo $dev | sed 's/\//\\\\\//g'`
> unknown=`/lib/udev/vol_id -t /dev/null 2>&1 | sed "s/\/dev\/null/$pattern/g"`
> if [ "$vol_id" != "$unknown" ] && [ "$vol_id" != "minix" ] && [ -z "$fs" ]; then echo FILESYSTEM DETECTED; fi


Seems to work...

-- 
Encrypted SWAP partition not created/mounted
https://bugs.launchpad.net/bugs/316607
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list