summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2013-January/021749.html
blob: 00de1e1584abb1ee0489d3fcadbde406db8233f8 (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] GRUB can't see HD from chroot unless parent /dev is bind-mounted in chroot ?
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20GRUB%20can%27t%20see%20HD%20from%20chroot%20unless%20parent%20/dev%0A%20is%20bind-mounted%20in%20chroot%20%3F&In-Reply-To=%3C50F7D9CA.4090708%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="021748.html">
   <LINK REL="Next"  HREF="021722.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] GRUB can't see HD from chroot unless parent /dev is bind-mounted in chroot ?</H1>
    <B>Colin Guthrie</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20GRUB%20can%27t%20see%20HD%20from%20chroot%20unless%20parent%20/dev%0A%20is%20bind-mounted%20in%20chroot%20%3F&In-Reply-To=%3C50F7D9CA.4090708%40colin.guthr.ie%3E"
       TITLE="[Mageia-dev] GRUB can't see HD from chroot unless parent /dev is bind-mounted in chroot ?">mageia at colin.guthr.ie
       </A><BR>
    <I>Thu Jan 17 12:00:26 CET 2013</I>
    <P><UL>
        <LI>Previous message: <A HREF="021748.html">[Mageia-dev] GRUB can't see HD from chroot unless parent /dev is bind-mounted in chroot ?
</A></li>
        <LI>Next message: <A HREF="021722.html">[Mageia-dev] GRUB can't see HD from chroot unless parent /dev is bind-mounted in chroot ?
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#21749">[ date ]</a>
              <a href="thread.html#21749">[ thread ]</a>
              <a href="subject.html#21749">[ subject ]</a>
              <a href="author.html#21749">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>'Twas brillig, and Bruno Cornec at 17/01/13 10:35 did gyre and gimble:
&gt;<i> Colin Guthrie said on Thu, Jan 17, 2013 at 09:45:27AM +0000:
</I>&gt;<i> 
</I>&gt;&gt;<i> If you would like to detail the problems with squid and point at a
</I>&gt;&gt;<i> detailed bug report I can take a look or at least advise on the best
</I>&gt;&gt;<i> steps to take to get a really solid system.
</I>&gt;<i> 
</I>&gt;<i> I've detailed my feedback here:
</I>&gt;<i> <A HREF="http://brunocornec.wordpress.com/2013/01/07/a-mageia-based-firewall-with-auto_inst-and-lots-of-other-stuff-like-chrooted-squid/">http://brunocornec.wordpress.com/2013/01/07/a-mageia-based-firewall-with-auto_inst-and-lots-of-other-stuff-like-chrooted-squid/</A>
</I>
I've not read fully, but you don't even appear to have written a systemd
unit to tell systemd about your chrooted environment or customised the
init script for squid to run inside a chroot.

Systemd has one of the best set of documentation available on any
project I've worked on. There are so many man pages, wiki posts and
blogs documenting the various features.

I appreciate you may not like it but it really simplifies things
generally. Instead of two screens of bash you need to read you've got
half a dozen attributes to read.

As detailed in the link I already sent it should be quite trivial to
configure things in a chroot and systemd is expecting to find a pid file
from somewhere then that will be listed in the initscript or systemd
unit both of which can be easily customised to look for that file
directly inside the chroot.

In the case of squid, it's the &quot;pidfile&quot; line of the initscript:

<A HREF="http://svnweb.mageia.org/packages/cauldron/squid/current/SOURCES/squid.init?view=markup">http://svnweb.mageia.org/packages/cauldron/squid/current/SOURCES/squid.init?view=markup</A>

See line 12.

Just editing that and including the correct path would have &quot;made
systemd happy&quot;.


Really this is just a (perfectly understandable) lack of understanding.
I appreciate with any change it takes an amount of effort to learn new
things. But really sysvinit was not &quot;simple&quot;. There are lots of gotchas
to watch out for (like a user doing a restart and having the daemon
inherit the users execution environment which can have many weird
effects and fallouts and which will cause things to behave differently
on next boot; and like not knowing if some process is started by an
initscript or via inittab and why you should use a script vs. inittab
entry (the latter having some kind of trivial restart logic built in
being the usual reasoning)). Lots of things come out of the woodwork
when you really dig in to it. Systemd's not perfect and I accept that
but it is getting there and the breadth and depth of the documentation
is still one of the major benefits IMO. sysadmins of tomorrow should
have a much, much clearer understanding of what's going on on their
systems and how they work.

YMMV of course :)

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="021748.html">[Mageia-dev] GRUB can't see HD from chroot unless parent /dev is bind-mounted in chroot ?
</A></li>
	<LI>Next message: <A HREF="021722.html">[Mageia-dev] GRUB can't see HD from chroot unless parent /dev is bind-mounted in chroot ?
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#21749">[ date ]</a>
              <a href="thread.html#21749">[ thread ]</a>
              <a href="subject.html#21749">[ subject ]</a>
              <a href="author.html#21749">[ 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>