diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-04-14 13:46:12 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-04-14 13:46:12 +0000 |
commit | 1be510f9529cb082f802408b472a77d074b394c0 (patch) | |
tree | b175f9d5fcb107576dabc768e7bd04d4a3e491a0 /zarb-ml/mageia-dev/2011-December/010126.html | |
parent | fa5098cf210b23ab4f419913e28af7b1b07dafb2 (diff) | |
download | archives-master.tar archives-master.tar.gz archives-master.tar.bz2 archives-master.tar.xz archives-master.zip |
Diffstat (limited to 'zarb-ml/mageia-dev/2011-December/010126.html')
-rw-r--r-- | zarb-ml/mageia-dev/2011-December/010126.html | 129 |
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 <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">tmb at mageia.org</A>> 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+="dm_mod dm_crypt" +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 >/dev/null 2>&1 || . /lib/dracut-lib.sh +type fsck_single >/dev/null 2>&1 || . /lib/fs-lib.sh + +mount_usr() +{ + local _dev _mp _fs _opts _rest _fs_found _ret _mount_point + if ! __fgrep "device-mapper" /proc/devices >/dev/null 2>&1 ; then + modprobe dm-mod >/dev/null 2>&1 + fi + /sbin/lvm vgchange -a y --sysinit +fsck_mount() +( + # check, if we have to mount the filesystem + _fs_found="" + while read _dev _mp _fs _opts _rest; do + if [ "$_mp" = "/$_mount_point" ]; then + echo "$_dev $NEWROOT/$_mp $_fs ${_opts} $_rest" + _fs_found="1" + break + fi + done < "$NEWROOT/etc/fstab" >> /etc/fstab + if [ "x$_fs_found" != "x" ]; then + # we have to mount it + fsck_single "$_dev" "$_fs" + _ret=$? + echo $_ret >/run/initramfs/$_mount_point-fsck + if [ $_ret -ne 255 ]; then + info "Mounting /$_mount_point" + mount "$NEWROOT/$_mount_point" 2>&1 | vinfo + fi + fi +) + _mount_point="usr"; fsck_mount + _mount_point="var"; fsck_mount + _mount_point="var/mnt"; fsck_mount + _mount_point="opt"; fsck_mount + _mount_point="tmp"; fsck_mount + _mount_point="home"; 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> |