Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 182031
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Petr Pisar <petr.pisar@atlas.cz>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
crypto-loop.diff /etc/init.d/crypto-loop patch Petr Pisar 2007-06-14 14:48 0000 466 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 182031 depends on: Show dependency tree
Bug 182031 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-06-14 14:47 0000
Stopping crypto-loop assumes that all loop devices are mounted. At first it
tries to umount them and then to destroy the loop disk via losetup -d. If the
losetup -d failed, the complete script terminates with error.

But if the loop device is used for swapping and then it's not possible to
umount and to destroy it.

Reproducible: Always

Steps to Reproduce:
1. Append following line into /etc/fstab:
  /dev/hdaN  none  swap  sw,loop=/dev/loop1,encryption=twofish
2. swapon -a
3. /etc/init.d/crypto-loop stop

Actual Results:  
The script failed

Expected Results:  
The script should cope with other loop devices.

The crypto-loop script is schisofrenic. Start phase works only on devices
defined in /etc/conf.d/crypto-loop but the stop phase processes all loop
devices.

I understand the motivation (deleting old encrypted devices that have been
removed from config file), but contemporal access is suboptimal.

------- Comment #1 From Petr Pisar 2007-06-14 14:48:48 0000 -------
Created an attachment (id=122032) [details]
/etc/init.d/crypto-loop

Attemp to swapoff loop device which failed on umount

------- Comment #2 From SpanKY 2007-10-05 23:26:57 0000 -------
added to 2.13-r2 / 2.12r-r8, thanks !

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug