ISOs with the new installer are 34% bigger than legacy ISOs

Bug #2028213 reported by Daniel van Vugt
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
livecd-rootfs (Ubuntu)
Fix Released
High
Michael Hudson-Doyle

Bug Description

For example:
mantic-desktop-legacy-amd64.iso | 2023-07-18 09:06 | 3.8G (https://cdimage.ubuntu.com/daily-legacy/)
mantic-desktop-amd64.iso | 2023-07-18 08:28 | 5.1G (https://cdimage.ubuntu.com/daily-live/)

Slightly less severe in lunar:
ubuntu-23.04-desktop-legacy-amd64.iso | 2023-04-17 22:28 | 3.6G (https://cdimage.ubuntu.com/releases/23.04/release/)
ubuntu-23.04-desktop-amd64.iso | 2023-04-18 21:06 | 4.6G (https://releases.ubuntu.com/23.04/)

First reported in:
https://github.com/canonical/ubuntu-desktop-installer/issues/2253

Related branches

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The difference seems to be in /casper/:

Legacy ISO:
2.7G filesystem.squashfs

New ISO:
1.3G minimal.standard.live.squashfs
2.5G minimal.squashfs

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Seems the problem is two copies of each snap in the one ISO:

minimal.standard.live.squashfs: /var/lib/snapd/seed/snaps

4.0K bare_5.snap
74M core22_817.snap
67M cups_980.snap
246M firefox_2916.snap
47M ghostscript-printer-app_769.snap
486M gnome-42-2204_120.snap
92M gtk-common-themes_1535.snap
39M gutenprint-printer-app_702.snap
62M hplip-printer-app_788.snap
4.1M ipp-usb_101.snap
46M ps-printer-app_1214.snap
54M snapd_19457.snap
452K snapd-desktop-integration_83.snap
13M snap-store_959.snap
129M ubuntu-desktop-installer_1153.snap
1.4G total

minimal.squashfs: /var/lib/snapd/seed/snaps

4.0K bare_5.snap
74M core22_817.snap
67M cups_980.snap
246M firefox_2916.snap
47M ghostscript-printer-app_769.snap
486M gnome-42-2204_120.snap
92M gtk-common-themes_1535.snap
39M gutenprint-printer-app_702.snap
62M hplip-printer-app_788.snap
4.1M ipp-usb_101.snap
46M ps-printer-app_1214.snap
54M snapd_19457.snap
452K snapd-desktop-integration_83.snap
13M snap-store_959.snap
1.2G total

The snaps haven't gotten any bigger compared to legacy, only duplicated.

description: updated
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

I guess at some point in the construction of the minimal.standard.live layer, the /var/lib/snapd/seed/snaps directory got deleted and recreated. The way overlayfs represents this is not very helpful to the construction of minimal overlay squashfses :(

It seems I sort of predicted this situation in my comment here https://git.launchpad.net/livecd-rootfs/tree/live-build/lb_chroot_layered#n135

(on my list of things-i-want-to-look-at-but-have-never-got-around-to is seeing if rsyncing the layer into a fresh overlay is a better way of implementing reduce_pass_size)

tags: added: rls-mm-mantic
tags: added: rls-mm-incoming
removed: rls-mm-mantic
Changed in livecd-rootfs (Ubuntu):
importance: Medium → High
Dave Jones (waveform)
tags: added: foundations-todo
removed: rls-mm-incoming
Changed in livecd-rootfs (Ubuntu):
status: New → Triaged
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

https://code.launchpad.net/~mwhudson/livecd-rootfs/+git/livecd-rootfs/+ref/lp-2028213 is an attempt at a fix, testing in progress as I write this.

Changed in livecd-rootfs (Ubuntu):
assignee: nobody → Michael Hudson-Doyle (mwhudson)
status: Triaged → In Progress
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :
Revision history for this message
corrado venturini (corradoventu) wrote :

A bigger ISO with less content! May be adding the missing apps the size will shrink.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Same content actually. Just ~1.3GB of it was duplicated in two locations.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package livecd-rootfs - 23.10.8

---------------
livecd-rootfs (23.10.8) mantic; urgency=medium

  [ Heinrich Schuchardt ]
  * risc-v: increase loader2 partition for VisionFive 2. EDK II is available
    for the StarFive VisionFive 2 board. As it is larger than U-Boot we need
    to increase the size of the loader 2 partition to accommodate it.

  [ Michael Hudson-Doyle ]
  * lb_chroot_layered: use rsync to make more minimal overlay layers.
    (LP: #2028213)

 -- Michael Hudson-Doyle <email address hidden> Wed, 02 Aug 2023 13:19:29 +1200

Changed in livecd-rootfs (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Looking good since the weekend:

4.2G mantic-desktop-amd64.iso
4.0G mantic-desktop-legacy-amd64.iso

Revision history for this message
fossfreedom (fossfreedom) wrote (last edit ): Re: [Bug 2028213] Re: ISOs with the new installer are 34% bigger than legacy ISOs

For Ubuntu Budgie our iso shrunk from 4.6G to 3.5G ... so nicely
done folks :)

On Mon, 7 Aug 2023, 03:20 Daniel van Vugt, <email address hidden>
wrote:

> Looking good since the weekend:
>
> 4.2G mantic-desktop-amd64.iso
> 4.0G mantic-desktop-legacy-amd64.iso
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2028213
>
> Title:
> ISOs with the new installer are 34% bigger than legacy ISOs
>
> Status in livecd-rootfs package in Ubuntu:
> Fix Released
>
> Bug description:
> For example:
> mantic-desktop-legacy-amd64.iso | 2023-07-18 09:06 | 3.8G (
> https://cdimage.ubuntu.com/daily-legacy/)
> mantic-desktop-amd64.iso | 2023-07-18 08:28 | 5.1G (
> https://cdimage.ubuntu.com/daily-live/)
>
> Slightly less severe in lunar:
> ubuntu-23.04-desktop-legacy-amd64.iso | 2023-04-17 22:28 | 3.6G (
> https://cdimage.ubuntu.com/releases/23.04/release/)
> ubuntu-23.04-desktop-amd64.iso | 2023-04-18 21:06 | 4.6G (
> https://releases.ubuntu.com/23.04/)
>
> First reported in:
> https://github.com/canonical/ubuntu-desktop-installer/issues/2253
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2028213/+subscriptions
>
>

Benjamin Drung (bdrung)
tags: removed: foundations-todo
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.