diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2009-10-16 10:25:21 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2009-10-16 10:25:21 +0000 |
commit | b4fe444b64b82d57ba3f53f737cfb79fbc8eb1e7 (patch) | |
tree | 4bb00037911a4bd30a9f1039e4437bd44d21b323 | |
parent | 4281f2af46a93f320932d5f0dfa8e0f656251fc9 (diff) | |
download | drakx-b4fe444b64b82d57ba3f53f737cfb79fbc8eb1e7.tar drakx-b4fe444b64b82d57ba3f53f737cfb79fbc8eb1e7.tar.gz drakx-b4fe444b64b82d57ba3f53f737cfb79fbc8eb1e7.tar.bz2 drakx-b4fe444b64b82d57ba3f53f737cfb79fbc8eb1e7.tar.xz drakx-b4fe444b64b82d57ba3f53f737cfb79fbc8eb1e7.zip |
Handle LVM (#44723)
-rw-r--r-- | rescue/NEWS | 2 | ||||
-rwxr-xr-x | rescue/guessmounts | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/rescue/NEWS b/rescue/NEWS index 7833e54f6..5751ca5cb 100644 --- a/rescue/NEWS +++ b/rescue/NEWS @@ -1,3 +1,5 @@ +- Handle LVM (#44723) + Version 1.16 - 9 October 2009, by Olivier "blino" Blin - work both with squashfs 3 and 4 diff --git a/rescue/guessmounts b/rescue/guessmounts index c755e0743..dddeaed26 100755 --- a/rescue/guessmounts +++ b/rescue/guessmounts @@ -17,7 +17,8 @@ use common; use fs; use fs::proc_partitions; use fs::type; - +use lvm; +use run_program; my @proc_mounts = fs::read_fstab('', '/proc/mounts'); @@ -34,6 +35,9 @@ print STDERR "\nPlease wait, trying to find your root device...\n"; mkdir_p($target); +run_program::run('lvm2', 'vgscan'); +run_program::run('lvm2', 'vgchange', '-a', 'y'); + my @parts = map { $_->{device} = delete $_->{dev}; put_in_hash($_, fs::type::type_subpart_from_magic($_)); |