summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-02-09 17:28:54 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-02-09 17:28:54 +0000
commitf6a6c074b5a9bd50c5437607c31d0b14a25982ef (patch)
treedfd8d76f935fc02ff47db84d7f462b3966e09f63
parentabc4ee583d4eada449c839f563720dfe24ba5bc8 (diff)
downloaddrakx-f6a6c074b5a9bd50c5437607c31d0b14a25982ef.tar
drakx-f6a6c074b5a9bd50c5437607c31d0b14a25982ef.tar.gz
drakx-f6a6c074b5a9bd50c5437607c31d0b14a25982ef.tar.bz2
drakx-f6a6c074b5a9bd50c5437607c31d0b14a25982ef.tar.xz
drakx-f6a6c074b5a9bd50c5437607c31d0b14a25982ef.zip
- Save the info that a disk is removable
-rw-r--r--perl-install/diskdrake/interactive.pm2
-rw-r--r--perl-install/fsedit.pm1
2 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index e266d0443..c68c9a25b 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -148,6 +148,8 @@ struct hd {
list allPartitionsRenumbered # used to update bootloader configuration
int bus, id
+ bool is_removable # is it a removable drive
+
partition_table_elem primary
partition_table_elem extended[]
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index 17ed0647b..25d6ce9e5 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -276,6 +276,7 @@ Do you agree to lose all the partitions?
}
if ($hd->{usb_media_type}) {
+ $hd->{is_removable} = 1;
$_->{is_removable} = 1 foreach @parts;
}