WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] XCP noob question

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] XCP noob question
From: Marco Nenciarini <mnencia@xxxxxxxxxxxxxx>
Date: Fri, 26 Nov 2010 10:28:31 +0100
Delivery-date: Fri, 26 Nov 2010 01:30:14 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8AD4194C251EC74CB897E261038F447868FB87@xxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Openpgp: id=F095E5E4; url=http://www.prato.linux.it/~mnencia/mnencia.asc
References: <8AD4194C251EC74CB897E261038F447868FB87@xxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101030 Icedove/3.0.10
On 25/11/2010 17:02, Joe Linoff wrote:
> 
> 
> Hi Folks:
> 
>  
> 
> Where is the root filesystem mounted when the answerfile
> post-install-script is executed? I want to create a directory tree
> called /opt/foo/bar.
> 
>  
> 
> I read here (http://www.cmschill.net/StringTheory/tag/installation/)
> that the root filesystem was mounted under /tmp/root but I didn’t see
> any confirmation in the documentation.
> 

The root mountpoint is passed as first argument of post-install-script.
The following code should do the trick.

------------------------------------------------
#!/bin/bash

ROOT=$1

mkdir -p $ROOT/opt/foo/bar
------------------------------------------------

Regards,
Marco

-- 
---------------------------------------------------------------------
|    Marco Nenciarini    | Debian/GNU Linux Developer - Plug Member |
| mnencia@xxxxxxxxxxxxxx | http://www.prato.linux.it/~mnencia       |
---------------------------------------------------------------------
Key fingerprint = FED9 69C7 9E67 21F5 7D95  5270 6864 730D F095 E5E4


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>