File: confver-6.html

package info (click to toggle)
linuxconf 1.26r4-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 56,432 kB
  • ctags: 27,217
  • sloc: cpp: 158,803; perl: 7,484; sh: 4,134; java: 3,105; ansic: 2,492; makefile: 2,216; python: 109
file content (123 lines) | stat: -rw-r--r-- 3,716 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>System profile versioning: Managing system profiles</TITLE>
 <LINK HREF="confver-5.html" REL=previous>
 <LINK HREF="confver.html#toc6" REL=contents>
</HEAD>
<BODY>
Next
<A HREF="confver-5.html">Previous</A>
<A HREF="confver.html#toc6">Contents</A>
<HR>
<H2><A NAME="s6">6. Managing system profiles</A></H2>

<P>Once system profile versions are defined, you can switch back and forth
between them. Linuxconf preserves the configuration files for
all sub-systems that are not shared between the two version. After
that it restores the configuration files for the newly selected version.
<P>
<H2><A NAME="ss6.1">6.1 Using the control panel</A>
</H2>

<P>In the control panel, you find the menu entry <EM>switch system
version</EM>. This menu presents you with the list of all versions
available (except the currently active one). You just pick one
and there you are.
<P>You may want to visit the <EM>Activate changes</EM> menu of the control
panel or leave Linuxconf so the new configuration is brought into
action.
<P>
<P>
<H2><A NAME="ss6.2">6.2 At boot time</A>
</H2>

<P>At boot time, an option lets you select the proper profile version.
As with the option in the control panel, this involves archiving
the current version and restoring the new one. Linuxconf may
then boot using the new configuration files. This is handled by
the optional boot time menu (Some distribution are not installing
it unfortunatly).
<P>It is also possible to switch profile from the LILO prompt. You simply
pass the PROFILE=profile-name argument to the selected kernel. For
example:
<P>
<BLOCKQUOTE><CODE>
<PRE>
        LILO boot: linux PROFILE=home
        
</PRE>
</CODE></BLOCKQUOTE>
<P>
<H2><A NAME="ss6.3">6.3 From the command line</A>
</H2>

<P>Limited functionality is available from the command line to
play with the archiving. Both command line options only work on
the current version. They are handy to do some experiments and
undo them. Remember that <EM>RCS</EM> is used to save the files. This
means that you can extract a very old copy of a configuration file
if needed. <EM>Linuxconf</EM> does not yet support this however. You have
to dig in the /etc/linuxconf/archive.
<P>
<H3>Archiving some or all subsystems</H3>

<P>The command
<P>
<BLOCKQUOTE><CODE>
<PRE>
        linuxconf --archive [ sub-system ... ]
        
</PRE>
</CODE></BLOCKQUOTE>
<P>lets you save a copy of the configuration files of a few subsystems.
If you omit a subsystem name, then all subsystems are archived.
<P>
<H3>Comparing the current setting with the archive</H3>

<P>The command
<P>
<BLOCKQUOTE><CODE>
<PRE>
        linuxconf --diff [ sub-system ... ]
        
</PRE>
</CODE></BLOCKQUOTE>
<P>lets you compare the current state of a the configuration files
with the last archived version.
If you omit a subsystem name, then all subsystems are compared.
<P>
<H3>Extracting some or all subsystems</H3>

<P>The command
<P>
<BLOCKQUOTE><CODE>
<PRE>
        linuxconf --extract [ sub-system ... ]
        
</PRE>
</CODE></BLOCKQUOTE>
<P>lets you restore the configuration files of a few sys-systems.
If you omit a subsystem name, then all subsystems are restored.
<P>
<H3>Viewing the status of the RCS archive</H3>

<P>The command
<P>
<BLOCKQUOTE><CODE>
<PRE>
        linuxconf --history [ sub-system ... ]
        
</PRE>
</CODE></BLOCKQUOTE>
<P>will present the archiving history of every file in the
subsystems (or all subsystems). It does this by executing the
rlog command on each file in the archive.
<P>
<HR>
Next
<A HREF="confver-5.html">Previous</A>
<A HREF="confver.html#toc6">Contents</A>
</BODY>
</HTML>