You are not logged in.

#1 2010-06-27 21:22:58

RiceKills
Member
Registered: 2010-05-31
Posts: 72

Problems with chroot and /etc/localtime [SOLVED]

Hi, I just installed a i686 chroot and Im having some problems. When I try to run firefox or another application via schroot -p -- firefox I get this error:

I: 20copyfiles: Not copying nonexistent file: /etc/localtime
E: Arch32-22f25446-8658-4910-a4d7-088f07e64e13: Chroot setup failed: stage=setup-start

my schroot.conf:

[Arch32]
description=Arch32
type=directory
directory=/opt/arch32
priority=1
#users=username
groups=users
root-groups=root
script-config=script-arch32
personality=linux32
aliases=32,default


Any help?

Last edited by RiceKills (2010-06-28 13:36:41)

Offline

#2 2010-06-27 22:42:23

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Problems with chroot and /etc/localtime [SOLVED]

As said, /etc/localtime doesn't exist.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2010-06-27 22:45:51

RiceKills
Member
Registered: 2010-05-31
Posts: 72

Re: Problems with chroot and /etc/localtime [SOLVED]

well what should I do?

Offline

#4 2010-06-27 22:54:32

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Problems with chroot and /etc/localtime [SOLVED]

Start by creating it, then see how far you get?

Not that difficult is it wink.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2010-06-27 22:55:21

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Problems with chroot and /etc/localtime [SOLVED]

Look up what /etc/localtime is and why you don't have it. Hint: its typically a symlink to a file which tells you which timezone you're in.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#6 2010-06-27 22:55:23

andresp
Member
Registered: 2010-05-29
Posts: 62

Re: Problems with chroot and /etc/localtime [SOLVED]

( cd /etc; rm -f localtime; . rc.conf; cp /usr/share/zoneinfo/$LOCALTIME localtime )

edit:

ngoonee wrote:

Look up what /etc/localtime is and why you don't have it. Hint: its typically a symlink to a file which tells you which timezone you're in.

In Arch, localtime is never a symlink. If usr is not mounted then early restoration of localtime is problematic.

Last edited by andresp (2010-06-27 22:56:55)

Offline

#7 2010-06-27 22:58:17

RiceKills
Member
Registered: 2010-05-31
Posts: 72

Re: Problems with chroot and /etc/localtime [SOLVED]

okay, I created a blank file /etc/localtime and now when I do a schroot -p -- firefox, my firefox doesn't have flash even though I installed it.

I think my 64bit firefox is running.

Last edited by RiceKills (2010-06-27 23:03:18)

Offline

#8 2010-06-28 03:44:52

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Problems with chroot and /etc/localtime [SOLVED]

Different problems typically call for new threads. Did you install firefox and flashplugin inside the chroot? schroot -p -- firefox shouldn't run anything from your main system if set up correctly.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#9 2010-06-28 09:11:32

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Problems with chroot and /etc/localtime [SOLVED]

The creation of localtime in the chrooted arch32 installation is mentioned in the wiki article http://wiki.archlinux.org/index.php/Ins … _in_Arch64:

Configure the new system

First, copy important configuration files:
...
ln -f /etc/localtime .
...

Personally I did copies instead of hard links.

RiceKills wrote:

I think my 64bit firefox is running.

You should not run the firefox 64-bit simultaneously with the chrooted arch32 firefox 32-bit.

Personally I uninstalled the firefox 64-bit along with the flashlugin 64-bit, to only use the 32-bit ones.
It works without problem for me.

Offline

#10 2010-06-28 13:36:11

RiceKills
Member
Registered: 2010-05-31
Posts: 72

Re: Problems with chroot and /etc/localtime [SOLVED]

berbae wrote:

You should not run the firefox 64-bit simultaneously with the chrooted arch32 firefox 32-bit.

Personally I uninstalled the firefox 64-bit along with the flashlugin 64-bit, to only use the 32-bit ones.
It works without problem for me.

things are working great now, thanks.

I tried to make a hard link but /etc/localtime doesn't exist on my 32bit installation either.

Im going to mark this as solved though.

Offline

Board footer

Powered by FluxBB