summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2011-December/010126.html
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-04-14 13:46:12 +0000
committerNicolas Vigier <boklm@mageia.org>2013-04-14 13:46:12 +0000
commit1be510f9529cb082f802408b472a77d074b394c0 (patch)
treeb175f9d5fcb107576dabc768e7bd04d4a3e491a0 /zarb-ml/mageia-dev/2011-December/010126.html
parentfa5098cf210b23ab4f419913e28af7b1b07dafb2 (diff)
downloadarchives-master.tar
archives-master.tar.gz
archives-master.tar.bz2
archives-master.tar.xz
archives-master.zip
Add zarb MLs html archivesHEADmaster
Diffstat (limited to 'zarb-ml/mageia-dev/2011-December/010126.html')
-rw-r--r--zarb-ml/mageia-dev/2011-December/010126.html129
1 files changed, 129 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2011-December/010126.html b/zarb-ml/mageia-dev/2011-December/010126.html
new file mode 100644
index 000000000..c93090186
--- /dev/null
+++ b/zarb-ml/mageia-dev/2011-December/010126.html
@@ -0,0 +1,129 @@
+<!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=%3Cop.v5wplxqen7mcit%40hodgins.homeip.net%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="010120.html">
+ <LINK REL="Next" HREF="010128.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.</H1>
+ <B>David W. Hodgins</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=%3Cop.v5wplxqen7mcit%40hodgins.homeip.net%3E"
+ TITLE="[Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.">davidwhodgins at gmail.com
+ </A><BR>
+ <I>Sat Dec 3 10:21:23 CET 2011</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="010120.html">[Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.
+</A></li>
+ <LI>Next message: <A HREF="010128.html">[Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#10126">[ date ]</a>
+ <a href="thread.html#10126">[ thread ]</a>
+ <a href="subject.html#10126">[ subject ]</a>
+ <a href="author.html#10126">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>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:
+
+Fyi. On one of my cauldron installs, I have /usr in a lvm
+logical volume. In order to get this to be bootable, I
+modified /etc/dracut.conf to have
+add_drivers+=&quot;dm_mod dm_crypt&quot;
+and
+install_items+=(/bin/grep /lib/libpcre.so.0.0.1 /lib/libpcre.so.0 /lib/libdevmapper-event.so.1.02 /lib/libdevmapper.so.1.02 /lib/libreadline.so.6 /lib/libncurses.so.5 /sbin/lvm /lib/modules/3.1.4-server-1.mga2/kernel/drivers/md/dm-crypt.ko.gz /lib/modules/3.1.4-server-1.mga2/kernel/drivers/md/dm-mod.ko.gz /sbin/dmsetup /sbin/lsmod )
+
+I modified /usr/share/dracut/modules.d/98usrmount/mount-usr.sh to have ...
+#!/bin/sh
+# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
+# ex: ts=8 sw=4 sts=4 et filetype=sh
+
+type info &gt;/dev/null 2&gt;&amp;1 || . /lib/dracut-lib.sh
+type fsck_single &gt;/dev/null 2&gt;&amp;1 || . /lib/fs-lib.sh
+
+mount_usr()
+{
+ local _dev _mp _fs _opts _rest _fs_found _ret _mount_point
+ if ! __fgrep &quot;device-mapper&quot; /proc/devices &gt;/dev/null 2&gt;&amp;1 ; then
+ modprobe dm-mod &gt;/dev/null 2&gt;&amp;1
+ fi
+ /sbin/lvm vgchange -a y --sysinit
+fsck_mount()
+(
+ # check, if we have to mount the filesystem
+ _fs_found=&quot;&quot;
+ while read _dev _mp _fs _opts _rest; do
+ if [ &quot;$_mp&quot; = &quot;/$_mount_point&quot; ]; then
+ echo &quot;$_dev $NEWROOT/$_mp $_fs ${_opts} $_rest&quot;
+ _fs_found=&quot;1&quot;
+ break
+ fi
+ done &lt; &quot;$NEWROOT/etc/fstab&quot; &gt;&gt; /etc/fstab
+ if [ &quot;x$_fs_found&quot; != &quot;x&quot; ]; then
+ # we have to mount it
+ fsck_single &quot;$_dev&quot; &quot;$_fs&quot;
+ _ret=$?
+ echo $_ret &gt;/run/initramfs/$_mount_point-fsck
+ if [ $_ret -ne 255 ]; then
+ info &quot;Mounting /$_mount_point&quot;
+ mount &quot;$NEWROOT/$_mount_point&quot; 2&gt;&amp;1 | vinfo
+ fi
+ fi
+)
+ _mount_point=&quot;usr&quot;; fsck_mount
+ _mount_point=&quot;var&quot;; fsck_mount
+ _mount_point=&quot;var/mnt&quot;; fsck_mount
+ _mount_point=&quot;opt&quot;; fsck_mount
+ _mount_point=&quot;tmp&quot;; fsck_mount
+ _mount_point=&quot;home&quot;; fsck_mount
+}
+
+mount_usr
+
+I initially only had the /usr being mounted, but found that when it
+got around to trying to mount the next lv, it would report that the
+mount timed out due to a dependency failure, but with no indication
+of why. I ended up modifying the script to mount all of my lvm
+partitions, in the initramfs, to get it to work.
+
+Regards, Dave Hodgins
+
+</PRE>
+
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="010120.html">[Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.
+</A></li>
+ <LI>Next message: <A HREF="010128.html">[Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#10126">[ date ]</a>
+ <a href="thread.html#10126">[ thread ]</a>
+ <a href="subject.html#10126">[ subject ]</a>
+ <a href="author.html#10126">[ 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>