[Feature Request] Add script option to use 18.04 Minimal install option

Bug #1768069 reported by Patrick M. Womack
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
curtinator
Fix Released
Undecided
Unassigned

Bug Description

Useful for installation minimization.

Revision history for this message
Daniel Manrique (roadmr) wrote :

debug:debconf (developer): <-- GET ubiquity/minimal_install
debug-debconf (developer): --> 1 false
--
debug:debconf (developer): <-- SET ubiquity/minimal_install true
debug-debconf (developer): --> 0 value set
debug:debconf (developer): <-- FSET ubiquity/minimal_install seen true
debug-debconf (developer): --> 0 true
--
debug:May 1 11:27:24 debconf (filter): <-- GET ubiquity/minimal_install
debug:debconf (developer): <-- GET ubiquity/minimal_install
debug-debconf (developer): --> 1 true
--
debug:May 1 11:27:24 debconf (filter): <-- GET ubiquity/minimal_install
debug:debconf (developer): <-- GET ubiquity/minimal_install
debug-debconf (developer): --> 1 true
--
debug:May 1 11:31:22 debconf (filter): <-- GET ubiquity/minimal_install
debug:debconf (developer): <-- GET ubiquity/minimal_install
debug-debconf (developer): --> 1 true

Revision history for this message
Daniel Manrique (roadmr) wrote :

Adding this to the data/preseed.txt file will do a minimal install (which takes up about 3.5 GB instead of 5.5 GB)

ubiquity ubiquity/minimal_install boolean true

I'll figure out a way to control this from the main curtinator script.

Changed in curtinator:
status: New → In Progress
Revision history for this message
Patrick M. Womack (ipat8) wrote :

Which should I add? The first comment of changes to debconf? or just minimal_install boolean true?

Revision history for this message
Daniel Manrique (roadmr) wrote :

Just this line:

ubiquity ubiquity/minimal_install boolean true

Add it next to the other lines that start with "ubiquity" so it looks nice.

Revision history for this message
Patrick M. Womack (ipat8) wrote :

Tried this, didn't work. I've attached my preseed.

Revision history for this message
Daniel Manrique (roadmr) wrote :

Looks similar to the one I used...

let me dig into this a bit, will update soon.

Revision history for this message
Daniel Manrique (roadmr) wrote :

Maybe you just had bad luck because the preseed looks fine, I've been experimenting with this setting and a version of curtinator with a nice "-m" switch will be up soon. I'll mark this bug Fix Released when it's ready.

There'll be one additional dependency (gettext-base) to be able to use the envsubst utility.

Revision history for this message
Daniel Manrique (roadmr) wrote :

1.4G May 2 10:55 18.04-desktop-minimal/minimal.tgz
1.6G May 2 11:06 18.04-desktop-normal/normal.tgz

Those are tar.gz sizes. I checked inside the VMs to ensure the minimal install one was done correctly (it was; the system reporter thingy on first boot said "minimal": "true"). Also checked actual usage inside the VMs.

Normal uses 4277 MB
Minimal uses 3722 MB

So the gain is not huge, 555 MB, or about 15%. In any case, it's supported now, and should be safely ignored on releases that don't understand the minimal desktop install.

Changed in curtinator:
status: In Progress → Fix Released
Revision history for this message
Patrick M. Womack (ipat8) wrote :

I'll wipe and redownload my copy and test the -m flag again. It's possible that I didn't write it correctly (not really fully versed on the way that preseed works)

Revision history for this message
Patrick M. Womack (ipat8) wrote :

Attempted this again using the -m flag, and got the same result. Now I am testing with the root.qcow2 image instead of the tar.gz (because I'm a bit lazy and don't want to bother wiping and reloading a mass image every time). I'm going to redownload the image and try again, but as of right now I am still seeing a full image (libreoffice etc installed).

Revision history for this message
Patrick M. Womack (ipat8) wrote :

Scratch that, it's an issue with my ISO.

Revision history for this message
Daniel Manrique (roadmr) wrote :

yes, I was about to comment it could be an outdated ISO :)

Revision history for this message
Patrick M. Womack (ipat8) wrote :

Now this isn't directly related to this issue, but could you check https://launchpad.net/cubic and see why I would be having issues?

Do note you have to replace the .disk folder on the custom iso so that Curtinator will still find the preseed path.

For reference I'm using Cubic to add two files to the iso so that I have a service ready to go after install. I can provide the files if you'd like to review them.

Revision history for this message
Daniel Manrique (roadmr) wrote :

I don't know how cubic modifies the iso, but you're probably going about this the hard way. What curtinator produces is a tar.gz with the files exactly as they will be uncompressed on the installed filesystem. So you can simply uncompress that tar.gz, put the files you need in place, and then recompress it. Just make sure to do this as root and use the -numeric-owner option to tar.

Revision history for this message
Daniel Manrique (roadmr) wrote :

Actually it may be worth trying - gunzip the .gz file, so you obtain a .tar, then you could potentially tar -r the new files directly without having to untar the whole thing. Then simply gzip the .tar again and you're done.

You may have to play a bit with the tar options and paths for your files so they appear in the right place in the image.

Example of appending files to an existing tarfile:

roadmr@blackdog:/tmp$ tar -cf foo.tar /etc/passwd
tar: Removing leading `/' from member names
roadmr@blackdog:/tmp$ tar -rf foo.tar /etc/group
tar: Removing leading `/' from member names
roadmr@blackdog:/tmp$ tar -tvf foo.tar
-rw-r--r-- root/root 2734 2017-11-22 20:48 etc/passwd
-rw-r--r-- root/root 1196 2018-01-22 21:08 etc/group

Revision history for this message
Patrick M. Womack (ipat8) wrote :

After some digging I determined this is an issue with Cubic. For some reason Cubic removes the minimal install manifest which Ubiquity relies on for the minimal install. After modifying the ISO to restore the file the install worked, and booted to a minimal install. I've logged a bug with the Cubic team.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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