Gentoo Archives: gentoo-user

From: Tanstaafl <tanstaafl@×××××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Two issues with OpenRC/baselayout2 migration on a hosted VM
Date: Tue, 13 Dec 2011 18:04:29
Message-Id: 4EE7935A.5080403@libertytrek.org
1 Hello,
2
3 This is my first time dealing with a VM, and this one is being hosted on
4 Linode... I'm fairly sure they use XenServer, but I'm still waiting for
5 confirmation...
6
7 2 issues I have after updating:
8
9 1. First question
10
11 Quoting from the Guide:
12
13 "local.start and local.stop
14
15 With OpenRC, /etc/conf.d/local.start and local.stop are deprecated.
16 During the migration to OpenRC, the files are moved to /etc/local.d and
17 gain the suffix .start or .stop. OpenRC then executes those in
18 alphabetic order."
19
20 Problem - on this VM, these files are named 'baselayout1.start' and
21 'baselayout1.stop', NOT 'local.start' and 'local.stop'...
22
23 Should I change these? Does it matter?
24
25 2. Second question
26
27 Quoting from the Guide:
28
29 "System sub-types: Virtualization special cases
30
31 In the early versions of OpenRC, we explictly detected multiple types of
32 virtualization, and used that detection to note when certain init
33 scripts should be skipped, using the keyword call in the depend functions.
34
35 However, as of the 0.7.0 release, you are required to explicitly
36 configure the sub-type using the rc_sys variable in /etc/rc.conf. The
37 sub-type should be set to match the virtualization environment that the
38 given root is in. In general, the non-empty rc_sys value should be
39 within the virtual containers; The host node will have rc_sys="".
40
41 Important: If you do not have any specific sub-type, please use the
42 default of an empty string "". If the variable is unset, you will be
43 given a warning and we will attempt to use the old detection algorithm.
44
45 Note: If you do not know what value your system was using with the
46 automatic detection, you should temporarily comment out the rc_sys
47 variable and run the detection command, rc -S."
48
49 Currently this is set to "", but according to the guide, since this is a
50 VM, it needs to be explicitly set. rc -S simply reports:
51
52 "li66-207 etc # rc -S
53 * WARNING: rc_sys not defined in rc.conf. Falling back to automatic
54 detection"
55
56 What should I set this to? Assuming that Linode is indeed using Xen,
57 would it be:
58
59 rc_sys="xenU"
60
61 ?
62
63 Thanks,
64
65 Charles

Replies

Subject Author
Re: [gentoo-user] Two issues with OpenRC/baselayout2 migration on a hosted VM Pandu Poluan <pandu@××××××.info>