Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fw-initramfs.git;a=commitdiff;h=7d62e04d7fff8f3294d569cf30efd4ba72e53ca2

commit 7d62e04d7fff8f3294d569cf30efd4ba72e53ca2
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Thu Nov 19 23:34:18 2009 +0100

create_initramfs.sh
*build busybox as lvm, mdam..

diff --git a/create_initramfs.sh b/create_initramfs.sh
index 8ed2bd7..7a96d57 100755
--- a/create_initramfs.sh
+++ b/create_initramfs.sh
@@ -55,18 +55,18 @@ Fsed "#!/bin/sh" "#!/bin/ash" 
${DIRTEMP}/work/initramfs/etc/modules.sh
#####################################################################
# append busybox
#####################################################################
-good_msg "Downloading and copying static busybox"
-wget 
ftp://ftp.frugalware.org/pub/other/people/bouleetbil/busybox/busybox-1.15.2-2-i686.fpm
-pacman-g2 -U busybox-1.15.2-2-i686.fpm --noconfirm
-rm -rf busybox-1.15.2-2-i686.fpm
-cp -prf /usr/share/busybox/* ${DIRTEMP}/work/initramfs/
-rm ${DIRTEMP}/work/initramfs/linuxrc
-chmod +x ${DIRTEMP}/work/initramfs/bin/busybox
-cd ${DIRTEMP}/work/initramfs
-ln -sf busybox bin/sh
+#good_msg "Downloading and copying static busybox"
+#wget 
ftp://ftp.frugalware.org/pub/other/people/bouleetbil/busybox/busybox-1.15.2-2-i686.fpm
+#pacman-g2 -U busybox-1.15.2-2-i686.fpm --noconfirm
+#rm -rf busybox-1.15.2-2-i686.fpm
+#cp -prf /usr/share/busybox/* ${DIRTEMP}/work/initramfs/
+#rm ${DIRTEMP}/work/initramfs/linuxrc
+#chmod +x ${DIRTEMP}/work/initramfs/bin/busybox
+#cd ${DIRTEMP}/work/initramfs
+#ln -sf busybox bin/sh

#####################################################################
-# append static lvm2 dm
+# append static lvm2 dm busybox
#####################################################################

good_msg 'create static binary'
@@ -80,6 +80,15 @@ cp ${DESTBUILD}/lvm/sbin/dmsetup.static 
$DIRTEMP/work/initramfs/bin/dmsetup ||
good_msg "Install mdadm to initramfs"
cp ${DESTBUILD}/mdadm/sbin/mdadm $DIRTEMP/work/initramfs/sbin/mdadm ||
die_msg "couldn't install mdadm to initramfs !"
+good_msg "Install busybox to initramfs"
+cp -R ${DESTBUILD}/busybox/* $DIRTEMP/work/initramfs/ ||
+       die_msg "couldn't install busybox to initramfs !"
+rm ${DIRTEMP}/work/initramfs/linuxrc ||
+       die_msg "couldn't install busybox to initramfs !"
+chmod +x ${DIRTEMP}/work/initramfs/bin/busybox
+cd ${DIRTEMP}/work/initramfs
+ln -sf busybox bin/sh
+
#####################################################################
# append modules
#####################################################################
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to