No loop mount option

Dmitrijs Ledkovs launchpad at surgut.co.uk
Wed Nov 13 21:18:17 UTC 2013


Dear all,

I've raised a merge proposal below, to allow initramfs to mount system
partition direct as an ubuntu rootfs.
At the moment this is a fallback, as apart from the emulator, it's not
possible to have a large enough system partition to hold ubuntu
rootfs.

A matching patch for build/ android project is attached as a file.

The patch for the emulator package changes the behaviour slightly:
* sdcard.img is dropped
* ubuntu-system.img & ubuntu-userdata.img are generated
* if no options specified: ubuntu-system.img is embedded inside
ubuntu-userdata.img & normal (loop) based mount is performed

* if "-no-loop" is specified to the build script, ubuntu-system.img is
not embedded.

ubuntu-system.img is provisioned as the system.img (/dev/mtdblock0)
and ubuntu-userdata.img is provisioned as userdata.img
(/dev/mtdblock1).

Once booted without loop both / and /userdata are normal partitions
(this is in RW mode)
/dev/mtdblock1 on /userdata type ext4 (rw,relatime,data=ordered)
/dev/mtdblock0 on / type ext4 (rw,relatime,data=ordered)

Note that android container is still launched from a loop-mounted
.img. I will check if it would be possible to supported unpacked
android container under /var/lib/lxc/android/rootfs
Also at the moment emulator is still using MTD partitions, instead of
GPT formatted MMC device. That's also a TODO.

Regards,

Dmitrijs.


On 13 November 2013 20:54, Dmitrijs Ledkovs <launchpad at surgut.co.uk> wrote:
> Dmitrijs Ledkovs has proposed merging lp:~xnox/ubuntu/trusty/initramfs-tools-ubuntu-touch/no-loop into lp:ubuntu/initramfs-tools-ubuntu-touch.
>
> Requested reviews:
>   Ubuntu branches (ubuntu-branches)
>
> For more details, see:
> https://code.launchpad.net/~xnox/ubuntu/trusty/initramfs-tools-ubuntu-touch/no-loop/+merge/195137
> --
> https://code.launchpad.net/~xnox/ubuntu/trusty/initramfs-tools-ubuntu-touch/no-loop/+merge/195137
> You are the owner of lp:~xnox/ubuntu/trusty/initramfs-tools-ubuntu-touch/no-loop.
>
> === modified file 'debian/changelog'
> --- debian/changelog    2013-11-11 12:13:45 +0000
> +++ debian/changelog    2013-11-13 20:54:01 +0000
> @@ -1,3 +1,12 @@
> +initramfs-tools-ubuntu-touch (0.62) UNRELEASED; urgency=low
> +
> +  * Implement generic loops to find userdata and system partitions.
> +  * If system.img is not available on the userdata patrition, and an
> +    Ubuntu system partition is provided, fallback to mounting system
> +    partition as rootfs (without a loop mount).
> +
> + -- Dmitrijs Ledkovs <xnox at ubuntu.com>  Wed, 13 Nov 2013 20:50:53 +0000
> +

-- 
https://code.launchpad.net/~xnox/ubuntu/trusty/initramfs-tools-ubuntu-touch/no-loop/+merge/195137
Your team Ubuntu branches is requested to review the proposed merge of lp:~xnox/ubuntu/trusty/initramfs-tools-ubuntu-touch/no-loop into lp:ubuntu/initramfs-tools-ubuntu-touch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-mtd-userdata-partition-allow-no-loop-configurati.patch
Type: text/x-patch
Size: 3105 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-reviews/attachments/20131113/e8b6f1a6/attachment.bin>


More information about the Ubuntu-reviews mailing list