Goodbye, nash. We won't miss you.
Gitweb: http://git.kernel.org/?p=linux/kernel/git/davej/dracut.git;a=commit;h=6b0daf2e25a1fcd270eb89dc6b36d7e4432b1ca8 Commit: 6b0daf2e25a1fcd270eb89dc6b36d7e4432b1ca8 Parent: c968efbb13b3d1d88e6a3bc8f7b96f4bce9cee99 Author: Victor Lowther <[email protected]> AuthorDate: Mon Feb 16 19:16:31 2009 -0800 Committer: Dave Jones <[email protected]> CommitDate: Tue Feb 17 11:05:46 2009 -0500
Goodbye, nash. We won't miss you.
This supercedes my previous switch_root patches, and applies on top of davej's repo at git.kernel.org.
Nash is gone. In its place we have a reasonable switch_root implementation.
Of course, this switch_root is written in some rather hideous shell script, and relies on some rather dodgy hacks. Rewriting in C would help things out.
However, it should be distro-independent, and it gets the job done.
--- TODO | 9 +--- dracut.spec | 2 - init | 43 ++++++++++----------- modules/99base | 1 - switch_root | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 5 files changed, 134 insertions(+), 34 deletions(-)
TODO +3 -6
@@ -4,12 +4,9 @@ are/should be marked with "FIXME" in the code INITRAMFS TODO -------------- -* Currently, our switch_root command uses nash's switchroot. Getting -a reasonable switchroot implementation into util-linux-ng is a -pre-condition for support on other distros. pjones has a basic -implementation at -http://pjones.fedorapeople.org/mkstart/usr/lib/mkstart/switchroot.c -and I've asked kzak about util-linux inclusion +* We have a horribly ugly switchroot implementation whose only + good point is that it gets rid of our dependency on nash. + It needs to be replaced by something nicer. * The hard-coded list of udev rules that we care about is kind of lame. See about getting /lib/udev/initrules.d or similar for storing the rules that we care about in the initramfs. These could be
dracut.spec +0 -2
@@ -19,9 +19,7 @@ Requires: findutils Requires: grep Requires: mktemp Requires: mount -Requires: nash Requires: bash -Requires: /usr/bin/eu-readelf Obsoletes: mkinitrd < 7.0 Provides: mkinitrd = 7.0 BuildArch: noarch
init +20 -23
78 lines not on this page · raw message
modules/99base +0 -1
@@ -1,6 +1,5 @@ #!/bin/bash dracut_install mount mknod mkdir modprobe pidof sleep chroot echo sed sh ls - # install our scripts and hooks inst "$initfile" "/init" inst "$switchroot" "/sbin/switch_root"
switch_root +111 -2
114 lines not on this page · raw message
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html