summaryrefslogtreecommitdiffstats
path: root/move
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-11-11 13:22:29 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-11-11 13:22:29 +0000
commite0d92cc9fefdfb0b25859d5714085eb4ddaa1ff2 (patch)
tree61156f89095a8684b26a9838e03e664a2cfdea18 /move
parentd2d42e74051c84531e59967f8bd79ec05b4e85c4 (diff)
downloaddrakx-e0d92cc9fefdfb0b25859d5714085eb4ddaa1ff2.tar
drakx-e0d92cc9fefdfb0b25859d5714085eb4ddaa1ff2.tar.gz
drakx-e0d92cc9fefdfb0b25859d5714085eb4ddaa1ff2.tar.bz2
drakx-e0d92cc9fefdfb0b25859d5714085eb4ddaa1ff2.tar.xz
drakx-e0d92cc9fefdfb0b25859d5714085eb4ddaa1ff2.zip
mount keys
Diffstat (limited to 'move')
-rw-r--r--move/move.pm16
1 files changed, 16 insertions, 0 deletions
diff --git a/move/move.pm b/move/move.pm
index a16565048..7ddc180eb 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -125,6 +125,22 @@ sub install2::handleMoveKey {
my $o = $::o;
lomount_clp("always_i18n_$o->{locale}{lang}", '/usr');
+
+ require detect_devices;
+ require fsedit;
+ require fs;
+
+ my @keys = grep { $_->{usb_media_type} && index($_->{usb_media_type}, 'Mass Storage|') == 0 && $_->{media_type} eq 'hd' } detect_devices::get();
+
+ foreach my $hd (@keys) {
+ $hd->{file} = devices::make($hd->{device});
+ fsedit::use_proc_partitions($hd);
+ }
+
+ my @parts = fsedit::get_fstab(@keys);
+ each_index { $_->{mntpoint} = '/mnt/key' . ($::i || '') } @parts;
+
+ fs::mount_part($_) foreach @parts;
}
sub install2::startMove {