Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 445888

Summary: OpenRC-git with PREFIX='/usr' make doesn't create runlevels
Product: Gentoo Hosted Projects Reporter: udeved <brainbug75>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/udeved/openrc-pkgbuilds/tree/master/base
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 439098    
Attachments: In my view useless stuff commented out
will make prefixed runlevels

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
3.
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.