summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/format.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-23 19:50:35 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-23 19:50:35 +0000
commit30d441e3847eb11c5de781503af64d38358f5408 (patch)
treeb5a904657487cd5dfec16ca195ee72b9098a086f /perl-install/fs/format.pm
parent6fa4abc16d1b016f54bd1d6931d635a93a272232 (diff)
downloaddrakx-backup-do-not-use-30d441e3847eb11c5de781503af64d38358f5408.tar
drakx-backup-do-not-use-30d441e3847eb11c5de781503af64d38358f5408.tar.gz
drakx-backup-do-not-use-30d441e3847eb11c5de781503af64d38358f5408.tar.bz2
drakx-backup-do-not-use-30d441e3847eb11c5de781503af64d38358f5408.tar.xz
drakx-backup-do-not-use-30d441e3847eb11c5de781503af64d38358f5408.zip
perl_checker cleanups
Diffstat (limited to 'perl-install/fs/format.pm')
-rw-r--r--perl-install/fs/format.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/fs/format.pm b/perl-install/fs/format.pm
index de444c694..6e4568da7 100644
--- a/perl-install/fs/format.pm
+++ b/perl-install/fs/format.pm
@@ -196,7 +196,7 @@ sub part_raw {
delete $part->{device_LABEL_changed};
# Preserve UUID on fs where we couldn't enforce it while formatting
- my ($_pkg, $cmd) = @{$preserve_UUID{$fs_type}};
+ (undef, $cmd) = @{$preserve_UUID{$fs_type}};
run_program::raw($cmd, '-U', devices::make($dev)) if $cmd;
if (member($fs_type, qw(ext3 ext4))) {
@@ -241,7 +241,7 @@ sub clean_label {
if ($part->{device_LABEL}) {
my $fs_type = $part->{fs_type};
if ($LABELs{$fs_type}) {
- my ($option, $length, $handled_by_mount) = @{$LABELs{$fs_type}};
+ my ($_option, $length, $handled_by_mount) = @{$LABELs{$fs_type}};
if (length $part->{device_LABEL} > $length) {
my $short = substr($part->{device_LABEL}, 0, $length);
log::l("shortening LABEL $part->{device_LABEL} to $short");