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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] ANNOUNCE: The /usr move cometh! <---- Instructions
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20ANNOUNCE%3A%20The%20/usr%20move%20cometh%21%20%3C----%20Instructions&In-Reply-To=%3CCAONrEtZVVUFV13r1HtidgkESdY7AKKTRHS%3Dguqhsqzqniu3fvg%40mail.gmail.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="018603.html">
<LINK REL="Next" HREF="018913.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] ANNOUNCE: The /usr move cometh! <---- Instructions</H1>
<B>Thierry Vignaud</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20ANNOUNCE%3A%20The%20/usr%20move%20cometh%21%20%3C----%20Instructions&In-Reply-To=%3CCAONrEtZVVUFV13r1HtidgkESdY7AKKTRHS%3Dguqhsqzqniu3fvg%40mail.gmail.com%3E"
TITLE="[Mageia-dev] ANNOUNCE: The /usr move cometh! <---- Instructions">thierry.vignaud at gmail.com
</A><BR>
<I>Tue Sep 25 12:07:49 CEST 2012</I>
<P><UL>
<LI>Previous message: <A HREF="018603.html">[Mageia-dev] ANNOUNCE: The /usr move cometh! <---- Instructions
</A></li>
<LI>Next message: <A HREF="018913.html">[Mageia-dev] ANNOUNCE: The /usr move cometh! <---- Instructions
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#18911">[ date ]</a>
<a href="thread.html#18911">[ thread ]</a>
<a href="subject.html#18911">[ subject ]</a>
<a href="author.html#18911">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On 9 September 2012 20:42, Colin Guthrie <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">mageia at colin.guthr.ie</A>> wrote:
>><i> Those cannot be done anymore.
</I>>><i> Now updating rpm in order to be able to sole the unifiedsystemdir depends
</I>>><i> pulls filesystem...
</I>>><i> Classic egg & chicken issue...
</I>><i>
</I>><i> Yes, this has been a problem for a while now in Cauldron. But not many
</I>><i> users are asking this question these days, so the likely path now is
</I>><i> from mga2 -> cauldron which is probably where the effort should be focused.
</I>
BTW I tested live upgrade from FC17 to FC18.
It works smoothly if you don't have third party packages.
in FC there's no need for a special boot, everything is hanled by filesystem
package's pre/post scripts:
$ rpm -q --scripts filesystem -v
pretrans scriptlet (using <lua>):
--#
--# If we are running in pretrans in a fresh root, there is no /usr
and symlinks.
--# We cannot be sure, to be the very first rpm in the transaction list,
--# so, let's create the toplevel symlinks here and the directories
they point to.
--# When our rpm is unpacked by cpio, it will set all permissions and
modes later.
--#
if posix.stat("/usr") == nil then
posix.mkdir("/usr")
end
for i,dir in ipairs({"/lib", "/lib64", "/sbin", "/bin"}) do
if posix.stat("/usr"..dir) == nil then
posix.mkdir("/usr"..dir)
if posix.stat(dir, "mode") == nil then
posix.symlink("usr"..dir, dir)
end
end
end
return 0
postinstall scriptlet (using <lua>):
posix.symlink("../run", "/var/run")
posix.symlink("../run/lock", "/var/lock")
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="018603.html">[Mageia-dev] ANNOUNCE: The /usr move cometh! <---- Instructions
</A></li>
<LI>Next message: <A HREF="018913.html">[Mageia-dev] ANNOUNCE: The /usr move cometh! <---- Instructions
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#18911">[ date ]</a>
<a href="thread.html#18911">[ thread ]</a>
<a href="subject.html#18911">[ subject ]</a>
<a href="author.html#18911">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|