Last commit made on 2016-10-07
Get this branch:
git clone -b smaller-disks https://git.launchpad.net/~smoser/cirros
Only Scott Moser can upload to this branch. If you are Scott Moser please log in for upload directions.

Branch merges

Branch information


Recent commits

3822732... by Scott Moser on 2016-10-07

make disk image (disk.img) contain only /boot.

This removes everything except /boot from a disk.img.
On first boot of the disk image, the loaded initramfs in /boot
will copy itself to the target. Since /boot is not in the initramfs
there is no problem copying to the blank target.

The result of this is a disk1.img file that is much smaller.
for comparison, the output of this local build and the 20160722 daily
for x86_64:
   disk.img 17961472 -> 12846080 (29% saved)
   rootfs.img.gz 16744808 -> 11899176 (29% saved)

If curtin's src/init doesn't find a root filesystem (no /sbin/init) but
does find a filesystem with the right label (cirros-rootfs), then it
copies itself to the target and continues booting as if it were always

src/init now uses search_for_root and search_for_blank to find root
filesystem and blank disk. It would be nice to move the "install"
hunk out of src/init also. We need to improve this too, to deal with
existing files overwriting and such.

ba0412d... by Rafael Folco <email address hidden> on 2016-09-21

Add support for Grub2 on Power architectures.

Power bootable qcow2 images require Grub to be installed on a PreP
Boot partition. This patch enables CirrOS to boot from Grub2/PreP.
And, now produces disk images for ppc64, powerpc and ppc64le.

LP: #1620776

e6d30c4... by Scott Moser on 2016-09-19

Return error code for root login via ssh

When user ssh's in as root and sees the 'Please login as cirros'
message, that should exit non-zero.

Here we have arbitrarily picked '43', which is somewhat like 403
which is http redirect.

In my small tests I've found the following return codes:
  255: ssh -o ConnnectTimeout=3 google.com (timeout)
  255: ssh brickies.net (bad auth)
  255: ssh nodomainhere.example.com (host not found)

LP: #1437350

4285160... by Dr. Jens Harbott on 2016-08-25

Make cirros-status output useful IPv6 information

- Output both link-local and global addresses
- Output IPv6 routes

LP: #1617197

c5f32bd... by Dr. Jens Harbott on 2016-09-19

Replace .bzrignore with .gitignore

Also add stuff that is created during the build to it

7d7f58b... by Dr. Jens Harbott on 2016-09-01

README: Add grub parameter to bin/bundle call

c57bcd9... by Scott Moser on 2016-09-16

replace bzr with git.

This is largely untested, but basically a change from using
bzr repo to git repo.

42d91ae... by Scott Moser on 2016-07-22

Get newer util-linux (2.27) to support gpt partition manipulation.

We do this to have a new enough sfdisk to work with GPT.
The version of 2.26.2 is not enough due to sfdisk losing uuids
of gpt partitions on recreate (LP: #1474090).

LP: #1605589

14d3e67... by Scott Moser on 2016-07-22

bin/common-functions: fix sec2human for 0 second times.

f986f7c... by Scott Moser on 2016-07-22

arm/aarch64: put a getty on ttyAMAO.

Allow to login on serial console on arm/aarch64 architectures.
Virtualized ARM/AArch64 machines provide ttyAMA0 serial port. Use it.

LP: #1605583