Re: [问题] ubuntu snappy core 的 source tree

楼主: rextsai (Rex Tsai)   2015-07-21 20:16:05
※ 引述《whatdidumean (no body)》之铭言:
: 最近想要研究看看 ubuntu snappy core
: 想要找source code 来看
: 因为官网上面说这是open source的
: 不过不管怎么找 都只有image 而已
: 请问有人知道从哪里可以找到 source tree 吗
这个问题跟问 Ubuntu 安装光盘的原始码在哪里一样,你无法一口气拿到
所有套件原始码。Ubuntu 安装光盘是透过 live-build 建立 ISO Image.
live-build 会利用 debootstrap 等工具,从 Ubuntu Archive 拉
debian binary packages 下来打包。
至于每个 ISO Image 应该包含哪些套件则是设定于 Ubuntu Seed[1].
Snappy Ubuntu Core 也是类似的概念,以 Azure amd64 image[2] 为例子
组成 rootfs 的 Image 分为
- system image
- device image
其中 system image 的 rootfs tarball 设定来自于 Ubuntu Core Seed[3] 。
而 device image 的设定则藏于 live-build scripts[4]
透过以上设定与工具,你就可以自由产生 Snappy Ubuntu Core Image.
至于核心的原始码则位于 kernel.ubuntu.com[5]
但是除非你是 Ubuntu Core Developer, 否则没有必要更改 rootfs.
如果你是开发者,可以研究如何打包 snap app[6] 后安装到 Ubuntu Core 上。
如果你是硬件工程师,可以研究如何打包新的 device tarball[7][8] 配合 Ubuntu Core 安装。
[1] Ubuntu Seeds in Launchpad https://launchpad.net/ubuntu-seeds
[2] http://system-image.ubuntu.com/ubuntu-core/rolling/edge/azure_amd64/index.json
[3] ubuntu-core.wily : Code : Ubuntu Seeds https://code.launchpad.net/~ubuntu-core-dev/ubuntu-seeds/ubuntu-core.wily
[4] trunk : Code : livecd-rootfs https://code.launchpad.net/~ubuntu-core-dev/livecd-rootfs/trunk
[5] http://kernel.ubuntu.com/git/kernel-ppa/mirror/ubuntu-wily.git
[6] Build snaps | Ubuntu developer portal https://developer.ubuntu.com/en/snappy/tutorials/build-snaps/
[7] Porting | Ubuntu developer portal https://developer.ubuntu.com/en/snappy/guides/porting/
[8] Porting Ubuntu Snappy to a yet unsupported armhf board | Ogra's blog https://ograblog.wordpress.com/2015/01/25/porting-ubuntu-snappy-to-a-yet-unsupported-armhf-board/
Cheers
-Rex
作者: Debian (Debian)   2015-07-23 03:34:00
推荐本文。

Links booklink

Contact Us: admin [ a t ] ucptt.com