ubuntu zip updater-script script should be smarter regarding the tar.gz copy

Bug #1145984 reported by Ricardo Salveti
38
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Ubuntu CD Images
Won't Fix
High
Unassigned

Bug Description

From current updater-script:
ui_print("Copying the ubuntu rootfs tarball...");
package_extract_file("#UBUNTUROOTFS#", "/data/ubuntu-rootfs.tar.gz");
set_progress(0.300000);

ui_print("Extracting the ubuntu rootfs tarball...");
delete_recursive("/data/ubuntu_tmp_extract");
run_program("/sbin/mkdir", "/data/ubuntu_tmp_extract");
run_program("/sbin/tar", "--numeric-owner", "-xzf", "/data/ubuntu-rootfs.tar.gz", "-C", "/data/ubuntu_tmp_extract");
set_progress(0.600000);

Improve it to use a different path in case there's not enough space at /data when flashing via recovery (could check for /sdcard instead, for example).

Related branches

Revision history for this message
Jonas Schwabe (jonas-schwabe) wrote :

I managed to extrace files on a 1gb data partition by not copying the tarbal to /data before the extract step. But there is not much spae left yet, so another way would be to store core data (needed to boot) on /data and other stuff on another sdcard partition or so. I would not store everything on sd, it might need to be umounted sometimes, like when you attach USB and want to mount it from there.

Revision history for this message
Florian W. (florian-will) wrote :

My "related" branch linked above is an attempt to improve the situation. It seems quite complicated (76 new SLOC), but was the simplest solution I could think of. Considering my expertise in shell scripts, there probably are much better ways to do the same thing, but I hope you can use this as an inspiration.

Changed in touch-preview-images:
assignee: Ricardo Salveti (rsalveti) → Sergio Schvezov (sergiusens)
milestone: none → ubuntu-13.08
affects: touch-preview-images → ubuntu-cdimage
Changed in ubuntu-cdimage:
milestone: ubuntu-13.08 → none
Changed in ubuntu-cdimage:
assignee: Sergio Schvezov (sergiusens) → nobody
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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