natty: bind /sys to /target/sys before running update-initramfs

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 14 years ago
parent f07949eac7
commit ebfdc24696

@ -3,7 +3,7 @@ new file mode 100755
index 0000000..6d06fc7 index 0000000..6d06fc7
--- /dev/null --- /dev/null
+++ b/usr/lib/finish-install.d/08rcn-omap +++ b/usr/lib/finish-install.d/08rcn-omap
@@ -0,0 +1,44 @@ @@ -0,0 +1,46 @@
+#!/bin/sh -e +#!/bin/sh -e
+cp /etc/flash-kernel.conf /target/etc/flash-kernel.conf +cp /etc/flash-kernel.conf /target/etc/flash-kernel.conf
+cp /etc/ttyO2.conf /target/etc/init/ttyO2.conf +cp /etc/ttyO2.conf /target/etc/init/ttyO2.conf
@ -40,9 +40,11 @@ index 0000000..6d06fc7
+ +
+ rm -f /etc/rcn.conf + rm -f /etc/rcn.conf
+ +
+ mount -o bind /sys /target/sys
+ chroot /target update-initramfs -c -k `uname -r` + chroot /target update-initramfs -c -k `uname -r`
+ chroot /target mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d /boot/initrd.img-`uname -r` /boot/uInitrd + chroot /target mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d /boot/initrd.img-`uname -r` /boot/uInitrd
+ cp /target/boot/uInitrd /tmp/mmc/uInitrd + cp /target/boot/uInitrd /tmp/mmc/uInitrd
+ umount /target/sys
+ +
+ sync + sync
+ umount /tmp/mmc + umount /tmp/mmc

Loading…
Cancel
Save