summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/format.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-03-20 16:58:31 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-03-20 16:58:31 +0000
commitc598932f0a65ae9ca78a91e1015fe5638539be75 (patch)
tree2343c497f0e71238a0291088e4f4b0d864a8f4eb /perl-install/fs/format.pm
parent586fa375f90a241fc3cadfd1760982492b62e020 (diff)
downloaddrakx-c598932f0a65ae9ca78a91e1015fe5638539be75.tar
drakx-c598932f0a65ae9ca78a91e1015fe5638539be75.tar.gz
drakx-c598932f0a65ae9ca78a91e1015fe5638539be75.tar.bz2
drakx-c598932f0a65ae9ca78a91e1015fe5638539be75.tar.xz
drakx-c598932f0a65ae9ca78a91e1015fe5638539be75.zip
- when reformatting swap, keep existing UUID (#38877)
Diffstat (limited to 'perl-install/fs/format.pm')
-rw-r--r--perl-install/fs/format.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/fs/format.pm b/perl-install/fs/format.pm
index 6757cf0ea..90f6cc89a 100644
--- a/perl-install/fs/format.pm
+++ b/perl-install/fs/format.pm
@@ -96,6 +96,8 @@ sub part_raw {
push @options, '-l', "Untitled";
} elsif (isAppleBootstrap($part)) {
push @options, '-l', 'bootstrap';
+ } elsif ($fs_type eq 'swap') {
+ push @options, '-U', $part->{device_UUID} if $part->{device_UUID};
}
if ($part->{device_LABEL}) {