summaryrefslogtreecommitdiffstats
path: root/lib/MGA/DrakISO
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2017-12-22 21:26:43 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2017-12-22 21:56:20 +0000
commit55c2e86d0fa97b4182bba4a43eecc076f7cce3ff (patch)
treec736d88a5b1f1f973ba6c41f3bb9b08a0cb74775 /lib/MGA/DrakISO
parent86fd4637d35646de3be8056a2a0074b5cf72571b (diff)
downloaddrakiso-55c2e86d0fa97b4182bba4a43eecc076f7cce3ff.tar
drakiso-55c2e86d0fa97b4182bba4a43eecc076f7cce3ff.tar.gz
drakiso-55c2e86d0fa97b4182bba4a43eecc076f7cce3ff.tar.bz2
drakiso-55c2e86d0fa97b4182bba4a43eecc076f7cce3ff.tar.xz
drakiso-55c2e86d0fa97b4182bba4a43eecc076f7cce3ff.zip
For clarity, rename umount_external_fs() to umount_all_in_chroot().
Diffstat (limited to 'lib/MGA/DrakISO')
-rwxr-xr-xlib/MGA/DrakISO/BuildLoop.pm2
-rwxr-xr-xlib/MGA/DrakISO/BuildRoot.pm2
-rw-r--r--lib/MGA/DrakISO/Utils.pm4
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/MGA/DrakISO/BuildLoop.pm b/lib/MGA/DrakISO/BuildLoop.pm
index 9e98bd1..66d51a7 100755
--- a/lib/MGA/DrakISO/BuildLoop.pm
+++ b/lib/MGA/DrakISO/BuildLoop.pm
@@ -37,7 +37,7 @@ our @EXPORT = qw(build_live_loopback_files list_loopback_modules);
sub build_live_loopback_files {
my ($build) = @_;
# make sure no external filesystems are mounted before creating the loopback
- umount_external_fs($build);
+ umount_all_in_chroot($build);
my @excluded_files = expand_file_list($build, @{$build->{loopbacks}{exclude}{files} || []});
my @modules_files = expand_file_list($build, @{$build->{loopbacks}{modules} || []});
diff --git a/lib/MGA/DrakISO/BuildRoot.pm b/lib/MGA/DrakISO/BuildRoot.pm
index 501d1dd..9f789a0 100755
--- a/lib/MGA/DrakISO/BuildRoot.pm
+++ b/lib/MGA/DrakISO/BuildRoot.pm
@@ -175,7 +175,7 @@ sub customise_live_system {
clean_system_conf_file($build, "/etc/resolv.conf");
write_dist_lists($build);
- umount_external_fs($build);
+ umount_all_in_chroot($build);
umask $previous_umask;
}
diff --git a/lib/MGA/DrakISO/Utils.pm b/lib/MGA/DrakISO/Utils.pm
index b7dbcee..35fae93 100644
--- a/lib/MGA/DrakISO/Utils.pm
+++ b/lib/MGA/DrakISO/Utils.pm
@@ -30,7 +30,7 @@ use IO::Select;
use Exporter;
our @ISA = qw(Exporter);
-our @EXPORT = qw(directory_usage run_ copy_or_link mount_system_fs umount_external_fs);
+our @EXPORT = qw(directory_usage run_ copy_or_link mount_system_fs umount_all_in_chroot);
sub directory_usage {
my ($dir, $o_apparent) = @_;
@@ -96,7 +96,7 @@ sub mount_system_fs {
run_('mount', '-t', 'sysfs', '/sys', $build->get_system_root . '/sys');
}
-sub umount_external_fs {
+sub umount_all_in_chroot {
my ($build) = @_;
my $system_root = Cwd::abs_path($build->get_system_root);
my @mounts = grep { $_ =~ $system_root } split("\n", cat_('/proc/mounts'));