summaryrefslogtreecommitdiffstats
path: root/patches/draklive-install.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/draklive-install.patch')
-rw-r--r--patches/draklive-install.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/patches/draklive-install.patch b/patches/draklive-install.patch
new file mode 100644
index 0000000..04843df
--- /dev/null
+++ b/patches/draklive-install.patch
@@ -0,0 +1,14 @@
+--- sbin/draklive-install
++++ sbin/draklive-install
+@@ -87,8 +87,9 @@ sub umount_all {
+ eval { fs::mount::swapoff($_->{device}) };
+ }
+ }
+- foreach (map { $_->{isMounted} && !isSwap($_) ? "/dev/$_->{device}" : () } @$fstab) {
+- system('umount', $_);
++ foreach (grep { $_->{isMounted} && !isSwap($_) } @$fstab) {
++ system('umount', "/dev/$_->{device}");
++ $_->{isMounted} = 0;
+ }
+ }
+