lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090313002913.GC13764@localhost.localdomain>
Date:	Thu, 12 Mar 2009 20:29:13 -0400
From:	Neil Horman <nhorman@...driver.com>
To:	"Mike (mwester)" <mwester@....net>
Cc:	Christer Weinigel <christer@...nigel.se>,
	David Miller <davem@...emloft.net>, shemminger@...tta.com,
	s.hauer@...gutronix.de, yanok@...raft.com,
	linux-arm-kernel@...ts.arm.linux.org.uk, netdev@...r.kernel.org,
	wd@...x.de, dzu@...x.de
Subject: Re: [PATCH] dnet: Dave DNET ethernet controller driver

On Thu, Mar 12, 2009 at 03:24:20PM -0500, Mike (mwester) wrote:
> Neil Horman wrote:
> 
> > What exactly is so difficult about cpio-ing up an initramfs to do this work with
> > sed and ifconfig? You make it sound like its an impossible barrier. Its really
> > quite simple
> 
> Can you share your scripts and tools for creating an initramfs so
> easily?  I too run into this problem -- I've always used the
> kernel-provided mechanism to DHCP and do the nfs mount of the rootfs,
> but if the initramfs is the right way to do that, then I'll be happy to
> change.
> 
> It always looked rather daunting to me, and a lot of extra effort
> compared to letting the kernel do the job, but if it really is so easy,
> then I'll be happy to change my practices.
> 
> Thanks!
> Mike (mwester)
Sure, you'll find my mkduprd script in the kexec-tools package for fedora,
you're welcome to tear it up to suit your needs.

By way of precaution, I'll tell you that the script is much larger than it needs
to be, since its purpose is to copy a vmcore to several various locations.

In short summary, all you need to make an initramfs is:

1) create a rootfs directory tree somewhere, call it $INITRD_ROOT
2) populate the initrd with any applications you need for your purpose
3) create an executable file , called $INITRD_ROOT/init
4) $INITRD_ROOT/init should do whatever you want the initramfs to do, in
mkdumprd I make it a shell script that does various and sunry things, although
you could do something as simple as making it run /bin/sh to give you a shell
prompt.
5)cd $INITRD_ROOT; cpio --quiet -c -o /tmp/initramfs; gzip -9 /tmp/initramfs

thats it.
Neil

> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ