From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: olivier.lahaye1-GANU6spQydw@public.gmane.org,
initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Advanced dracut use help or tips needed.
Date: Wed, 22 Jan 2014 13:17:23 +0100 [thread overview]
Message-ID: <52DFB6D3.1090907@redhat.com> (raw)
In-Reply-To: <1726532839.368644133.1389443257576.JavaMail.root-NPLbsSYf/7dsFmKuirFwRhh1pbbyJDp15NbjCUgZEJk@public.gmane.org>
On 01/11/2014 01:27 PM, olivier.lahaye1-GANU6spQydw@public.gmane.org wrote:
>
> Hi,
>
> Please forgive me if this is the wrong list to post, but I didn't find any
> other places to ask what I'm looking for regarding advanced usage of dracut.
>
>
> I'm part of systemimager developpers, a tool to build and deploy linux images
> on computers (often used in clusters to deploy nodes).
>
> This perl software is building it's own initramfs from scratch (build kernel
> and all content), unfortunately, this is problematic as it needs a recent
> kernel to support latest hardware.(detect disk or net adapters)
> Unfortunateley, trying to build everything on an rhel6 distro for example
> will result in bad binaries. Indeed, if we build kernel 3.10 on a 2.6 kernel
> (it works), but then building lvm tools (bad binaries) as the tools will be
> built with kernel 2.6 system includes and run on a 3.10 kernel resulting at
> best in crashes and at worse in data loss. More over, it is based on udev
> only (no systemd or network manager). thus, now it's even more difficult to
> build it (difficult to build udev without systemd, ...)
>
> My aim would be to drop this old way of doing stuff and use dracut to build a
> bootable image using system installed binaries. Indeed, this image is only
> used to boot the node, create disk partition table, format partitions, init
> network download some post install scripts, start a custom deployment
> monitoring daemon and copy the image from server using preconfigured method
> (either rsync, nfs, bittorrent, ...) (and reboot) As linux vendors are
> backporting support for latest hardware, having the latest binaries is not
> needed anymore. using booted system materials will be sufficient.
>
> For example, here is the actual content of the initrd_template we are using:
> http://olivier.lahaye1.free.fr/OSCAR/initrd_template.txt It has no second
> stage and it is far from being optimized but it does more or less what we
> need.
>
> Despite my googleing, I've been unable to find examples other than creating a
> basic initial ramdisk for booting an installed OS. I was even unable to find
> how the fedora or redhat pxe boot image were created (and how they are
> built).
>
> what I'm looking for would be some sort of comand that would do:
>
> dracut --include-all-network-drivers --include-all-disk-drivers
> --include-nfsandother_drivers
> --put_what_is_needed_for_an_advanced_initramfs(udev+systemd+networkmanager+...)
> --put_buzybox --add_binaries_from_running_system <list_of_binaries.txt>
> --add_binaries_required_libs_from_system --add_other_files
> --start_inital_system_tasks_like_systemd_then_jump_to_our_rcS_script
>
> I'd greatly apreciate any help, tip on how to proceed or even pointer to
> pages describing how the distro installation initial pxe disks are build (for
> example how the code calling the second stage is put into the image and from
> when it is taken from).
>
> Best regards.
>
https://www.kernel.org/pub/linux/utils/boot/dracut/dracut.html
https://www.kernel.org/pub/linux/utils/boot/dracut/dracut.html#NetworkBoot
next prev parent reply other threads:[~2014-01-22 12:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1729487458.368641100.1389443150192.JavaMail.root@spooler6-g27.priv.proxad.net>
[not found] ` <1729487458.368641100.1389443150192.JavaMail.root-NPLbsSYf/7dsFmKuirFwRhh1pbbyJDp15NbjCUgZEJk@public.gmane.org>
2014-01-11 12:27 ` Advanced dracut use help or tips needed olivier.lahaye1-GANU6spQydw
[not found] ` <1726532839.368644133.1389443257576.JavaMail.root-NPLbsSYf/7dsFmKuirFwRhh1pbbyJDp15NbjCUgZEJk@public.gmane.org>
2014-01-13 10:02 ` Tim Mohlmann
2014-01-22 12:17 ` Harald Hoyer [this message]
[not found] ` <52DFB6D3.1090907-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-02-20 7:52 ` olivier.lahaye1-GANU6spQydw
[not found] ` <557206706.564515170.1392882748561.JavaMail.root-NPLbsSYf/7dsFmKuirFwRhh1pbbyJDp15NbjCUgZEJk@public.gmane.org>
2014-02-21 15:39 ` Harald Hoyer
[not found] ` <5307731D.80403-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-02-22 8:46 ` olivier.lahaye1-GANU6spQydw
[not found] ` <1065426580.573286201.1393058780798.JavaMail.root-NPLbsSYf/7dsFmKuirFwRhh1pbbyJDp15NbjCUgZEJk@public.gmane.org>
2014-02-24 8:20 ` Harald Hoyer
[not found] ` <530B00C4.10309-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-02-24 13:52 ` Olivier LAHAYE
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52DFB6D3.1090907@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=olivier.lahaye1-GANU6spQydw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.