diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-10-23 13:30:59 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-10-23 13:30:59 +0000 |
commit | f677c8cde13f78a9221cc18f7b82b9882047a054 (patch) | |
tree | 48df9fb024b78ed9d0a6f6c708d74d1d429637fa | |
parent | b53b453cbb33ddeb9e7b36af564b476282d4747d (diff) | |
download | drakiso-f677c8cde13f78a9221cc18f7b82b9882047a054.tar drakiso-f677c8cde13f78a9221cc18f7b82b9882047a054.tar.gz drakiso-f677c8cde13f78a9221cc18f7b82b9882047a054.tar.bz2 drakiso-f677c8cde13f78a9221cc18f7b82b9882047a054.tar.xz drakiso-f677c8cde13f78a9221cc18f7b82b9882047a054.zip |
revert commit 262611 (we set label in different ways actually)
-rwxr-xr-x | draklive | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1023,11 +1023,11 @@ sub record_harddisk_master { my $hd = get_hd_from_file($media, $main_device); supplement_media_partitions($media, $hd); + my @partitions = grep { $_->{mntpoint} =~ m!^/! } @{$media->{partitions}}; mkdir_p($live->{mnt}); - foreach my $part (sort { $a->{mntpoint} cmp $b->{mntpoint} } @{$media->{partitions}}) { + foreach my $part (sort { $a->{mntpoint} cmp $b->{mntpoint} } @partitions) { set_part_real_device($hd, $part); - $_->{mntpoint} =~ m!^/! or next; my $mnt = $live->{mnt} . $part->{mntpoint}; mkdir_p($mnt); run_('mount', $part->{real_device}, $mnt) @@ -1045,8 +1045,7 @@ sub record_harddisk_master { install_grub_to_image($live, $media, $hd->{file}, $opts); - foreach my $part (sort { $b->{mntpoint} cmp $a->{mntpoint} } @{$media->{partitions}}) { - $_->{mntpoint} =~ m!^/! or next; + foreach my $part (sort { $b->{mntpoint} cmp $a->{mntpoint} } @partitions) { run_('umount', $part->{real_device}); maybe_umount_device($part->{real_device}); devices::del_loop($part->{real_device}) if -f $hd->{file}; |