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 > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 02-07-2012, 11:33 AM
Martin Gracik
 
Default Add runtime basename variable to the template

Related: rhbz#782108
---
src/pylorax/treebuilder.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py
index 12fdcf9..7d092fe 100644
--- a/src/pylorax/treebuilder.py
+++ b/src/pylorax/treebuilder.py
@@ -158,6 +158,7 @@ class TreeBuilder(object):
# NOTE: if you pass an arg named "runtime" to a mako template it'll
# clobber some mako internal variables - hence "runtime_img".
self.vars = DataHolder(arch=arch, product=product, runtime_img=runtime,
+ runtime_base=basename(runtime),
inroot=inroot, outroot=outroot,
basearch=arch.basearch, libdir=arch.libdir,
isolabel=isolabel, udev=udev_escape)
--
1.7.5.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 02-07-2012, 06:44 PM
"Brian C. Lane"
 
Default Add runtime basename variable to the template

I'm opposed to this change for a few reasons:

1. root:live should be what we use to find the image, not rd.live.dir +
root:live

2. pushing the image file down another directory level doesn't make
sense to me. just put it in images.

3. It doesn't matter if it is named anaconda.squashfs.img or
squashfs.img the former just makes for longer strings and harder to read
cmdlines. dracut doesn't care what is inside it, it just needs to know
how to find it and mount it.

4. Intermediate steps that make it into the wild cause more confusion
than leaving it as LiveOS until it can be fixed properly.

I propose we:

A. wait until dracut has a fix for root:live

B. Move it to /images/squashfs.img

(I'll also add these opinions to the bug).

--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
_______________________________________________
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 07:24 AM.

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