Ticket #226 (new defect)

Opened 14 months ago

Last modified 14 months ago

Undesired disks show up as available under Live CD

Reported by: Frisco Owned by: lars
Priority: normal Milestone: cryptonas-live-cd 0.4.0
Component: debian-package Version: svn
Severity: normal Keywords:
Cc:

Description

Running a Live CD based on r1180, some disks are still improperly displayed in the /disks listing. /dev/hdc is really the boot CD-ROM, but shows up; /dev/loop0, used for the Live CD environment, also shows up. From blockdevice.py, r1174:

          ## loop devices are ignored, if they are unused
232 	            if (self.major == MAJOR_DEVNUM_LOOP) and (self.size == 0):
233 	                return False

It would be easy to filter out loop devices by major number; is there a reason for the self.size == 0 check? The output of /debug_show_all_devices is attached.

Attachments

debug_show_all_devices.txt (3.0 kB) - added by Frisco 14 months ago.
Output of /debug_show_all_devices

Change History

Changed 14 months ago by Frisco

Output of /debug_show_all_devices

Changed 14 months ago by Frisco

Perhaps the most robust way to solve this would be to filter out the Live CD media based on characteristics common to both the USB and CDROM versions. Some more related information:

root@cryptonas:~# losetup /dev/loop0
/dev/loop0: [1600]:2954 (/live_media/casper/filesystem.squashfs)
root@cryptonas:~# mount
...
rootfs on / type rootfs (rw)
/dev/hdc on /live_media type iso9660 (ro)

In the Live CD or Live USB environment, /dev/loop0 is always used for the squashfs-compressed root file system. Whatever device happens to be mounted at /live_media should also not be displayed as a device usable for storage.

Add/Change #226 (Undesired disks show up as available under Live CD)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
The owner will change to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.