Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 445888 - OpenRC-git with PREFIX='/usr' make doesn't create runlevels
Summary: OpenRC-git with PREFIX='/usr' make doesn't create runlevels
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
Depends on:
Blocks: 439098
  Show dependency tree
Reported: 2012-12-04 01:07 UTC by udeved
Modified: 2012-12-05 00:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

In my view useless stuff commented out (runlevel.patch,1.32 KB, patch)
2012-12-04 02:07 UTC, udeved
Details | Diff
will make prefixed runlevels (runlevel.patch,1.47 KB, patch)
2012-12-04 19:54 UTC, udeved
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description udeved 2012-12-04 01:07:26 UTC
OpenRC with PREFIX='/usr' set in make doesn't create runlevels in /etc/runlevels/*

sysinit dir is empty, boot only contains tmpfiles.setup, shutdown savecache

I am not running Gentoo, but ported OpenRC to Arch linux.

Reproducible: Always

Steps to Reproduce:
1. set PREFIX to /usr
2. resulting package has runlevels missing
Actual Results:  
leaves system in poor condition after reboot

Expected Results:  
make should create runlevels with PREFIX too I assume

Test systems:

arch linux i686/x86_64
Comment 1 William Hubbs gentoo-dev 2012-12-04 01:24:51 UTC
This is just a note to myself. After looking at the initial description
of this, it appears to be an issue in the runlevels Makefile. I'll look
over this in a little while, today or tomorrow.
Comment 2 udeved 2012-12-04 02:07:22 UTC
Created attachment 331364 [details, diff]
In my view useless stuff commented out

and the resulting pkg contains runlevels

But I have not installed it yet
Comment 3 udeved 2012-12-04 02:35:16 UTC
Test system boots with patch and installed runlevels.
Comment 4 udeved 2012-12-04 05:56:53 UTC
I was being too enthusiastic, no additional runlevels will be recognized by openrc at boot. Only the default runlevels work
Comment 5 udeved 2012-12-04 19:54:14 UTC
Created attachment 331442 [details, diff]
will make prefixed runlevels
Comment 6 udeved 2012-12-04 23:55:38 UTC
Not quite solved yet.

With the last patch, the make creates almost all runlevels, but:

boot: bootmisc,consolefont, hostname, mtab missing
sysinit: devfs missing
shutdown: killprocs missing

Very strange. The involved init.d *.in files look ok
Comment 7 William Hubbs gentoo-dev 2012-12-05 00:03:02 UTC
This is resolved with commit a9272f5.
Comment 8 udeved 2012-12-05 00:11:25 UTC
The first patch fixes the empty runlevel dir issue with prefix make, I just realized, indeed the grep in runlevels makefile is not necessary.
It produces somehow more problems.