2014-04-11 10:49:41 |
Oliver Grawert |
description |
with the next android package rebuild the unpacking of the android initrd for system-image based touch images will happen from the initrd. lxc-android-config needs to remove this code from /var/lib/lxc/android/pre-start.sh then
--- pre-start.shlet:~# d2014-04-11 10:47:07.000000000 +0000android/pre-start.sh
+++ /var/lib/lxc/android/pre-start.sh 2014-04-11 10:47:54.000000000 +0000
@@ -1,19 +1,17 @@
#!/bin/sh
if [ -e /android/system/boot/android-ramdisk.img ]; then
- mount -n -t tmpfs tmpfs $LXC_ROOTFS_PATH
INITRD=/android/system/boot/android-ramdisk.img
elif [ -e /boot/android-ramdisk.img ]; then
rm -Rf $LXC_ROOTFS_PATH
mkdir -p $LXC_ROOTFS_PATH
INITRD=/boot/android-ramdisk.img
+ cd $LXC_ROOTFS_PATH
+ cat $INITRD | gzip -d | cpio -i
else
exit 1
fi
-cd $LXC_ROOTFS_PATH
-cat $INITRD | gzip -d | cpio -i
-
# Create /dev/pts if missing
mkdir -p $LXC_ROOTFS_PATH/dev/pts |
with the next android package rebuild the unpacking of the android initrd for system-image based touch images will happen from the initrd. lxc-android-config needs to remove this code from /var/lib/lxc/android/pre-start.sh then
--- pre-start.shlet:~# d2014-04-11 10:47:07.000000000 +0000android/pre-start.sh
+++ /var/lib/lxc/android/pre-start.sh 2014-04-11 10:47:54.000000000 +0000
@@ -1,19 +1,17 @@
#!/bin/sh
if [ -e /android/system/boot/android-ramdisk.img ]; then
- mount -n -t tmpfs tmpfs $LXC_ROOTFS_PATH
INITRD=/android/system/boot/android-ramdisk.img
elif [ -e /boot/android-ramdisk.img ]; then
rm -Rf $LXC_ROOTFS_PATH
mkdir -p $LXC_ROOTFS_PATH
INITRD=/boot/android-ramdisk.img
+ cd $LXC_ROOTFS_PATH
+ cat $INITRD | gzip -d | cpio -i
else
exit 1
fi
-cd $LXC_ROOTFS_PATH
-cat $INITRD | gzip -d | cpio -i
-
# Create /dev/pts if missing
mkdir -p $LXC_ROOTFS_PATH/dev/pts |
|