summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2011-December/010128.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-dev/2011-December/010128.html')
-rw-r--r--zarb-ml/mageia-dev/2011-December/010128.html153
1 files changed, 153 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2011-December/010128.html b/zarb-ml/mageia-dev/2011-December/010128.html
new file mode 100644
index 000000000..21fbe7b4a
--- /dev/null
+++ b/zarb-ml/mageia-dev/2011-December/010128.html
@@ -0,0 +1,153 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20RFC%3A%20Drop%20mkinitrd%20completely%20in%20favour%20of%20dracut.&In-Reply-To=%3C4ED9F236.5030800%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="010126.html">
+ <LINK REL="Next" HREF="010204.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.</H1>
+ <B>Colin Guthrie</B>
+ <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20RFC%3A%20Drop%20mkinitrd%20completely%20in%20favour%20of%20dracut.&In-Reply-To=%3C4ED9F236.5030800%40colin.guthr.ie%3E"
+ TITLE="[Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.">mageia at colin.guthr.ie
+ </A><BR>
+ <I>Sat Dec 3 10:56:06 CET 2011</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="010126.html">[Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.
+</A></li>
+ <LI>Next message: <A HREF="010204.html">[Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#10128">[ date ]</a>
+ <a href="thread.html#10128">[ thread ]</a>
+ <a href="subject.html#10128">[ subject ]</a>
+ <a href="author.html#10128">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>'Twas brillig, and David W. Hodgins at 03/12/11 09:21 did gyre and gimble:
+&gt;<i> On Sat, 03 Dec 2011 01:05:31 -0500, Thomas Backlund &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">tmb at mageia.org</A>&gt; wrote:
+</I>&gt;<i>
+</I>&gt;<i> Fyi. On one of my cauldron installs, I have /usr in a lvm
+</I>&gt;<i> logical volume. In order to get this to be bootable, I
+</I>&gt;<i> modified /etc/dracut.conf to have
+</I>&gt;<i> add_drivers+=&quot;dm_mod dm_crypt&quot;
+</I>&gt;<i> and
+</I>&gt;<i> install_items+=(/bin/grep /lib/libpcre.so.0.0.1 /lib/libpcre.so.0
+</I>&gt;<i> /lib/libdevmapper-event.so.1.02 /lib/libdevmapper.so.1.02
+</I>&gt;<i> /lib/libreadline.so.6 /lib/libncurses.so.5 /sbin/lvm
+</I>&gt;<i> /lib/modules/3.1.4-server-1.mga2/kernel/drivers/md/dm-crypt.ko.gz
+</I>&gt;<i> /lib/modules/3.1.4-server-1.mga2/kernel/drivers/md/dm-mod.ko.gz
+</I>&gt;<i> /sbin/dmsetup /sbin/lsmod )
+</I>&gt;<i>
+</I>&gt;<i> I modified /usr/share/dracut/modules.d/98usrmount/mount-usr.sh to have ...
+</I>&gt;<i> #!/bin/sh
+</I>&gt;<i> # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
+</I>&gt;<i> # ex: ts=8 sw=4 sts=4 et filetype=sh
+</I>&gt;<i>
+</I>&gt;<i> type info &gt;/dev/null 2&gt;&amp;1 || . /lib/dracut-lib.sh
+</I>&gt;<i> type fsck_single &gt;/dev/null 2&gt;&amp;1 || . /lib/fs-lib.sh
+</I>&gt;<i>
+</I>&gt;<i> mount_usr()
+</I>&gt;<i> {
+</I>&gt;<i> local _dev _mp _fs _opts _rest _fs_found _ret _mount_point
+</I>&gt;<i> if ! __fgrep &quot;device-mapper&quot; /proc/devices &gt;/dev/null 2&gt;&amp;1 ; then
+</I>&gt;<i> modprobe dm-mod &gt;/dev/null 2&gt;&amp;1
+</I>&gt;<i> fi
+</I>&gt;<i> /sbin/lvm vgchange -a y --sysinit
+</I>&gt;<i> fsck_mount()
+</I>&gt;<i> (
+</I>&gt;<i> # check, if we have to mount the filesystem
+</I>&gt;<i> _fs_found=&quot;&quot;
+</I>&gt;<i> while read _dev _mp _fs _opts _rest; do
+</I>&gt;<i> if [ &quot;$_mp&quot; = &quot;/$_mount_point&quot; ]; then
+</I>&gt;<i> echo &quot;$_dev $NEWROOT/$_mp $_fs ${_opts} $_rest&quot;
+</I>&gt;<i> _fs_found=&quot;1&quot;
+</I>&gt;<i> break
+</I>&gt;<i> fi
+</I>&gt;<i> done &lt; &quot;$NEWROOT/etc/fstab&quot; &gt;&gt; /etc/fstab
+</I>&gt;<i> if [ &quot;x$_fs_found&quot; != &quot;x&quot; ]; then
+</I>&gt;<i> # we have to mount it
+</I>&gt;<i> fsck_single &quot;$_dev&quot; &quot;$_fs&quot;
+</I>&gt;<i> _ret=$?
+</I>&gt;<i> echo $_ret &gt;/run/initramfs/$_mount_point-fsck
+</I>&gt;<i> if [ $_ret -ne 255 ]; then
+</I>&gt;<i> info &quot;Mounting /$_mount_point&quot;
+</I>&gt;<i> mount &quot;$NEWROOT/$_mount_point&quot; 2&gt;&amp;1 | vinfo
+</I>&gt;<i> fi
+</I>&gt;<i> fi
+</I>&gt;<i> )
+</I>&gt;<i> _mount_point=&quot;usr&quot;; fsck_mount
+</I>&gt;<i> _mount_point=&quot;var&quot;; fsck_mount
+</I>&gt;<i> _mount_point=&quot;var/mnt&quot;; fsck_mount
+</I>&gt;<i> _mount_point=&quot;opt&quot;; fsck_mount
+</I>&gt;<i> _mount_point=&quot;tmp&quot;; fsck_mount
+</I>&gt;<i> _mount_point=&quot;home&quot;; fsck_mount
+</I>&gt;<i> }
+</I>&gt;<i>
+</I>&gt;<i> mount_usr
+</I>&gt;<i>
+</I>&gt;<i> I initially only had the /usr being mounted, but found that when it
+</I>&gt;<i> got around to trying to mount the next lv, it would report that the
+</I>&gt;<i> mount timed out due to a dependency failure, but with no indication
+</I>&gt;<i> of why. I ended up modifying the script to mount all of my lvm
+</I>&gt;<i> partitions, in the initramfs, to get it to work.
+</I>
+Cheers Dave. I'll speak to Harald to see how best to handle this in a
+more official way.
+
+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="010126.html">[Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.
+</A></li>
+ <LI>Next message: <A HREF="010204.html">[Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#10128">[ date ]</a>
+ <a href="thread.html#10128">[ thread ]</a>
+ <a href="subject.html#10128">[ subject ]</a>
+ <a href="author.html#10128">[ 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>