diff options
Diffstat (limited to 'zarb-ml/mageia-dev/2011-December/010128.html')
-rw-r--r-- | zarb-ml/mageia-dev/2011-December/010128.html | 153 |
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: +><i> On Sat, 03 Dec 2011 01:05:31 -0500, Thomas Backlund <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">tmb at mageia.org</A>> wrote: +</I>><i> +</I>><i> Fyi. On one of my cauldron installs, I have /usr in a lvm +</I>><i> logical volume. In order to get this to be bootable, I +</I>><i> modified /etc/dracut.conf to have +</I>><i> add_drivers+="dm_mod dm_crypt" +</I>><i> and +</I>><i> install_items+=(/bin/grep /lib/libpcre.so.0.0.1 /lib/libpcre.so.0 +</I>><i> /lib/libdevmapper-event.so.1.02 /lib/libdevmapper.so.1.02 +</I>><i> /lib/libreadline.so.6 /lib/libncurses.so.5 /sbin/lvm +</I>><i> /lib/modules/3.1.4-server-1.mga2/kernel/drivers/md/dm-crypt.ko.gz +</I>><i> /lib/modules/3.1.4-server-1.mga2/kernel/drivers/md/dm-mod.ko.gz +</I>><i> /sbin/dmsetup /sbin/lsmod ) +</I>><i> +</I>><i> I modified /usr/share/dracut/modules.d/98usrmount/mount-usr.sh to have ... +</I>><i> #!/bin/sh +</I>><i> # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +</I>><i> # ex: ts=8 sw=4 sts=4 et filetype=sh +</I>><i> +</I>><i> type info >/dev/null 2>&1 || . /lib/dracut-lib.sh +</I>><i> type fsck_single >/dev/null 2>&1 || . /lib/fs-lib.sh +</I>><i> +</I>><i> mount_usr() +</I>><i> { +</I>><i> local _dev _mp _fs _opts _rest _fs_found _ret _mount_point +</I>><i> if ! __fgrep "device-mapper" /proc/devices >/dev/null 2>&1 ; then +</I>><i> modprobe dm-mod >/dev/null 2>&1 +</I>><i> fi +</I>><i> /sbin/lvm vgchange -a y --sysinit +</I>><i> fsck_mount() +</I>><i> ( +</I>><i> # check, if we have to mount the filesystem +</I>><i> _fs_found="" +</I>><i> while read _dev _mp _fs _opts _rest; do +</I>><i> if [ "$_mp" = "/$_mount_point" ]; then +</I>><i> echo "$_dev $NEWROOT/$_mp $_fs ${_opts} $_rest" +</I>><i> _fs_found="1" +</I>><i> break +</I>><i> fi +</I>><i> done < "$NEWROOT/etc/fstab" >> /etc/fstab +</I>><i> if [ "x$_fs_found" != "x" ]; then +</I>><i> # we have to mount it +</I>><i> fsck_single "$_dev" "$_fs" +</I>><i> _ret=$? +</I>><i> echo $_ret >/run/initramfs/$_mount_point-fsck +</I>><i> if [ $_ret -ne 255 ]; then +</I>><i> info "Mounting /$_mount_point" +</I>><i> mount "$NEWROOT/$_mount_point" 2>&1 | vinfo +</I>><i> fi +</I>><i> fi +</I>><i> ) +</I>><i> _mount_point="usr"; fsck_mount +</I>><i> _mount_point="var"; fsck_mount +</I>><i> _mount_point="var/mnt"; fsck_mount +</I>><i> _mount_point="opt"; fsck_mount +</I>><i> _mount_point="tmp"; fsck_mount +</I>><i> _mount_point="home"; fsck_mount +</I>><i> } +</I>><i> +</I>><i> mount_usr +</I>><i> +</I>><i> I initially only had the /usr being mounted, but found that when it +</I>><i> got around to trying to mount the next lv, it would report that the +</I>><i> mount timed out due to a dependency failure, but with no indication +</I>><i> of why. I ended up modifying the script to mount all of my lvm +</I>><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> |