summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2018-10-01 23:29:31 +0200
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2018-10-01 23:29:31 +0200
commit0731cc581ae18d820b3808c82c0214b51d4adcb7 (patch)
treea46d4ea37842c9dfaea53c1f59bbd65f3441dad0 /patches
parente712ef10af7e26bff5cac719a6474f8b1c7cc200 (diff)
downloaddraklive-config-0731cc581ae18d820b3808c82c0214b51d4adcb7.tar
draklive-config-0731cc581ae18d820b3808c82c0214b51d4adcb7.tar.gz
draklive-config-0731cc581ae18d820b3808c82c0214b51d4adcb7.tar.bz2
draklive-config-0731cc581ae18d820b3808c82c0214b51d4adcb7.tar.xz
draklive-config-0731cc581ae18d820b3808c82c0214b51d4adcb7.zip
Add patch to fix mga#23394 and mga#23603.
Diffstat (limited to 'patches')
-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;
+ }
+ }
+