FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Java

 
 
LinkBack Thread Tools
 
Old 06-13-2011, 06:23 PM
Will Woods
 
Default Use bcj filter for compressing squashfs ramdisk

Using the BCJ filter can shave a few MB off the filesize of our ramdisk
at the expense of added CPU time. Worth it.
---
src/pylorax/__init__.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py
index ff9bf3b..21c3cb9 100644
--- a/src/pylorax/__init__.py
+++ b/src/pylorax/__init__.py
@@ -75,6 +75,7 @@ ARCHMAPS = {
LIB32 = "lib"
LIB64 = "lib64"

+bcj = dict(i386='x86', x86_64='x86', ppc='powerpc', sparc='sparc', ia64='ia64')

class Lorax(BaseLoraxClass):

@@ -104,6 +105,7 @@ class Lorax(BaseLoraxClass):
self.conf.add_section("compression")
self.conf.set("compression", "type", "squashfs")
self.conf.set("compression", "args", "-comp xz")
+ self.conf.set("compression", "bcj", "on")

# read the config file
if os.path.isfile(conf_file):
@@ -385,6 +387,9 @@ class Lorax(BaseLoraxClass):

ctype = self.conf.get("compression", "type")
cargs = self.conf.get("compression", "args")
+ if self.conf.get("compression", "bcj") == "on":
+ if self.basearch in bcj:
+ cargs += " -Xbcj %s" % bcj.get(self.basearch)

i = imgclass(kernellist=self.outputtree.kernels,
installtree=self.installtree,
--
1.7.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 09:19 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org