summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Draklive/Loopback.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MDV/Draklive/Loopback.pm')
-rw-r--r--lib/MDV/Draklive/Loopback.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/MDV/Draklive/Loopback.pm b/lib/MDV/Draklive/Loopback.pm
index 0032e6e..258f70e 100644
--- a/lib/MDV/Draklive/Loopback.pm
+++ b/lib/MDV/Draklive/Loopback.pm
@@ -117,7 +117,7 @@ our %loop_types;
mount => sub {
my ($live, $dir) = @_;
my $mnt = $live->{prefix}{live}{mnt} . $dir->{mountpoint};
- my $mount_opts = $dir->{mount_opts}?"-o $dir->{mount_opts}":"";
+ my $mount_opts = $dir->{mount_opts} ? "-o $dir->{mount_opts}" : "";
my $cmd = "mount -t tmpfs $mount_opts $mnt $mnt";
$dir->{fallback} ? qq(sh -c 'if ! grep -q " $mnt " /proc/mounts; then $cmd; fi') : $cmd;
},
@@ -135,7 +135,6 @@ sub get_loop_modules {
sub has_squashfs4_with {
my ($live, $comp) = @_;
- my $kernel = $live->find_kernel;
my $ucomp = uc($comp);
cat_($live->get_system_root . "/boot/config-" . $live->find_kernel->{version}) =~ /^CONFIG_SQUASHFS_$ucomp=y$/m;
}