Project

General

Profile

Bug #9628

UFS boot archives are too large

Added by Andy Fiddaman about 1 year ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
2018-06-27
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

When creating a UFS boot archive, the calculation for how much space will be required reserves 1024 times too much space for directories, resulting in boot archives around twice as big as they need to be.

bloody# /boot/solaris/bin/create_ramdisk --nocompress
updating /platform/i86pc/amd64/boot_archive
updating /platform/i86pc/boot_archive
bloody# gzip -dc /platform/i86pc/amd64/boot_archive > /tmp/l
bloody# ls -l /tmp/l
-rw-r--r--   1 root     root        175M Jun 27 00:49 /tmp/l
bloody# mount `lofiadm -a /tmp/l` /mnt
bloody# df -h /mnt
Filesystem             Size   Used  Available Capacity  Mounted on
/dev/lofi/1            163M  76.8M      70.2M    53%    /mnt
bloody# du -hs /mnt
75.8M   /mnt

After the fix:

bloody# /boot/solaris/bin/create_ramdisk.new --nocompress
updating /platform/i86pc/amd64/boot_archive
bloody# gzip -dc /platform/i86pc/amd64/boot_archive > /tmp/l
bloody# ls -l /tmp/l
-rw-r--r--   1 root     root       91.7M Jun 27 00:55 /tmp/l
bloody# mount `lofiadm -a /tmp/l` /mnt
bloody# df -h /mnt
Filesystem             Size   Used  Available Capacity  Mounted on
/dev/lofi/1           85.8M  76.8M      8.98M    90%    /mnt
bloody# du -hs /mnt
75.8M   /mnt

Related issues

Related to illumos gate - Feature #9627: No longer need 32-bit boot_archiveClosed2018-06-26

Actions

History

#2

Updated by Andy Fiddaman 10 months ago

  • Related to Feature #9627: No longer need 32-bit boot_archive added
#3

Updated by Andy Fiddaman 10 months ago

  • Status changed from New to Pending RTI
#4

Updated by Electric Monk 10 months ago

  • Status changed from Pending RTI to Closed
  • % Done changed from 90 to 100

git commit 75383e32bbd38e24115eefe5dee272d42a5c723e

commit  75383e32bbd38e24115eefe5dee272d42a5c723e
Author: Andy Fiddaman <omnios@citrus-it.co.uk>
Date:   2018-09-21T15:12:28.000Z

    9627 No longer need 32-bit boot_archive
    9628 UFS boot archives are too large
    9721 cmd/boot: support cpio boot archive
    Reviewed by: Toomas Soome <tsoome@me.com>
    Reviewed by: Peter Tribble <peter.tribble@gmail.com>
    Approved by: Robert Mustacchi <rm@joyent.com>

Also available in: Atom PDF