parent
f736315de7
commit
fbb805acf9
@ -0,0 +1,13 @@
|
||||
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,15 +1,22 @@
|
||||
diff --git a/lib/chroot-setup.sh b/lib/chroot-setup.sh
|
||||
index f582297..c98a5d5 100644
|
||||
index 629f541..783818a 100644
|
||||
--- a/lib/chroot-setup.sh
|
||||
+++ b/lib/chroot-setup.sh
|
||||
@@ -129,6 +129,12 @@ chroot_cleanup () {
|
||||
@@ -122,6 +122,19 @@ chroot_cleanup () {
|
||||
mv /target/sbin/initctl.REAL /target/sbin/initctl
|
||||
fi
|
||||
|
||||
+ /usr/sbin/flash_eraseall /dev/mtd2
|
||||
+
|
||||
+ mkdir -p /tmp/mmc
|
||||
+ mount /dev/mmcblk0p1 /tmp/mmc
|
||||
+ rm -f /tmp/mmc/boot.scr
|
||||
+ mv /tmp/mmc/normal.scr /tmp/mmc/boot.scr
|
||||
+
|
||||
+ if [ -e /tmp/mmc/limit.one ]; then
|
||||
+ cp /tmp/mmc/boot.scr /tmp/mmc/netinstall.scr
|
||||
+ cp /tmp/mmc/normal.scr /tmp/mmc/boot.scr
|
||||
+ rm -f /tmp/mmc/limit.one
|
||||
+ fi
|
||||
+
|
||||
+ umount /tmp/mmc
|
||||
+
|
||||
# Undo the mounts done by the packages during installation.
|
@ -1,20 +0,0 @@
|
||||
diff --git a/lib/chroot-setup.sh b/lib/chroot-setup.sh
|
||||
index 4a92c4f..7663f3f 100644
|
||||
--- a/lib/chroot-setup.sh
|
||||
+++ b/lib/chroot-setup.sh
|
||||
@@ -109,6 +109,15 @@ EOF
|
||||
# Avoid apt-listchanges doing anything.
|
||||
APT_LISTCHANGES_FRONTEND=none
|
||||
export APT_LISTCHANGES_FRONTEND
|
||||
+ cat > /target/etc/flash-kernel.conf <<FK
|
||||
+#!/bin/sh
|
||||
+
|
||||
+echo "flash-kernel stopped:"
|
||||
+echo "You are currently running the Community Kernel edition"
|
||||
+echo "remove /etc/flash-kernel.conf to run Ubuntu's Kernel"
|
||||
+exit
|
||||
+
|
||||
+FK
|
||||
|
||||
return 0
|
||||
}
|
Loading…
Reference in new issue