diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2017-12-18 21:26:09 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2017-12-18 21:26:09 +0000 |
commit | 45af27325ded155ab7ce4c76daedd053d9d504cc (patch) | |
tree | 4f9a2159f10c681b189ed6fe732b6c28d11793bd /lib/MGA/DrakISO/Loopback.pm | |
parent | 996706b13c0354ae98e08f4cd54eae2a5868434c (diff) | |
download | drakiso-45af27325ded155ab7ce4c76daedd053d9d504cc.tar drakiso-45af27325ded155ab7ce4c76daedd053d9d504cc.tar.gz drakiso-45af27325ded155ab7ce4c76daedd053d9d504cc.tar.bz2 drakiso-45af27325ded155ab7ce4c76daedd053d9d504cc.tar.xz drakiso-45af27325ded155ab7ce4c76daedd053d9d504cc.zip |
Properly import $dir_distrib_sqfs into Loopback module.
Allows 'use strict' to be added to that module.
Diffstat (limited to 'lib/MGA/DrakISO/Loopback.pm')
-rw-r--r-- | lib/MGA/DrakISO/Loopback.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/MGA/DrakISO/Loopback.pm b/lib/MGA/DrakISO/Loopback.pm index 5e8e38e..ed8cba7 100644 --- a/lib/MGA/DrakISO/Loopback.pm +++ b/lib/MGA/DrakISO/Loopback.pm @@ -1,8 +1,10 @@ package MGA::DrakISO::Loopback; +use strict; use MDK::Common; use File::Temp; +use MGA::DrakISO::Mounts; use MGA::DrakISO::Progress; use MGA::DrakISO::Utils; @@ -105,7 +107,7 @@ our %loop_types; mount => sub { my ($dir) = @_; $dir->{loop} = "/dev/loop" . $loop_number++; - my $sqfs = $dir_distrib_sqfs->{mountpoint}; + my $sqfs = $MGA::DrakISO::Mounts::dir_distrib_sqfs->{mountpoint}; my $fsck = "chroot </dev/tty1 /live/$sqfs /sbin/fsck $dir->{loop}"; my $extension = $dir->{path} . $loop_types{loopfs}{extension}; my $mountpoint = $dir->{mountpoint}; |