Giter VIP home page Giter VIP logo

tinycorelinux-packer-image's Introduction

tinycorelinux-packer-image

This script will create a remastered tinycorelinux image that can be used in Packer.

Why would I want this?

You want this if you need a mean and lean Linux that starts in RAM. This is useful to create Packer images from distributions that don't provide an installation medium that can be directly used by Packer.

Packer Configuration

  • A user packer with password packer is added
  • Autologin is disabled
  • Configures and starts opensshd
  • Installs Bash
  • Adds SCSI drivers and loads them during boot

Customization

It's easily possible to add additional extensions to the image. Just add the names of the extensions to the EXTENSIONS array in the script.

Adding additional changes to configurations in the image can be added to the customize* functions.

Preconditions

You need a few tools to run this script. It was developed on RHEL but should run on any linux that has the following tools available:

  • unsquashfs (squashfs-tools)
  • advdef (advancecomp)
  • mkisofs (mkisofs)

Packer Example

{
  "builders": [
    {
      "type": "vmware-iso",
      "iso_url": "tinycore-packer.iso",
      "iso_checksum_type": "md5",
      "iso_checksum": "d3253d19bcf9da61cbb44cf76db118c6",
      "boot_wait": "3s",
      "disk_size": 40960,
      "disk_type_id": 0,
      "boot_command": [ "<enter>" ],
      "ssh_username": "packer",
      "ssh_password": "packer",
      "skip_compaction": false
    }
  ]
}

tinycorelinux-packer-image's People

Contributors

linuxsimba avatar bugroger avatar

Stargazers

Manjunath G avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.