Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

local.start is not executed

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
Corpse2
n00b
n00b
User avatar
Posts: 60
Joined: Wed Jan 14, 2004 5:03 pm

local.start is not executed

  • Quote

Post by Corpse2 » Mon Oct 31, 2005 12:38 pm

I have a strange problem after I installed gentoo (stage 3 from universal liveCD)

I first had a problem with emerging packages, but I found on the forums that my use flags were not exported. After exporting the use flags, emerge worked.

I don't know why they are not exported at boottime, but this is not so much of a problem, at least that's what I thought.

I wanted to add the line to local.start which would solve my problem, but it appears that everything in local.start is not executed when the computer is booting.

I have the export and some aliases in there, but after booting the computer, I have to maually source the file:

Code: Select all

source /etc/conf.d/local.start
When looking into this problem, I checked if local was in the default runlevel.
Local is in the default runlevel, during boot I see "Starting local ... [OK]" and /etc/init.d/local contains the line to source local.start.

Searching the forums about problems with local.start allways seem to return 0 results (search for local.start, local, start, ...) like if these words are reserved.

So, how come local.start is not sourced and how to fix it?
Any info on the use flag exporting is also appreciated.
Top
TheKreep
n00b
n00b
Posts: 2
Joined: Mon Mar 14, 2005 1:24 pm

  • Quote

Post by TheKreep » Mon Oct 31, 2005 12:41 pm

I have the same problem, and I'd also appreciate any help.
LOL Image
Image
Top
NTT
Apprentice
Apprentice
User avatar
Posts: 188
Joined: Thu Dec 26, 2002 11:38 am

  • Quote

Post by NTT » Mon Oct 31, 2005 12:57 pm

local.start is not meant for setting variables, any exports are valid for the duration of the local.start script. Ik you want to set environment variables for your profile put them in ~/.bash_profile or systemwide in /etc/profile.
Top
Cocker68
Apprentice
Apprentice
Posts: 227
Joined: Thu Jan 16, 2003 1:57 am
Location: Germany

  • Quote

Post by Cocker68 » Mon Oct 31, 2005 12:57 pm

  1. Check, if local.start indeed won't be executed:
    Put something like this line

    Code: Select all

    echo "`/bin/date` local.start executed" >> /tmp/local.start.test
    into Your local.start-file. Then reboot, and check the test-file /tmp/local.start.test
  2. I don't think local.start is the right place for what You want to do.

    Globally valid use-flags live in /etc/make.conf, packet-specific ones live in /etc/portage/package.use
    Aliases' best place is most probably in the user's (root's in Your case) .bashrc-file.
- Cocker :wq
Top
Corpse2
n00b
n00b
User avatar
Posts: 60
Joined: Wed Jan 14, 2004 5:03 pm

  • Quote

Post by Corpse2 » Mon Oct 31, 2005 1:33 pm

Cocker68 wrote:
  1. Check, if local.start indeed won't be executed:
    Put something like this line

    Code: Select all

    echo "`/bin/date` local.start executed" >> /tmp/local.start.test
    into Your local.start-file. Then reboot, and check the test-file /tmp/local.start.test
  2. I don't think local.start is the right place for what You want to do.

    Globally valid use-flags live in /etc/make.conf, packet-specific ones live in /etc/portage/package.use
    Aliases' best place is most probably in the user's (root's in Your case) .bashrc-file.
- Cocker :wq
the use flags are in make.conf, but only after I do

Code: Select all

export USE="gtk -qt ..."
I am able to emerge stuff. Otherwise I get

Code: Select all

C compiler cannot create executables


I will put them in /etc/profile as well.

I will check the local.start test immediately
Top
Corpse2
n00b
n00b
User avatar
Posts: 60
Joined: Wed Jan 14, 2004 5:03 pm

  • Quote

Post by Corpse2 » Mon Oct 31, 2005 1:56 pm

hmm, it appears local.start is executed indeed, but commands like export and alias are not. If I put some service in there to start, it starts.

Anyone an idea why export and alias don't work here anymore? It used to work in the 2004.x ages, even though it does not belong there...
Top
Headrush
Watchman
Watchman
User avatar
Posts: 5597
Joined: Thu Nov 06, 2003 12:48 am
Location: Bizarro World

  • Quote

Post by Headrush » Mon Oct 31, 2005 3:01 pm

NTT wrote:local.start is not meant for setting variables, any exports are valid for the duration of the local.start script. Ik you want to set environment variables for your profile put them in ~/.bash_profile or systemwide in /etc/profile.
Or for system-wide stuff, check out the files in /etc/env.d/ directory for simple examples.

Don't forget to do an env-update and source /etc/profile if you add your own file.
Top
nixnut
Bodhisattva
Bodhisattva
User avatar
Posts: 10974
Joined: Fri Apr 09, 2004 1:43 pm
Location: the dutch mountains

  • Quote

Post by nixnut » Mon Oct 31, 2005 6:29 pm

Moved from Installing Gentoo to Other Things Gentoo.
Not an installing gentoo problem.
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Top
Post Reply

8 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic