parent
234b574e2c
commit
a1faac1d37
@ -1,13 +0,0 @@
|
|||||||
diff --git a/lib/chroot-setup.sh b/lib/chroot-setup.sh
|
|
||||||
index 61bc6ae..629f541 100644
|
|
||||||
--- a/lib/chroot-setup.sh
|
|
||||||
+++ b/lib/chroot-setup.sh
|
|
||||||
@@ -110,6 +110,8 @@ EOF
|
|
||||||
APT_LISTCHANGES_FRONTEND=none
|
|
||||||
export APT_LISTCHANGES_FRONTEND
|
|
||||||
|
|
||||||
+ cp /etc/flash-kernel.conf /target/etc/flash-kernel.conf
|
|
||||||
+
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
|||||||
diff --git a/lib/chroot-setup.sh b/lib/chroot-setup.sh
|
|
||||||
index c5fbc37..8cc0ea4 100644
|
|
||||||
--- a/lib/chroot-setup.sh
|
|
||||||
+++ b/lib/chroot-setup.sh
|
|
||||||
@@ -111,6 +111,7 @@ EOF
|
|
||||||
export APT_LISTCHANGES_FRONTEND
|
|
||||||
|
|
||||||
cp /etc/flash-kernel.conf /target/etc/flash-kernel.conf
|
|
||||||
+ cp /etc/e2fsck.conf /target/etc/e2fsck.conf
|
|
||||||
|
|
||||||
return 0
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
diff --git a/lib/chroot-setup.sh b/lib/chroot-setup.sh
|
|
||||||
index 5351a01..58fa8f7 100644
|
|
||||||
--- a/lib/chroot-setup.sh
|
|
||||||
+++ b/lib/chroot-setup.sh
|
|
||||||
@@ -135,6 +135,7 @@ chroot_cleanup () {
|
|
||||||
cp /tmp/mmc/normal.scr /tmp/mmc/boot.scr
|
|
||||||
cp /tmp/mmc/uInitrd /tmp/mmc/uInitrd.net
|
|
||||||
cp /tmp/mmc/uInitrd.final /tmp/mmc/uInitrd
|
|
||||||
+ cp -r /lib/modules/`uname -r`/ /target/lib/modules/
|
|
||||||
rm -f /etc/rcn.conf
|
|
||||||
umount /tmp/mmc
|
|
||||||
fi
|
|
@ -1,27 +1,36 @@
|
|||||||
diff --git a/lib/chroot-setup.sh b/lib/chroot-setup.sh
|
diff --git a/lib/chroot-setup.sh b/lib/chroot-setup.sh
|
||||||
index 629f541..c5fbc37 100644
|
index 61bc6ae..5c7778a 100644
|
||||||
--- a/lib/chroot-setup.sh
|
--- a/lib/chroot-setup.sh
|
||||||
+++ b/lib/chroot-setup.sh
|
+++ b/lib/chroot-setup.sh
|
||||||
@@ -122,6 +122,23 @@ chroot_cleanup () {
|
@@ -110,6 +110,9 @@ EOF
|
||||||
|
APT_LISTCHANGES_FRONTEND=none
|
||||||
|
export APT_LISTCHANGES_FRONTEND
|
||||||
|
|
||||||
|
+ cp /etc/flash-kernel.conf /target/etc/flash-kernel.conf
|
||||||
|
+ cp /etc/e2fsck.conf /target/etc/e2fsck.conf
|
||||||
|
+
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -120,6 +123,22 @@ chroot_cleanup () {
|
||||||
mv /target/sbin/initctl.REAL /target/sbin/initctl
|
mv /target/sbin/initctl.REAL /target/sbin/initctl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
+ if [ -e /target/boot/initrd.img ]; then
|
+ if [ -e /target/boot/initrd.img ]; then
|
||||||
+ /usr/sbin/flash_eraseall /dev/mtd2
|
+ /usr/sbin/flash_eraseall /dev/mtd2
|
||||||
+ fi
|
+ fi
|
||||||
+
|
+
|
||||||
+
|
|
||||||
+ if [ -e /etc/rcn.conf ]; then
|
+ if [ -e /etc/rcn.conf ]; then
|
||||||
+ mkdir -p /tmp/mmc
|
+ mkdir -p /tmp/mmc
|
||||||
+ mount /dev/mmcblk0p1 /tmp/mmc
|
+ mount /dev/mmcblk0p1 /tmp/mmc
|
||||||
+ cp /tmp/mmc/boot.scr /tmp/mmc/netinstall.scr
|
+ cp /tmp/mmc/boot.scr /tmp/mmc/netinstall.scr
|
||||||
+ cp /tmp/mmc/normal.scr /tmp/mmc/boot.scr
|
+ cp /tmp/mmc/normal.scr /tmp/mmc/boot.scr
|
||||||
+ cp /tmp/mmc/uInitrd /tmp/mmc/uInitrd.net
|
+ cp /tmp/mmc/uInitrd /tmp/mmc/uInitrd.net
|
||||||
+ cp /tmp/mmc/uInitrd.final /tmp/mmc/uInitrd
|
+ cp /tmp/mmc/uInitrd.final /tmp/mmc/uInitrd
|
||||||
|
+ cp -r /lib/modules/`uname -r`/ /target/lib/modules/
|
||||||
+ rm -f /etc/rcn.conf
|
+ rm -f /etc/rcn.conf
|
||||||
+ umount /tmp/mmc
|
+ umount /tmp/mmc
|
||||||
+ fi
|
+ fi
|
||||||
+
|
|
||||||
+
|
+
|
||||||
# Undo the mounts done by the packages during installation.
|
# Undo the mounts done by the packages during installation.
|
||||||
# Reverse sorting to umount the deepest mount points first.
|
# Reverse sorting to umount the deepest mount points first.
|
Loading…
Reference in new issue