diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2010-05-18 12:50:43 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2010-05-18 12:50:43 +0000 |
commit | f3ac88e47a1f4a90002e90a83a20504725f022c7 (patch) | |
tree | 787820d0bc7519b8af8a65db2c2c3fa6dedb3d59 /perl-install/any.pm | |
parent | 59d93bb7fd0f6e949e2793a0c4b25d3d7639fd01 (diff) | |
download | drakx-f3ac88e47a1f4a90002e90a83a20504725f022c7.tar drakx-f3ac88e47a1f4a90002e90a83a20504725f022c7.tar.gz drakx-f3ac88e47a1f4a90002e90a83a20504725f022c7.tar.bz2 drakx-f3ac88e47a1f4a90002e90a83a20504725f022c7.tar.xz drakx-f3ac88e47a1f4a90002e90a83a20504725f022c7.zip |
always set resume= when a swap is available, regardless of its size (#34681)
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r-- | perl-install/any.pm | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm index 5e11c7aa5..234c74aa7 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -174,12 +174,8 @@ sub setupBootloaderBefore { bootloader::set_append_simple($bootloader, 'noresume'); } elsif (bootloader::get_append_simple($bootloader, 'noresume')) { } else { - my ($MemTotal) = cat_("/proc/meminfo") =~ /^MemTotal:\s*(\d+)/m; if (my ($biggest_swap) = sort { $b->{size} <=> $a->{size} } grep { isSwap($_) } @$fstab) { - log::l("MemTotal: $MemTotal < ", $biggest_swap->{size} / 2); - if ($MemTotal < $biggest_swap->{size} / 2) { - bootloader::set_append_with_key($bootloader, resume => fs::wild_device::from_part('', $biggest_swap)); - } + bootloader::set_append_with_key($bootloader, resume => fs::wild_device::from_part('', $biggest_swap)); } } |