Kaydet (Commit) 6c5bdc58 authored tarafından Clement Lefebvre's avatar Clement Lefebvre

Fix wrong live mount points

üst cb640414
......@@ -51,7 +51,7 @@ do_stop ()
device="$(grep " /run/live/medium " /proc/mounts | cut -d' ' -f1)" || device=
pkname="$(lsblk -no pkname $device)" || pkname=
# If /lib/live/mount/medium isn't mounted, don't try to eject it
# If /run/live/medium isn't mounted, don't try to eject it
if [ -z "$device" ]; then
return 0
fi
......
......@@ -188,7 +188,7 @@ class PartitionSetup(Gtk.TreeStore):
def _get_attached_disks():
disks = []
exclude_devices = ['/dev/sr0', '/dev/sr1', '/dev/cdrom', '/dev/dvd', '/dev/fd0']
live_device = commands.getoutput("findmnt -n -o source /lib/live/mount/medium").split('\n')[0]
live_device = commands.getoutput("findmnt -n -o source /run/live/medium").split('\n')[0]
live_device = re.sub('[0-9]+$', '', live_device) # remove partition numbers if any
if live_device is not None and live_device.startswith('/dev/'):
exclude_devices.append(live_device)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment