installer.kmdr: fix long-standing bug of mounted partitions disappearing at installation beginning

Also remove obsolete dcop call to disable media notifier
This commit is contained in:
Silvan Calarco 2014-06-12 01:19:31 +02:00
parent 3c2d3b66d4
commit 78ab2998e6

View File

@ -1537,19 +1537,7 @@ fi
</property>
<property name="associations" stdset="0">
<stringlist>
<string>@exec("dcop kded kded unloadModule medianotifier")
@execBegin
function get_udisks_key() {
LANG=C udisks --show-info $1 | grep " $2:" | head -n1 | sed "s|[[:space:]]*$2:[[:space:]]*\(.*\)|\1|"
}
volumes=`udisks --enumerate-device-files | grep -v /dev/disk`
for v in $volumes; do
native_path=`get_udisks_key $v native-path`
[ ! -e $native_path/partition ] || continue
sudo udisks --unmount $v
done
@execEnd
@PartitionBox.setEnabled(false)
<string>@PartitionBox.setEnabled(false)
@BootloaderBox.setEnabled(false)
@Message.info("&lt;b&gt;
@i18n("Hint: in order to install openmamba you should create:")
@ -1561,7 +1549,6 @@ done
",@i18n("Hint for partitioning"))
@exec(sudo /usr/sbin/gparted)
@scanDevices.execute()
@exec("dcop kded kded loadModule medianotifier")
@PartitionBox.setEnabled(true)
@BootloaderBox.setEnabled(true)
</string>