1 |
Michael Orlitzky <mjo@g.o> writes: |
2 |
|
3 |
>> # Don't forget to make directory for sysfs |
4 |
>> - [[ ! -d ${ROOT}sys ]] && kernel_is 2 6 && mkdir ${ROOT}sys |
5 |
>> + [[ ! -d ${EROOT}sys ]] && kernel_is 2 6 && mkdir "${EROOT}"sys |
6 |
>> |
7 |
> |
8 |
> One more =) |
9 |
|
10 |
Nice catch! |
11 |
|
12 |
Jonathan Callen <jcallen@g.o> writes: |
13 |
|
14 |
> This one probably should also be guarded by a `if ! use prefix` or `if |
15 |
> [[ -z ${EPREFIX} ]]` (or whatever), as it doesn't make as much sense to |
16 |
> have a ${EPREFIX}/sys directory. |
17 |
|
18 |
It is not needed. The code is in postinst_sources(), which is called by |
19 |
|
20 |
kernel-2_pkg_postinst() { |
21 |
[[ ${ETYPE} == sources ]] && postinst_sources |
22 |
} |
23 |
|
24 |
And linux-headers (which Prefix usually use) defines ETYPE=headers. |
25 |
|
26 |
In rare cases, Prefix do have a chance to compile and install a kernel. |
27 |
But then, EROOT/sys will also be needed. |
28 |
|
29 |
|
30 |
Patch updated: |