Permalink
Please sign in to comment.
Browse files
Better patch for ubiquity to fix issues when zram is enabled
- Loading branch information...
Showing
with
29 additions
and 19 deletions.
- +0 −13 crypto-base.sh.patch
- +5 −6 distroshare-ubuntu-imager.sh
- +24 −0 ubiquity.patch
| @@ -1,13 +0,0 @@ | ||
| ---- crypto-base.orig.sh 2014-12-31 20:18:23.215164157 -0500 | ||
| -+++ crypto-base.sh 2014-12-31 20:23:11.395158996 -0500 | ||
| -@@ -160,6 +160,10 @@ | ||
| - /dev/mapper/*) | ||
| - dm_is_safe ${swap%% *} || return 1 | ||
| - ;; | ||
| -+ /dev/zram*) | ||
| -+ apt-get -q2 remove zram-config | ||
| -+ swapoff $(echo $swap | cut -f 1 -d " ") | ||
| -+ ;; | ||
| - *) | ||
| - # Presume not safe | ||
| - return 1 |
| @@ -0,0 +1,24 @@ | ||
| +--- ubiquity 2015-01-01 16:48:12.378547695 -0500 | ||
| ++++ ubiquity 2015-01-01 16:50:43.994544980 -0500 | ||
| +@@ -11,7 +11,7 @@ | ||
| + sys.path.insert(0, '/usr/lib/ubiquity') | ||
| + | ||
| + from ubiquity import osextras | ||
| +- | ||
| ++from subprocess import call | ||
| + | ||
| + def main(): | ||
| + newargv = [] | ||
| +@@ -34,7 +34,11 @@ | ||
| + | ||
| + if os.getuid() == 0: | ||
| + # no privilege escalation required | ||
| +- inner = ['/usr/lib/ubiquity/bin/ubiquity'] + newargv | ||
| ++ | ||
| ++ #Turn off all swaps to fix issues with zram | ||
| ++ call(["swapoff", "--all"]) | ||
| ++ | ||
| ++ inner = ['/usr/lib/ubiquity/bin/ubiquity'] + newargv | ||
| + | ||
| + # Make sure ibus works | ||
| + if (os.getenv("GTK_IM_MODULE") == "ibus" and |
0 comments on commit
467590c