needs to drop unpacking of the initrd

Bug #1306532 reported by Oliver Grawert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc-android-config (Ubuntu)
Fix Released
High
Oliver Grawert

Bug 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

Oliver Grawert (ogra)
description: updated
Changed in lxc-android-config (Ubuntu):
status: New → Triaged
importance: Undecided → High
assignee: nobody → Oliver Grawert (ogra)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc-android-config - 0.160

---------------
lxc-android-config (0.160) trusty; urgency=medium

  * drop redundant unzipping of the android initrd, we do it from the ubuntu
    initramfs now, no need ot run it again (LP: #1306532)
  * fix quoting in location service upstart job, make sure to only query the
    property system if it is really up (LP: #1306515)
 -- Oliver Grawert <email address hidden> Sat, 12 Apr 2014 15:20:36 +0200

Changed in lxc-android-config (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.