From 505bfb9a7ade6a916d7869605a4f7a292de22776 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Tue, 19 Dec 2017 16:01:31 +0000 Subject: Replace $live by $build throughout, Ready for adding support for classic installer builds. --- lib/MGA/DrakISO/Utils.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/MGA/DrakISO/Utils.pm') diff --git a/lib/MGA/DrakISO/Utils.pm b/lib/MGA/DrakISO/Utils.pm index b20cb32..40495e6 100644 --- a/lib/MGA/DrakISO/Utils.pm +++ b/lib/MGA/DrakISO/Utils.pm @@ -63,15 +63,15 @@ sub device_mkfs { } sub mount_system_fs { - my ($live) = @_; - run_('mount', '-t', 'devtmpfs', '/dev', $live->get_system_root . '/dev'); - run_('mount', '-t', 'proc', '/proc', $live->get_system_root . '/proc'); - run_('mount', '-t', 'sysfs', '/sys', $live->get_system_root . '/sys'); + my ($build) = @_; + run_('mount', '-t', 'devtmpfs', '/dev', $build->get_system_root . '/dev'); + run_('mount', '-t', 'proc', '/proc', $build->get_system_root . '/proc'); + run_('mount', '-t', 'sysfs', '/sys', $build->get_system_root . '/sys'); } sub umount_external_fs { - my ($live) = @_; - my $system_root = Cwd::abs_path($live->get_system_root); + my ($build) = @_; + my $system_root = Cwd::abs_path($build->get_system_root); my @mounts = grep { $_ =~ $system_root } split("\n", cat_('/proc/mounts')); foreach (reverse(@mounts)) { my @field = split(' ' , $_); -- cgit v1.2.1