diff options
Diffstat (limited to 'zarb-ml/mageia-dev/2013-January/021749.html')
-rw-r--r-- | zarb-ml/mageia-dev/2013-January/021749.html | 159 |
1 files changed, 159 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2013-January/021749.html b/zarb-ml/mageia-dev/2013-January/021749.html new file mode 100644 index 000000000..00de1e158 --- /dev/null +++ b/zarb-ml/mageia-dev/2013-January/021749.html @@ -0,0 +1,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: +><i> Colin Guthrie said on Thu, Jan 17, 2013 at 09:45:27AM +0000: +</I>><i> +</I>>><i> If you would like to detail the problems with squid and point at a +</I>>><i> detailed bug report I can take a look or at least advise on the best +</I>>><i> steps to take to get a really solid system. +</I>><i> +</I>><i> I've detailed my feedback here: +</I>><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 "pidfile" 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 "made +systemd happy". + + +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 "simple". 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> |