Documentation on the images structure/how to debug invalid builds?

Oliver Grawert ogra at ubuntu.com
Wed Jun 10 15:26:55 UTC 2015


Am Mittwoch, den 10.06.2015, 17:15 +0200 schrieb Sebastien Bacher:
> Le 10/06/2015 10:03, Oliver Grawert a écrit :
> > line 488 to 560 do the post processing:
> > http://bazaar.launchpad.net/~ubuntu-system-image/ubuntu-system-image/server/view/head:/lib/systemimage/generators.py#L488
> >
> > as i said in my mail to steve, this code recently moved to livecd-rootfs
> > for all core based images and will soon move to the initrd for the touch
> > based ones.
> 
> so basically tooking the livefs tarball, and doing those changes
> - creating a system/writable directory
> - doing a system/etc/mtab -> /proc/mounts symlink
> - creating system/lib/modules
> 
> then repacking the tarball and using u-d-f to build an image on the new
> tarball should give a working image? or is there more magic needed?
> 
theoretically you shouldnt need to change anything, livecd-rootfs
creates these dirs from a chroot hook now (you might need to copy that
into the ubuntu-desktop-next hooks though)

then theoretically a u-d-f image using --rootfs should give a working
image, yes.

ciao
	oli




More information about the snappy-devel mailing list