Skip to content
This repository has been archived by the owner on Dec 27, 2019. It is now read-only.

jclulow/smartos-isomerge

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 

smartos-isomerge: Unpack, Add Files and Repack a SmartOS ISO

Introduction

If you want to add (or replace) a few files in a SmartOS ISO, this utility will unpack the ISO, merge files and repack the ISO automatically. It should work on any illumos system, provided you have root access in a zone that enables the use of lofiadm(1M), ufs(7FS) and hsfs(7FS).

Usage

First, create a JSON file to provide a working directory, and ISO and a list of files to the utility. e.g.

{
  "workdir": "/var/tmp/ISOMERG",
  "inputiso": "/sysmgr/apps/smartos/releases/smartos-20120223T221136Z.iso",
  "mergefiles": {
    "/etc/issue": { "owner": "root", "group": "sys", "perms": "0444",
                     "src": "/tmp/newissue" }
  }
}

Then, invoke the utility:

# ./merge.js < input.json
 * mkdir /var/tmp/ISOMERG
 * lofi add /sysmgr/apps/smartos/releases/smartos-20120223T221136Z.iso
    - device: /dev/lofi/1
 * fstyp /dev/lofi/1
    - type: hsfs
 * mkdir /var/tmp/ISOMERG/iso
....
...
..
 * mkisofs /var/tmp/ISOMERG/output.iso
 * done

About

Unpack, Add Files and Repack a SmartOS ISO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published