summarylogtreecommitdiffstats
path: root/tarballroot-install
blob: 694a157d1f8b9957eb11ba1a47b425c7ea4fc3cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

build() {

    add_binary "/usr/bin/tar" "/bin/tar"
    add_binary "/usr/bin/xz" "/bin/xz"

    add_runscript
}

help() {
    cat <<HELPEOF
This hook adds the ability to use a tmpfs as root, downloading a tarball
image (with xz compression) and extracting it on the fly.

Don't forget to include the net hook.

On the boot command line  root=tarball and tarball=<url>

HELPEOF
}

# vim: set ft=sh ts=4 sw=4 et: