From b4fe444b64b82d57ba3f53f737cfb79fbc8eb1e7 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Fri, 16 Oct 2009 10:25:21 +0000 Subject: Handle LVM (#44723) --- rescue/guessmounts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'rescue/guessmounts') 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($_)); -- cgit v1.2.1