Ubuntu Pastebin

Paste from ogra at Thu, 15 Sep 2016 08:19:30 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ogra@anubis:~/datengrab/devel/branches/ubuntu-image$ git diff
diff --git a/ubuntu_image/builder.py b/ubuntu_image/builder.py
index 4d3b84a..f4d04bb 100644
--- a/ubuntu_image/builder.py
+++ b/ubuntu_image/builder.py
@@ -81,7 +81,10 @@ class ModelAssertionBuilder(State):
         # Information passed between states.
         self.rootfs = None
         self.rootfs_size = 0
-        self.image_size = 0
+        try:
+            self.image_size = os.environ.get('IMAGESIZE')
+        except:
+            self.image_size = 0
         self.bootfs = None
         self.bootfs_sizes = None
         self.images = None
ogra@anubis:~/datengrab/devel/branches/ubuntu-image$ IMAGESIZE=500000000 ./ubuntu-image -c edge -o u-image-amd64.img ~/datengrab/images/snappy/amd64-generic-model.assertion
836.00 KB / 836.00 KB [================================================================================================================] 100.00 % 5.15 MB/s 
Fetching pc
...
ogra@anubis:~/datengrab/devel/branches/ubuntu-image$ ls -lh u-image-amd64.img 
-rw-rw-r-- 1 ogra ogra 594M Sep 15 10:17 u-image-amd64.img
Download as text