initramfs-tools-ubuntu-touch-0.72/0000775000000000000000000000000012272167224014131 5ustar initramfs-tools-ubuntu-touch-0.72/usr/0000775000000000000000000000000012254067061014740 5ustar initramfs-tools-ubuntu-touch-0.72/usr/sbin/0000775000000000000000000000000012321041546015666 5ustar initramfs-tools-ubuntu-touch-0.72/usr/sbin/remove-cmdline-arg0000775000000000000000000000064712321041546021300 0ustar #!/bin/sh BOOT="LNX boot KERNEL" for i in $BOOT; do path=$(find /dev -name "$i"|grep disk| head -1) [ -n "$path" ] && break done OLDCMDLINE="$(abootimg -i $path|grep cmdline|sed -e 's/^.*cmdline = //') " echo $OLDCMDLINE| grep -q "empty cmdline" && OLDCMDLINE="" for line in $OLDCMDLINE; do [ "$line" = "$1" ] || NEWCMDLINE="$NEWCMDLINE $line" done abootimg -u $path -c "cmdline=$NEWCMDLINE" abootimg -i $path initramfs-tools-ubuntu-touch-0.72/usr/sbin/flash-touch-initrd0000775000000000000000000000151012272442401021315 0ustar #!/bin/sh BOOT="LNX boot KERNEL" INITRD="/usr/lib/ubuntu-touch-generic-initrd/initrd.img-touch" # we dont want to run if FLASH_KERNEL_SKIP is set, the ubuntu # image build system uses this if [ -n "$FLASH_KERNEL_SKIP" ]; then exit 0 fi # if there is "recovery" on the kernel cmdline, we are most # likely running in dual boot mode, do nothing then, else we # trash the android boot.img grep -q recovery /proc/cmdline && exit 0 case "$1" in /*) [ ! -e "$1" ] && echo "E: No initrd at $1" && exit 1 INITRD="$1" ;; -h|--help) echo "usage: $(basename $0) [path to initrd]" exit 0 ;; esac for i in $BOOT; do path=$(find /dev -name "$i"|grep disk| head -1) [ -n "$path" ] && break done [ -z "$path" ] && echo "E: No boot partition found !" && exit 1 abootimg -u $path -r $INITRD initramfs-tools-ubuntu-touch-0.72/usr/sbin/flash-touch-kernel0000775000000000000000000000161212267746076021332 0ustar #!/bin/sh BOOT="LNX boot KERNEL" KERNEL="/boot/vmlinuz-$(uname -r)" # we dont want to run if FLASH_KERNEL_SKIP is set, the ubuntu # image build system uses this if [ -n "$FLASH_KERNEL_SKIP" ]; then exit 0 fi # if there is "recovery" on the kernel cmdline, we are most # likely running in dual boot mode, do nothing then, else we # trash the android boot.img grep -q recovery /proc/cmdline && exit 0 case "$1" in /*) [ ! -e "$1" ] && echo "E: No kernel at $1" && exit 1 KERNEL="$1" ;; -h|--help) echo "usage: $(basename $0) [path to kernel]" exit 0 ;; esac for i in $BOOT; do path=$(find /dev -name "*$i*"|grep disk| head -1) [ -n "$path" ] && break done [ -z "$path" ] && echo "E: No boot partition found !" && exit 1 [ ! -e "$KERNEL" ] && echo "E: No kernel at $KERNEL please provide a proper path" && exit 1 abootimg -u $path -k $KERNEL initramfs-tools-ubuntu-touch-0.72/usr/sbin/append-cmdline-arg0000775000000000000000000000055712321041531021244 0ustar #!/bin/sh BOOT="LNX boot KERNEL" for i in $BOOT; do path=$(find /dev -name "$i"|grep disk| head -1) [ -n "$path" ] && break done OLDCMDLINE="$(abootimg -i $path|grep cmdline|sed -e 's/^.*cmdline = //') " echo $OLDCMDLINE| grep -q "empty cmdline" && OLDCMDLINE="" NEWCMDLINE="${OLDCMDLINE}${1}" abootimg -u $path -c "cmdline=$NEWCMDLINE" abootimg -i $path initramfs-tools-ubuntu-touch-0.72/hooks/0000775000000000000000000000000012272167140015251 5ustar initramfs-tools-ubuntu-touch-0.72/hooks/touch0000775000000000000000000000112412276005253016317 0ustar #!/bin/sh -e # initramfs hook for fixing broken rtc clock # without battery MINKVER="2.6.24" PREREQ="" # Output pre-requisites prereqs() { echo "$PREREQ" } case "$1" in prereqs) prereqs exit 0 ;; esac . /usr/share/initramfs-tools/hook-functions # reboot and adbd copy_exec /sbin/swapon /sbin copy_exec /sbin/reboot /sbin copy_exec /bin/chown /bin copy_exec /bin/readlink /sbin copy_exec /usr/bin/adbd /sbin copy_exec /lib/#DEB_HOST_MULTIARCH#/libz.so.1 copy_exec /lib/#DEB_HOST_MULTIARCH#/libcrypto.so.1.0.0 copy_exec /lib/#DEB_HOST_MULTIARCH#/libdl.so.2 initramfs-tools-ubuntu-touch-0.72/conf/0000775000000000000000000000000012254067061015054 5ustar initramfs-tools-ubuntu-touch-0.72/conf/touch0000664000000000000000000000003012252662252016113 0ustar BOOT=touch MODULES=list initramfs-tools-ubuntu-touch-0.72/fstab0000664000000000000000000000025512252662252015154 0ustar # override the forced fsck from /lib/init/fstab, we use a bindmount which confuses mountall /dev/root / rootfs defaults 0 0 # swap file /SWAP.swap none swap sw 0 0 initramfs-tools-ubuntu-touch-0.72/etc/0000775000000000000000000000000012254067061014702 5ustar initramfs-tools-ubuntu-touch-0.72/etc/initramfs/0000775000000000000000000000000012254067061016676 5ustar initramfs-tools-ubuntu-touch-0.72/etc/initramfs/post-update.d/0000775000000000000000000000000012254067061021365 5ustar initramfs-tools-ubuntu-touch-0.72/etc/initramfs/post-update.d/zz-flash-touch-initrd0000775000000000000000000000031512252662252025460 0ustar #!/bin/sh # we dont want to run if FLASH_KERNEL_SKIP is set, the ubuntu # image build system uses this if [ -n "$FLASH_KERNEL_SKIP" ]; then exit 0 fi /usr/sbin/flash-touch-initrd /boot/initrd.img-$1 initramfs-tools-ubuntu-touch-0.72/scripts/0000775000000000000000000000000012316565133015620 5ustar initramfs-tools-ubuntu-touch-0.72/scripts/panic/0000775000000000000000000000000012254067061016710 5ustar initramfs-tools-ubuntu-touch-0.72/scripts/panic/adbd0000775000000000000000000000104712252662252017533 0ustar #!/bin/sh PREREQ="" prereqs() { echo "$PREREQ" } case $1 in # get pre-requisites prereqs) prereqs exit 0 ;; esac echo "initrd: enabling USB debugging" >/dev/kmsg || true path="/sys/class/android_usb/android0" panicpath="/sys/module/kernel/parameters/panic" echo 18d1 >$path/idVendor || true echo D002 >$path/idProduct || true echo adb >$path/functions || true echo 1 >$path/enable || true echo 0 >$panicpath || true mkdir -p /system/bin cp /bin/sh /system/bin/ echo "initrd: starting adbd for USB debugging" >/dev/kmsg || true /sbin/adbd initramfs-tools-ubuntu-touch-0.72/scripts/touch0000664000000000000000000002121612316565133016667 0ustar # Local filesystem mounting -*- shell-script -*- pre_mountroot() { [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/local-top" run_scripts /scripts/local-top [ "$quiet" != "y" ] && log_end_msg } sync_dirs() { base=$1 source=$2 target=$3 OLD_PWD=$PWD cd $base for file in $source/* do # Skip empty directories [ ! -e "$base/$file" ] && continue # If the target already exists as a file or link, there's nothing we can do [ -e "$target/$file" -o -L "$target/$file" ] && [ ! -d "$target/$file" ] && continue # If the target doesn't exist, just copy it over if [ ! -e "$target/$file" -a ! -L "$target/$file" ]; then cp -Ra "$base/$file" "$target/$file" continue fi # That leaves us with directories and a recursive call [ -d $file ] && sync_dirs $base $file $target done cd $OLD_PWD } mountroot() { # list of possible userdata partition names partlist="userdata UDA DATAFS USERDATA" pre_mountroot [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/local-premount" run_scripts /scripts/local-premount [ "$quiet" != "y" ] && log_end_msg # Mount root # # Create a temporary mountpoint for the bindmount mkdir -p /tmpmnt # Make sure the device has been created by udev before we try to mount udevadm settle # find the right partition for partname in $partlist; do part=$(find /dev -name $partname|tail -1) [ -z "$part" ] && continue path=$(readlink -f $part) [ -n "$path" ] && break done # override with a possible cmdline parameter if grep -q datapart= /proc/cmdline; then for x in $(cat /proc/cmdline); do case ${x} in datapart=*) path=${x#*=} ;; esac done fi if [ -z "$path" ]; then echo "initrd: Couldn't find data partition. Spawning adbd ..." >/dev/kmsg || true panic "Couldn't find data partition. Spawning adbd ..." fi echo "initrd: mounting $path" >/dev/kmsg || true # Mount the data partition to a temporary mount point mount -o discard $path /tmpmnt # Loop-mounted flipped model if [ -e /tmpmnt/system.img ]; then # Transition .developer_mode to .writable_image [ -e /tmpmnt/.developer_mode ] && mv /tmpmnt/.developer_mode /tmpmnt/.writable_image # Prepare the root filesystem # NOTE: We mount it read-write in all cases, then remount read-only. # This is to workaround a behaviour change in busybox which now # uses read-only loops if the fs is initially mounted read-only. # An alternative implementation would be to add losetup support # to busybox and do the mount in two steps (rw loop, ro fs). mount -o loop,rw /tmpmnt/system.img ${rootmnt} if [ -e /tmpmnt/.writable_image ]; then echo "initrd: mounting system.img (image developer mode)" >/dev/kmsg || true mountroot_status="$?" else echo "initrd: mounting system.img (user mode)" >/dev/kmsg || true mount -o remount,ro ${rootmnt} mountroot_status="$?" fi mount --move /tmpmnt ${rootmnt}/userdata # Mount the android system partition to a temporary location mkdir -p /android-system mount -o loop,ro ${rootmnt}/var/lib/lxc/android/system.img /android-system # Get device information device=$(grep ^ro.product.device= /android-system/build.prop |sed -e 's/.*=//') [ -z "$device" ] && device="unknown" echo "initrd: device is $device" >/dev/kmsg || true # Mount some tmpfs mkdir -p ${rootmnt}/android mount -o rw,size=4096 -t tmpfs none ${rootmnt}/android mount -o rw,nosuid,noexec,relatime,mode=755 -t tmpfs tmpfs ${rootmnt}/run # Create some needed paths on tmpfs mkdir -p ${rootmnt}/android/data ${rootmnt}/android/system # Prepare the fstab FSTAB=${rootmnt}/etc/fstab touch ${rootmnt}/run/image.fstab mount -o bind ${rootmnt}/run/image.fstab $FSTAB || panic "drop to adb" echo "/dev/root / rootfs defaults,ro 0 0" >> $FSTAB # Process the list of bind-mounts # (but don't mount them, mountall will do it) cat ${rootmnt}/etc/system-image/writable-paths | while read line; do set -- $line # Skip invalid/commented entries ([ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] || [ -z "$4" ] || [ -z "$5" ]) && continue [ "$1" = "#" ] && continue # Skip invalid mount points dstpath="${rootmnt}/$1" [ ! -e "$dstpath" ] && continue if [ "$3" = "temporary" ]; then # Temporary entries are simple, just mount a tmpfs echo "tmpfs $1 tmpfs $5 0 0" >> $FSTAB elif [ "$3" = "persistent" ] || [ "$3" = "synced" ]; then # Figure out the source path if [ "$2" = "auto" ]; then srcpath="${rootmnt}/userdata/system-data/$1" path="/userdata/system-data/$1" else srcpath="${rootmnt}/userdata/$2" path="/userdata/$2" fi if [ ! -e "$srcpath" ]; then # Process new persistent or synced paths dstown=$(stat -c "%u:%g" $dstpath) dstmode=$(stat -c "%a" $dstpath) mkdir -p ${srcpath%/*} if [ ! -d "$dstpath" ]; then # Deal with redirected files if [ "$4" = "transition" ]; then cp -a $dstpath $srcpath else touch $srcpath chown $dstown $srcpath chmod $dstmode $srcpath fi else # Deal with redirected directories if [ "$4" = "transition" ] || [ "$3" = "synced" ]; then cp -aR $dstpath $srcpath else mkdir $srcpath chown $dstown $srcpath chmod $dstmode $srcpath fi fi elif [ "$3" = "synced" ]; then # Process existing synced paths sync_dirs $dstpath . $srcpath fi # Write the fstab entry if [ "$5" = "none" ]; then echo "$path $1 none bind 0 0" >> $FSTAB else echo "$path $1 none bind,$5 0 0" >> $FSTAB fi else continue fi done # Extract the fstab from the android initrd # NOTE: we should find a faster way of doing that or cache it OLD_CWD=$(pwd) mount -n -t tmpfs tmpfs ${rootmnt}/var/lib/lxc/android/rootfs cd ${rootmnt}/var/lib/lxc/android/rootfs cat /android-system/boot/android-ramdisk.img | gzip -d | cpio -i cd $OLD_CWD # Mount all the Android partitions cat ${rootmnt}/var/lib/lxc/android/rootfs/fstab* | while read line; do set -- $line # Skip any unwanted entry echo $1 | egrep -q "^#" && continue ([ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] || [ -z "$4" ]) && continue ([ "$2" = "/system" ] || [ "$2" = "/data" ]) && continue label=$(echo $1 | awk -F/ '{print $NF}') [ -z "$label" ] && continue echo "initrd: checking mount label $label" >/dev/kmsg || true for dir in by-partlabel by-name by-label by-path by-uuid by-partuuid by-id; do path="/dev/disk/$dir/$label" [ -e "$path" ] && break done # MTD based devices, such as the emulator if [ ! -e "$path" ] && echo $label | egrep -q "^mtdblock"; then path="/dev/$label" fi [ ! -e "$path" ] && continue mkdir -p ${rootmnt}/android/$2 echo "initrd: mounting $path as ${rootmnt}/android/$2" >/dev/kmsg || true mount $path ${rootmnt}/android/$2 -t $3 -o $4 done # system is a special case echo "initrd: mounting ${rootmnt}/var/lib/lxc/android/system.img as ${rootmnt}/android/system" >/dev/kmsg || true mount --move /android-system ${rootmnt}/android/system # Apply device-specific udev rules if [ "$device" != "unknown" ]; then mount --bind ${rootmnt}/usr/lib/lxc-android-config/70-$device.rules ${rootmnt}/lib/udev/rules.d/70-android.rules fi # Bind-mount /lib/modules from Android [ -e ${rootmnt}/android/system/lib/modules ] && mount --bind ${rootmnt}/android/system/lib/modules ${rootmnt}/lib/modules # Bind-mount /var/lib/ureadahead if available on persistent storage # this is required because ureadahead runs before mountall if [ -e ${rootmnt}/userdata/system-data/var/lib/ureadahead ] && \ [ -e ${rootmnt}/var/lib/ureadahead ]; then mount --bind ${rootmnt}/userdata/system-data/var/lib/ureadahead ${rootmnt}/var/lib/ureadahead fi # Setup the swap device [ -e ${rootmnt}/userdata/SWAP.img ] && swapon ${rootmnt}/userdata/SWAP.img # Apply customized content for user in ${rootmnt}/userdata/user-data/* do if [ -d ${rootmnt}/custom/home ] && [ ! -e "$user/.customized" ]; then echo "initrd: copying custom content tp " >/dev/kmsg || true cp -Rap ${rootmnt}/custom/home/* "$user/" cp -Rap ${rootmnt}/custom/home/.[a-zA-Z0-9]* "$user/" touch "$user/.customized" dstown=$(stat -c "%u:%g" "$user") chown -R $dstown "$user/" fi done # Old flipped model elif [ -d /tmpmnt/ubuntu ]; then mount --bind /tmpmnt/ubuntu ${rootmnt} mountroot_status="$?" # Possibly a re-partitioned device else echo "initrd: Couldn't find a system partition." >/dev/kmsg || true panic "Couldn't find a system partition. Spawning adbd ..." fi [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/local-bottom" run_scripts /scripts/local-bottom [ "$quiet" != "y" ] && log_end_msg } initramfs-tools-ubuntu-touch-0.72/fakechroot-config/0000775000000000000000000000000012254067061017517 5ustar initramfs-tools-ubuntu-touch-0.72/fakechroot-config/chroot.env0000664000000000000000000000014212252662252021525 0ustar . /etc/fakechroot/chroot.env FAKECHROOT_CMD_SUBST="$FAKECHROOT_CMD_SUBST:/usr/bin/chfn=/bin/true" initramfs-tools-ubuntu-touch-0.72/build-initrd.sh0000775000000000000000000000513712276013072017057 0ustar #!/bin/sh set -e if [ -z "$FAKEROOTKEY" ]; then exec fakeroot "$0" "$@" fi export FLASH_KERNEL_SKIP=1 export DEBIAN_FRONTEND=noninteractive DEB_HOST_MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) # list all packages needed for a generic ubuntu touch initrd here INCHROOTPKGS="initramfs-tools dctrl-tools lxc-android-config abootimg android-tools-adbd" MIRROR=$(grep "^deb " /etc/apt/sources.list|head -1|cut -d' ' -f2) RELEASE=$(lsb_release -cs) ROOT=./build # create a plain chroot to work in rm -rf $ROOT fakechroot debootstrap --variant=fakechroot $RELEASE $ROOT $MIRROR # TODO this can be dropped once all packages are in main sed -i 's/main$/main universe/' $ROOT/etc/apt/sources.list sed -i 's/raring/saucy/' $ROOT/etc/apt/sources.list # make sure we do not start daemons at install time mv $ROOT/sbin/start-stop-daemon $ROOT/sbin/start-stop-daemon.REAL cat > $ROOT/sbin/start-stop-daemon <&2 echo 'Warning: Fake start-stop-daemon called, doing nothing.' 1>&2 exit 0 EOF chmod a+rx $ROOT/sbin/start-stop-daemon cat > $ROOT/usr/sbin/policy-rc.d < $ROOT/sbin/initctl <&2 echo 'Warning: Fake initctl called, doing nothing.' 1>&2 exit 0 EOF chmod a+rx $ROOT/sbin/initctl # install all packages we need to roll the generic initrd fakechroot chroot $ROOT apt-get -y update fakechroot -c fakechroot-config chroot $ROOT apt-get -y install $INCHROOTPKGS cp -a conf/touch ${ROOT}/usr/share/initramfs-tools/conf.d cp -a scripts/* ${ROOT}/usr/share/initramfs-tools/scripts cp -a hooks/touch ${ROOT}/usr/share/initramfs-tools/hooks sed -i -e "s/#DEB_HOST_MULTIARCH#/$DEB_HOST_MULTIARCH/g" ${ROOT}/usr/share/initramfs-tools/hooks/touch VER="$(head -1 debian/changelog |sed -e 's/^.*(//' -e 's/).*$//')" export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/lib/$DEB_HOST_MULTIARCH" ## Temporary HACK to work around FTBFS mkdir -p $ROOT/usr/lib/$DEB_HOST_MULTIARCH/fakechroot mkdir -p $ROOT/usr/lib/$DEB_HOST_MULTIARCH/libfakeroot touch $ROOT/usr/lib/$DEB_HOST_MULTIARCH/fakechroot/libfakechroot.so touch $ROOT/usr/lib/$DEB_HOST_MULTIARCH/libfakeroot/libfakeroot-sysv.so fakechroot chroot $ROOT update-initramfs -c -ktouch-$VER -v # make a more generically named link so external scripts can use the file without parsing the version cd $ROOT/boot ln -s initrd.img-touch-$VER initrd.img-touch cd - >/dev/null 2>&1 # put a fake sha1sum file in place so update-initramfs -u works OOTB for developers fakechroot chroot $ROOT sha1sum /boot/initrd.img-touch >$ROOT/var/lib/initramfs-tools/touch initramfs-tools-ubuntu-touch-0.72/bootimg/0000775000000000000000000000000012254067061015567 5ustar initramfs-tools-ubuntu-touch-0.72/bootimg/bootimg.cfg-maguro0000664000000000000000000000025612252662252021204 0ustar bootsize = 0x800000 pagesize = 0x800 kerneladdr = 0x80008000 ramdiskaddr = 0x81000000 secondaddr = 0x80f00000 tagsaddr = 0x80000100 name = "Ubuntu Touch Bootimage" cmdline = initramfs-tools-ubuntu-touch-0.72/bootimg/bootimg.cfg-manta0000664000000000000000000000025612252662252021012 0ustar bootsize = 0x800000 pagesize = 0x800 kerneladdr = 0x10008000 ramdiskaddr = 0x11000000 secondaddr = 0x10f00000 tagsaddr = 0x10000100 name = "Ubuntu Touch Bootimage" cmdline = initramfs-tools-ubuntu-touch-0.72/bootimg/bootimg.cfg-grouper0000664000000000000000000000027312252662252021374 0ustar bootsize = 0x800000 pagesize = 0x800 kerneladdr = 0x10008000 ramdiskaddr = 0x11000000 secondaddr = 0x10f00000 tagsaddr = 0x10000100 name = "Ubuntu Touch Bootimage" cmdline = console=tty1 initramfs-tools-ubuntu-touch-0.72/bootimg/bootimg.cfg-mako0000664000000000000000000000035512252662252020641 0ustar bootsize = 0x1600000 pagesize = 0x800 kerneladdr = 0x80208000 ramdiskaddr = 0x81800000 secondaddr = 0x81100000 tagsaddr = 0x80200100 name = "Ubuntu Touch Bootimage" cmdline = console=ttyHSL0,115200,n8 androidboot.hardware=mako lpj=67677 initramfs-tools-ubuntu-touch-0.72/debian/0000775000000000000000000000000012321041720015336 5ustar initramfs-tools-ubuntu-touch-0.72/debian/compat0000664000000000000000000000000212252662252016550 0ustar 7 initramfs-tools-ubuntu-touch-0.72/debian/initramfs-tools-ubuntu-touch.triggers0000664000000000000000000000003212252662252024707 0ustar interest update-initramfs initramfs-tools-ubuntu-touch-0.72/debian/control0000664000000000000000000000244512275177423016770 0ustar Source: initramfs-tools-ubuntu-touch Section: utils Priority: optional Maintainer: Ubuntu Developers Build-Depends: debhelper (>= 9), debootstrap, lsb-release, fakeroot, fakechroot Standards-Version: 3.9.4 Package: initramfs-tools-ubuntu-touch Architecture: amd64 i386 armhf Multi-Arch: foreign Depends: initramfs-tools, abootimg, udev (>= 175-0ubuntu29), upstart, coreutils, android-tools-adbd, ${misc:Depends} Description: tools for mounting an Ubuntu Touch rootfs This package contains the scripts to boot an Ubuntu Touch device. It also ships a default fstab that uses the android device paths based on partition label. By default it will mount the android userdata partition, then do a bind mount of the ubuntu subdir in there to become the root filesystem. . On failure the script will fire up an adb debugging shell Package: ubuntu-touch-generic-initrd Architecture: amd64 i386 armhf Multi-Arch: foreign Depends: ${misc:Depends} Suggests: abootimg Description: generic initramfs to boot Ubuntu Touch flipped container images This package contains a binary generic initrd.img to be used with Ubuntu Touch flipped container images. Use abootimg to create an android boot.img from your specific zImage and the initrd.img in /usr/lib/ubuntu-touch-generic-initrd initramfs-tools-ubuntu-touch-0.72/debian/copyright0000664000000000000000000000053412252662252017307 0ustar This package was debianized by Oliver Grawert on Fri, 17 Jan 2013 13:03:52 -0200. Authors: Oliver Grawert Copyright: 2013 Canonical LTD. License: GPL v3 or any later version On Debian systems, the complete text of the GNU General Public License version 2 can be found in `/usr/share/common-licenses/GPL-3'. initramfs-tools-ubuntu-touch-0.72/debian/changelog0000664000000000000000000004360012321041715017217 0ustar initramfs-tools-ubuntu-touch (0.72) trusty; urgency=medium * make the globbing in append-|remove-cmdline-arg more precise -- Oliver Grawert Tue, 08 Apr 2014 20:43:53 +0200 initramfs-tools-ubuntu-touch (0.71) trusty; urgency=medium * instead of gunzipping the android initrd for just retrieving fstab, lets simply do the whole unpacking from initrd and drop the additional unzipping from lxc-android-config which also speeds up booting by not having redundant gunzip runs. -- Oliver Grawert Tue, 01 Apr 2014 18:33:34 +0200 initramfs-tools-ubuntu-touch (0.70) trusty; urgency=medium * Glob any device specific fstab, instead of fstab with any suffix. * Also look up partitions by any other stable udev symlinks. -- Dimitri John Ledkov Mon, 17 Mar 2014 16:47:52 +0000 initramfs-tools-ubuntu-touch (0.69) trusty; urgency=medium * Also building ubuntu-touch-generic-initrd for amd64 and i386 -- Ricardo Salveti de Araujo Sun, 09 Feb 2014 21:18:52 -0200 initramfs-tools-ubuntu-touch (0.68) trusty; urgency=medium * fix flash-touch-initrd for cdimage images to do an exact match of the partition name instead of using wildcards (to fix cdimage based installs on flo) -- Oliver Grawert Thu, 30 Jan 2014 13:26:45 +0100 initramfs-tools-ubuntu-touch (0.67) trusty; urgency=medium * make sure that flash-touch-initrd and flash-touch-kernel can not be run if the system operates in dual boot mode (where the boot.img lives in the recovery partition) -- Oliver Grawert Wed, 22 Jan 2014 14:48:49 +0100 initramfs-tools-ubuntu-touch (0.66) trusty; urgency=medium * revert last change and replace it by an equally ugly but possibly working fix. -- Oliver Grawert Mon, 06 Jan 2014 19:06:00 +0100 initramfs-tools-ubuntu-touch (0.65) trusty; urgency=medium * Ugly workaround to fix FTBFS, add fakechroot to the chroot packages. -- Stéphane Graber Tue, 17 Dec 2013 10:21:41 -0500 initramfs-tools-ubuntu-touch (0.64) trusty; urgency=low * Enable discard (TRIM) for the userdata partition. -- Stéphane Graber Sun, 15 Dec 2013 18:57:41 -0500 initramfs-tools-ubuntu-touch (0.63) trusty; urgency=low * Workaround behaviour change in busybox where loop mounted fs that are mounted read-only also get a read-only loop device therefore preventing read-write remounts. The workaround is to first mount read-write, then remount read-only when in user mode. -- Stéphane Graber Mon, 25 Nov 2013 12:42:59 -0500 initramfs-tools-ubuntu-touch (0.62) trusty; urgency=low [ Chris Wayne ] * Add support for multiple users in customization code. (LP: #1230409) [ Stéphane Graber ] * Update the above to work should the path contain spaces. -- Stéphane Graber Mon, 18 Nov 2013 17:12:42 -0500 initramfs-tools-ubuntu-touch (0.61) trusty; urgency=low * Reverting the revert as that had nothing to do with the image issue -- Ricardo Salveti de Araujo Mon, 11 Nov 2013 12:13:45 -0200 initramfs-tools-ubuntu-touch (0.60) trusty; urgency=low * revert the last change as it breaks booting innn image 16 completely -- Oliver Grawert Sat, 09 Nov 2013 15:28:58 +0100 initramfs-tools-ubuntu-touch (0.59) trusty; urgency=low * Drop manual /system mount when running with the emulator * Also handle MTD based devices when parsing fstab -- Ricardo Salveti de Araujo Fri, 08 Nov 2013 04:20:14 -0200 initramfs-tools-ubuntu-touch (0.58) devel; urgency=low * Create ${rootmnt}/android directory before mounting. * Mount ${rootmnt}/system for the emulator. -- Dmitrijs Ledkovs Thu, 24 Oct 2013 18:15:54 +0100 initramfs-tools-ubuntu-touch (0.57) saucy; urgency=low * Don't run fsck on the phone since we don't have plymouth and so can't prompt the user in case of any problem. * Mount /var/lib/ureadahead from the initrd if available so that it's ready to be used by the time ureadahead starts. -- Stéphane Graber Fri, 11 Oct 2013 13:01:15 -0400 initramfs-tools-ubuntu-touch (0.56) saucy; urgency=low [ Dmitrijs Ledkovs ] * Skip calling readlink with empty $part, when partition from in partlist loop is not found, thus avoiding busybox help output printed on the console. -- Loïc Minier Thu, 03 Oct 2013 18:49:06 +0200 initramfs-tools-ubuntu-touch (0.55) saucy; urgency=low * Fix synced mode to not write over existing symlinks. (LP: #1234051) -- Martin Pitt Wed, 02 Oct 2013 11:47:11 +0200 initramfs-tools-ubuntu-touch (0.54) saucy; urgency=low * Only run fakeroot once in build-initrd.sh, rather than trying to use a saved environment in fragile and incorrect ways. -- Colin Watson Tue, 01 Oct 2013 16:41:12 +0100 initramfs-tools-ubuntu-touch (0.53) saucy; urgency=low * No change rebuild to try and get bin/chown et al back in the initrd... -- Oliver Grawert Tue, 01 Oct 2013 16:34:00 +0200 initramfs-tools-ubuntu-touch (0.52) saucy; urgency=low * Fix synced mode to act as if "transition" is set on first boot. Otherwise we need to boots to get the files copied to writable storage. -- Stéphane Graber Tue, 01 Oct 2013 10:21:22 -0400 initramfs-tools-ubuntu-touch (0.51) saucy; urgency=low * No change rebuild to try and get bin/chown et al back in the initrd... -- Stéphane Graber Tue, 01 Oct 2013 09:45:39 -0400 initramfs-tools-ubuntu-touch (0.50) saucy; urgency=low * Add a new "synced" mode to writable-paths which will automatically copy any new file appearing on the filesystem but won't remove any extra file from the target (this should be used with care and with full understanding of the consequences). (LP: #1227520) -- Stéphane Graber Thu, 26 Sep 2013 17:55:27 -0400 initramfs-tools-ubuntu-touch (0.49) saucy; urgency=low * Use stat to restore the file ownership and permissions when diverting to persistent storage. -- Stéphane Graber Sat, 07 Sep 2013 13:52:07 -0400 initramfs-tools-ubuntu-touch (0.48) saucy; urgency=low * Add /bin/chown to the initrd. -- Stéphane Graber Fri, 06 Sep 2013 12:47:25 -0400 initramfs-tools-ubuntu-touch (0.47) saucy; urgency=low * Chown the home directory after copying the customization files. -- Stéphane Graber Thu, 05 Sep 2013 15:33:03 -0400 initramfs-tools-ubuntu-touch (0.46) saucy; urgency=low * Setup the SWAP device if present. -- Stéphane Graber Thu, 05 Sep 2013 11:03:01 -0400 initramfs-tools-ubuntu-touch (0.45) saucy; urgency=low * Fix /lib/modules bind-mounting code in initrd. -- Stéphane Graber Wed, 04 Sep 2013 23:40:29 -0400 initramfs-tools-ubuntu-touch (0.44) saucy; urgency=low * Restrict initramfs-tools-ubuntu-touch to arches that build adbd. -- Adam Conrad Tue, 03 Sep 2013 09:24:57 -0600 initramfs-tools-ubuntu-touch (0.43) saucy; urgency=low * gracefully exit the initrd build script if we are not on armhf * make the initramfs-tools-ubuntu-touch Arch: "any" instead of "all" else the Arch: all package will never be attempted due to bug 1063188 -- Oliver Grawert Tue, 03 Sep 2013 13:39:29 +0200 initramfs-tools-ubuntu-touch (0.42) saucy; urgency=low * fix build deps for new package merge -- Oliver Grawert Tue, 03 Sep 2013 13:03:57 +0200 initramfs-tools-ubuntu-touch (0.41) saucy; urgency=low * merge ubuntu-touch-generic-initrd so we save one no-change upload per build -- Oliver Grawert Tue, 03 Sep 2013 11:13:12 +0200 initramfs-tools-ubuntu-touch (0.40) saucy; urgency=low * Add a shell syntax check (sh -n) for etc/initramfs/post-update.d/* hooks/* scripts/panic/adbd scripts/touch usr/sbin/* to catch typos in the future. -- Loïc Minier Wed, 28 Aug 2013 22:12:50 +0200 initramfs-tools-ubuntu-touch (0.39) saucy; urgency=low * Fix typo in previous upload. -- Stéphane Graber Wed, 28 Aug 2013 13:55:12 -0400 initramfs-tools-ubuntu-touch (0.38) saucy; urgency=low [ Loïc Minier ] * Add a 5th column to writable-paths with the mount options; writable-paths should use "defaults" for temporary mounts and "none" for persistent mounts; "bind" gets preprended for persistent mounts. (LP: #1217866) [ Stéphane Graber ] * Add transition code for .developer_mode to .writable_image -- Stéphane Graber Wed, 28 Aug 2013 09:59:53 -0400 initramfs-tools-ubuntu-touch (0.37) saucy; urgency=low * Replace .develoepr_mode by .writable_image (LP: #1217048) -- Stéphane Graber Mon, 26 Aug 2013 15:08:46 -0400 initramfs-tools-ubuntu-touch (0.36) saucy; urgency=low [ Matthew Fischer ] * Add code to support /custom on image based devices. -- Stéphane Graber Wed, 21 Aug 2013 16:13:22 -0400 initramfs-tools-ubuntu-touch (0.35) saucy; urgency=low * ship "append-cmdline-arg" and "remove-cmdline-arg" scripts to easily modify kernel cmdline arguments on devices where boot.img cmdline options are respected (mako, maguro). -- Oliver Grawert Tue, 20 Aug 2013 18:26:14 +0200 initramfs-tools-ubuntu-touch (0.34) saucy; urgency=low * fix typo -- Oliver Grawert Wed, 14 Aug 2013 16:41:07 +0200 initramfs-tools-ubuntu-touch (0.33) saucy; urgency=low * add support for datapart= commandline option in touch boots, this way devices that do not have partition labels can define where the /data partition lives for the mount to succeed. -- Oliver Grawert Wed, 14 Aug 2013 15:30:56 +0200 initramfs-tools-ubuntu-touch (0.32) saucy; urgency=low * Update scripts/touch to parse the new writable-paths file instead of using its hardcoded list of paths. From that point on, only lxc-anroid-config will need updating when adding/removing persistent paths to the touch images. -- Stéphane Graber Fri, 02 Aug 2013 18:11:29 +0200 initramfs-tools-ubuntu-touch (0.31) saucy; urgency=low * also add USERDATA to accepted partition labels -- Oliver Grawert Thu, 01 Aug 2013 15:35:18 +0200 initramfs-tools-ubuntu-touch (0.30) saucy; urgency=low * drop the last change, somehow FLASH_KERNEL_SKIP isnt set during live-build builds anymore and exporting it forcefully during build seems to not help -- Oliver Grawert Wed, 31 Jul 2013 15:30:57 +0200 initramfs-tools-ubuntu-touch (0.29) saucy; urgency=low * add /etc/kernel/postinst.d/flash-touch-kernel so it gets flashed automatically during kernel .deb installation -- Oliver Grawert Wed, 31 Jul 2013 10:47:43 +0200 initramfs-tools-ubuntu-touch (0.28) saucy; urgency=low * Remove system-image/client.ini mangling and add cleanup code. -- Stéphane Graber Thu, 25 Jul 2013 13:13:17 +0100 initramfs-tools-ubuntu-touch (0.27) saucy; urgency=low * Properly detect the partitions on grouper (image install only). -- Stéphane Graber Wed, 17 Jul 2013 13:54:30 -0400 initramfs-tools-ubuntu-touch (0.26) saucy; urgency=low * Fix broken sed statement in client.ini file generation. -- Stéphane Graber Mon, 15 Jul 2013 14:59:45 -0400 initramfs-tools-ubuntu-touch (0.25) saucy; urgency=low * Update initrd for loop-back images: - Add code to generate a new system-image config file - Rename most permanent storage mounts to match the fs hierarchy. -- Stéphane Graber Fri, 12 Jul 2013 15:00:26 -0400 initramfs-tools-ubuntu-touch (0.24) saucy; urgency=low * replace /data by /userdata for the userdata mount point. -- Stéphane Graber Thu, 11 Jul 2013 11:45:13 -0400 initramfs-tools-ubuntu-touch (0.23) saucy; urgency=low * add system-image to the read-write paths. -- Stéphane Graber Mon, 08 Jul 2013 18:53:18 -0400 initramfs-tools-ubuntu-touch (0.22) saucy; urgency=low * add support for "KERNEL" partition name (used by some samsung devices) -- Oliver Grawert Fri, 05 Jul 2013 14:43:31 +0200 initramfs-tools-ubuntu-touch (0.21) saucy; urgency=low * for some reason the adbd linked libs do not get copied by copy_exec, as a workaround install them one by one from the touch hook for now -- Oliver Grawert Sun, 30 Jun 2013 16:22:05 +0200 initramfs-tools-ubuntu-touch (0.20) saucy; urgency=low * ship a "flash-touch-kernel" developer tool so one does not always need to look up the bootimg path * add a notification that ubuntu-touch-generic-initrd needs to be updated to clean target -- Oliver Grawert Sun, 30 Jun 2013 14:17:17 +0200 initramfs-tools-ubuntu-touch (0.19) saucy; urgency=low * ship a "flash-touch-initrd" script * ship a hook in /etc/initramfs/post-update.d/zz-flash-touch-initrd script to be called automatically after update-initramfs -- Oliver Grawert Sun, 30 Jun 2013 11:13:02 +0200 initramfs-tools-ubuntu-touch (0.18) saucy; urgency=low * Add support for loop-mounted images. This will detect the presence of a system.img file on the data partition, if found, it'll use it as the rootfs, mount it read-only (unless .developer_mode exists), then mount all the Android partitions and finally setup a bunch of bind-mounts. -- Stéphane Graber Fri, 28 Jun 2013 16:43:17 -0400 initramfs-tools-ubuntu-touch (0.17) saucy; urgency=low * Removing the 'apparmor=0' boot cmdline as the android container profile is now set to unconfined by lxc-android-config -- Ricardo Salveti de Araujo Thu, 27 Jun 2013 15:29:31 -0300 initramfs-tools-ubuntu-touch (0.16) saucy; urgency=low * add apparmor=0 to all commandlines until the apparmor kernel breakage is fixed -- Oliver Grawert Wed, 26 Jun 2013 18:03:36 +0200 initramfs-tools-ubuntu-touch (0.15) saucy; urgency=low * fix the adbd panic script ... now works for all panics reliable except "init" since this already moved around /sys, /proc, /dev and /run -- Oliver Grawert Fri, 21 Jun 2013 15:44:04 +0200 initramfs-tools-ubuntu-touch (0.14) saucy; urgency=low * ugh, do not install scripts/ into scripts/scripts/ -- Oliver Grawert Fri, 21 Jun 2013 13:02:44 +0200 initramfs-tools-ubuntu-touch (0.13) saucy; urgency=low * move adbd to be spawned by a panic hook so it will also be started on other errors than missing root device. -- Oliver Grawert Thu, 20 Jun 2013 13:23:57 +0200 initramfs-tools-ubuntu-touch (0.12) saucy; urgency=low * make sure find only returns one link to the userdata partition in mountroot, this should fix manta booting -- Oliver Grawert Wed, 19 Jun 2013 14:18:26 +0200 initramfs-tools-ubuntu-touch (0.11) saucy; urgency=low * add a wait after starting adbd so we dont move on and hopefully do not reboot the nexus 10 if the rootfs mount fails -- Oliver Grawert Tue, 18 Jun 2013 00:57:14 +0200 initramfs-tools-ubuntu-touch (0.10) saucy; urgency=low * allow 16M bootimg on mako, for some reason zImage in the mako kernel package is suddenly >6M. -- Oliver Grawert Sat, 15 Jun 2013 16:30:44 +0200 initramfs-tools-ubuntu-touch (0.9) saucy; urgency=low * divert all initramfs scripts and hooks we dont need * make touch initramfs hook executable -- Oliver Grawert Sat, 15 Jun 2013 13:26:46 +0200 initramfs-tools-ubuntu-touch (0.8) saucy; urgency=low * use MODULES=list by default to make sure we do not get modules installed. seems some kernels suddenly grew modules that make the initrd to big for the boot partition. -- Oliver Grawert Sat, 15 Jun 2013 12:44:37 +0200 initramfs-tools-ubuntu-touch (0.7) saucy; urgency=low * make the data partition detection more generic and use the actual device name as detected by readlink * ship adbd in the initrd and start it if the rootfs detection fails * ship upstarts reboot command so reboot -f recovery/bootloader works * add "DATAFS" to the allowed names for the data partition * add swapfile to default fstab entries -- Oliver Grawert Sat, 15 Jun 2013 12:26:29 +0200 initramfs-tools-ubuntu-touch (0.6) saucy; urgency=low * set console=tty1 in grouper bootimg config -- Oliver Grawert Fri, 14 Jun 2013 13:33:53 +0200 initramfs-tools-ubuntu-touch (0.5) saucy; urgency=low * write panic info to dmesg so we can read it on failure from /proc/last_kmsg -- Oliver Grawert Thu, 13 Jun 2013 22:46:48 +0200 initramfs-tools-ubuntu-touch (0.4) saucy; urgency=low * depend on udev (>= 175-0ubuntu29) since we rely on the changes introduced with this version -- Oliver Grawert Mon, 27 May 2013 15:16:42 +0200 initramfs-tools-ubuntu-touch (0.3) saucy; urgency=low * add dependency on abootimg * add bootimg.cfg-$subarch files -- Oliver Grawert Mon, 27 May 2013 14:38:53 +0200 initramfs-tools-ubuntu-touch (0.2) saucy; urgency=low * add finer grained partition detection, support "UDA userdata" as partition names * only suppress /dev/root checking of mountall in fstab, setting up the mountpoints needs to happen by the lxc package -- Oliver Grawert Mon, 27 May 2013 12:08:32 +0200 initramfs-tools-ubuntu-touch (0.1) saucy; urgency=low * Initial Release -- Oliver Grawert Fri, 17 May 2013 13:08:06 +0200 initramfs-tools-ubuntu-touch-0.72/debian/ubuntu-touch-generic-initrd.install0000664000000000000000000000015712252662252024310 0ustar build/boot/* usr/lib/ubuntu-touch-generic-initrd/ build/var/lib/initramfs-tools/touch var/lib/initramfs-tools/ initramfs-tools-ubuntu-touch-0.72/debian/bzr-builddeb.conf0000664000000000000000000000003112252662252020560 0ustar [BUILDDEB] native = True initramfs-tools-ubuntu-touch-0.72/debian/rules0000775000000000000000000000111712276006322016426 0ustar #!/usr/bin/make -f DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) %: dh $@ override_dh_auto_test: @set -e; for f in etc/initramfs/post-update.d/* hooks/* scripts/panic/adbd scripts/touch usr/sbin/*; do \ echo "Checking sh syntax of $$f"; \ sh -n $$f; \ done override_dh_auto_clean: rm -rf ./build || true dh_auto_clean override_dh_auto_build: ./build-initrd.sh dh_auto_build override_dh_install: dh_install sed -i -e's/#DEB_HOST_MULTIARCH#/$(DEB_HOST_MULTIARCH)/g' \ debian/initramfs-tools-ubuntu-touch/usr/share/initramfs-tools/hooks/touch initramfs-tools-ubuntu-touch-0.72/debian/source/0000775000000000000000000000000012254067061016651 5ustar initramfs-tools-ubuntu-touch-0.72/debian/source/format0000664000000000000000000000001512252662252020061 0ustar 3.0 (native) initramfs-tools-ubuntu-touch-0.72/debian/initramfs-tools-ubuntu-touch.install0000664000000000000000000000036512252662252024540 0ustar conf/touch usr/share/initramfs-tools/conf.d scripts/* usr/share/initramfs-tools/scripts hooks/touch usr/share/initramfs-tools/hooks fstab usr/share/initramfs-tools-ubuntu-touch bootimg/* usr/share/initramfs-tools-ubuntu-touch usr etc initramfs-tools-ubuntu-touch-0.72/debian/initramfs-tools-ubuntu-touch.postinst0000664000000000000000000000174212252662252024755 0ustar #!/bin/sh set -e apply_diversions() { DIR=/usr/share/initramfs-tools SUBDIRS="hooks scripts/local-premount scripts/init-top scripts/init-bottom scripts/panic" FILES="compcache fixrtc dmsetup plymouth console_setup kbd thermal" for file in $FILES; do for subdir in $SUBDIRS; do if [ -e $DIR/$subdir/$file ]; then diversion="$file.$(echo $subdir|sed -e 's/scripts\///'|sed -e 's/-/./').diverted" dpkg-divert --add --local --divert $DIR/$diversion --rename $DIR/$subdir/$file >/dev/null 2>&1 || true fi done done } if [ "$1" = "configure" ]; then if grep -q "^# UNCONFIGURED FSTAB FOR BASE SYSTEM" /etc/fstab; then cp /usr/share/initramfs-tools-ubuntu-touch/fstab /etc/ fi # move bits out of the way that make our initrd to big apply_diversions fi #DEBHELPER#