/rootfstool

A tool to get linux container rootfs from lxc-image mirrors.

Primary LanguageShellApache License 2.0Apache-2.0

「その木漏れ日でうたた寝したら

虫の死骸と土になれるかな」


Discarded project

Please use rurima instead.

About:

Rootfstool is a tool to get linux container rootfs from Lxc-image mirrors.

Dependencies:

  • gawk
  • curl
  • wget

Usage:

rootfstool <command> [<args>]

Commands:
  version,v    #Show version info
  help,h       #Show helps
  list,l       #List all distros
  mirrorlist,m #List mirrors
  search,s     #Search available versions of distro
  url,u        #Get rootfs download link
  download,d   #Download rootfs as rootfs.tar.xz
  exec,e       #Exec a built-in function *Only for developer

Args:
--distro,-d    #Specify os distro
--arch,-a      #Specify cpu architecture
--version,-v   #Specify distro version
--mirror,-m    #Specify the mirror, available mirrors are: main bfsu tuna nju iscas

Some examples:
List available arm64 OS distros

rootfstool list -a arm64 -m bfsu

Search available versions of Ubuntu arm64

rootfstool search -a arm64 -d ubuntu -m bfsu

Get rootfs download link of Ubuntu bionic arm64

rootfstool url -a arm64 -d ubuntu -v bionic -m bfsu

Thanks to:

tmoe
(TMOE, More Optional Environments.)