summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-July/017633.html
blob: be2278a45e5bef219eddb91788cc026e6938417a (plain)
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] Failed to book after systemd 187 (was: Re: Failed to boot after /usr move)
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Failed%20to%20book%20after%20systemd%20187%20%28was%3A%20Re%3A%20Failed%20to%0A%20boot%20after%20/usr%20move%29&In-Reply-To=%3C500E66E9.5070805%40colin.guthr.ie%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="017631.html">
   <LINK REL="Next"  HREF="017641.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] Failed to book after systemd 187 (was: Re: Failed to boot after /usr move)</H1>
    <B>Colin Guthrie</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Failed%20to%20book%20after%20systemd%20187%20%28was%3A%20Re%3A%20Failed%20to%0A%20boot%20after%20/usr%20move%29&In-Reply-To=%3C500E66E9.5070805%40colin.guthr.ie%3E"
       TITLE="[Mageia-dev] Failed to book after systemd 187 (was: Re: Failed to boot after /usr move)">mageia at colin.guthr.ie
       </A><BR>
    <I>Tue Jul 24 11:12:09 CEST 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="017631.html">[Mageia-dev] Failed to boot after /usr move
</A></li>
        <LI>Next message: <A HREF="017641.html">[Mageia-dev] Failed to boot after /usr move
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#17633">[ date ]</a>
              <a href="thread.html#17633">[ thread ]</a>
              <a href="subject.html#17633">[ subject ]</a>
              <a href="author.html#17633">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>'Twas brillig, and Olivier Thauvin at 24/07/12 09:44 did gyre and gimble:
&gt;<i> * Colin Guthrie (<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">mageia at colin.guthr.ie</A>) wrote:
</I>&gt;&gt;<i> Do you mean &quot;systemctl status cryptsetup.target&quot;? If so I get the same
</I>&gt;&gt;<i> results here:
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> [<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">colin at jimmy</A> spec-helper]$ systemctl status cryptsetup.target
</I>&gt;&gt;<i> cryptsetup.target
</I>&gt;&gt;<i> 	  Loaded: error (Reason: No such file or directory)
</I>&gt;&gt;<i> 	  Active: inactive (dead)
</I>&gt;&gt;<i>
</I>&gt;<i> 
</I>&gt;<i> Exactly.
</I>&gt;<i>  
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> This generally happens when a unit refers to a target as a dep but the
</I>&gt;&gt;<i> target itself is not defined.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> This target itself does seem to be AWOL in the systemd-units package.
</I>&gt;&gt;<i> Seems like an unintended (or at least unannounced) change in systemd
</I>&gt;&gt;<i> 187, so separate from the whole usr move thing, just related to a new
</I>&gt;&gt;<i> systemd version.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> I'll investigate ASAP.
</I>&gt;<i> 
</I>&gt;<i> Thanks, at time I workaround with &quot;noauto&quot; in my fstab and I mount it
</I>&gt;<i> manually after boot.
</I>
OK, so it seems systemd-187 bumped the needed libcrypt version and
didn't say in the NEWS file.

I've now update cryptsetup to 1.5.0 and will rebuild systemd shortly.

Too much in the way of wildcard includes are used in the systemd
filelist so this wasn't easily spotted :s When I get a bit of time I'll
make the filelist a bit more explicit and thus this kind of thing should
be easier to catch in the future.

&gt;&gt;&gt;&gt;&gt;<i> BTW: /var/run and /var/lock were not migrated and I had to do it by
</I>&gt;&gt;&gt;&gt;&gt;<i> hand.
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> This happens if /var is on a separate partition. Is this the case with
</I>&gt;&gt;&gt;&gt;<i> you? I'll have to think about how to handle that more gracefully.
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> It's the case.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Cool. Will have to work that one out then :s
</I>&gt;<i> 
</I>&gt;<i> Can't the switch be done online a perl/python/c programme, eg once the
</I>&gt;<i> programme is loaded everything can be done. Or by providing static
</I>&gt;<i> binaries of mv/rm/ln ?
</I>
Switching /var/lock would probably be OK, but /var/run typically
contains sockets for IPC and we cannot simply move these around and
across filesystems without various breakages in the live system.

Switching /bin -&gt; /usr/bin on a live system might be possible (even
without static versions as both paths should be in the $PATH and both
library locations should be in the ldconfig path.

Besides the move works by making a (hardlinked) copy of /usr/bin first,
then copies /bin (again with hardlinks if on the same FS) to this new
folder and only at the end does it rm /bin and mv the the path into the
right place so I'm that with a little care it could all work.

What I'm less confident about is what would happen with file locking,
and some security things when doing this &quot;live&quot;. It just seems
altogether more prudent to do it from a &quot;safe&quot; environment, but I'd be
happy to hear people's opinions on this one.

Probably best for a new discussion thread tho'.

Cheers

Col


-- 

Colin Guthrie
colin(at)mageia.org
<A HREF="http://colin.guthr.ie/">http://colin.guthr.ie/</A>

Day Job:
  Tribalogic Limited <A HREF="http://www.tribalogic.net/">http://www.tribalogic.net/</A>
Open Source:
  Mageia Contributor <A HREF="http://www.mageia.org/">http://www.mageia.org/</A>
  PulseAudio Hacker <A HREF="http://www.pulseaudio.org/">http://www.pulseaudio.org/</A>
  Trac Hacker <A HREF="http://trac.edgewall.org/">http://trac.edgewall.org/</A>
</PRE>



































<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="017631.html">[Mageia-dev] Failed to boot after /usr move
</A></li>
	<LI>Next message: <A HREF="017641.html">[Mageia-dev] Failed to boot after /usr move
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#17633">[ date ]</a>
              <a href="thread.html#17633">[ thread ]</a>
              <a href="subject.html#17633">[ subject ]</a>
              <a href="author.html#17633">[ 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>