~smoser/cirros/trunk.smaller

Viewing all changes in revision 379.

  • Committer: Scott Moser
  • Date: 2016-07-29 02:47:56 UTC
  • Revision ID: smoser@brickies.net-20160729024756-ur9rpi17wufm3skh
make disk image (disk.img) contain only boot/.

The result 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 there.

I'd like to clean up sbin/init a bit to make a function around the
searching for a filesystem by label and also the "installation" into
a function.

That shouldnt be too much work though, and means there is no duplication
at all in the disk.img file.


this isn't ready yet, but wanted to commit.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: